Hi Klaus,
Startup process means when the exe is clicked on.
The script is more or less as I have shown, but I paste the actual script here:-
on preopencard
local fileslst,filnam,Linecount,Temptext
go to stack "Scratchpad"
go to stack "AD Part G"
hide stack "Scratchpad"
put the files into fileslst
if fileslst contains "Scratchpad.txt" then
put url "File:Scratchpad.txt" into field "Scratchpad" of stack "Scratchpad"
-----Moved to preopen card 1005-----
--if the length of line 1 of field "Scratchpad" of stack "Scratchpad" < 3 then
--put empty into line 1 of field "Scratchpad" of stack "Scratchpad"
--delete line 1 of field "Scratchpad" of stack "Scratchpad"
--end if
else
--Populate Scratchpad list
Put "Bedroom 1 en-suite" into line 1 of field "Scratchpad" of stack "Scratchpad"
Put "Bedroom 2 en-suite" into line 2 of field "Scratchpad" of stack "Scratchpad"
Put "Bedroom 3 en-suite" into line 3 of field "Scratchpad" of stack "Scratchpad"
Put "Cloakroom" into line 4 of field "Scratchpad" of stack "Scratchpad"
Put "Kitchen" into line 5 of field "Scratchpad" of stack "Scratchpad"
Put "Main bathroom" into line 6 of field "Scratchpad" of stack "Scratchpad"
Put "Shower room" into line 7 of field "Scratchpad" of stack "Scratchpad"
Put "Undefined" into line 8 of field "Scratchpad" of stack "Scratchpad"
Put "Utility room" into line 9 of field "Scratchpad" of stack "Scratchpad"
put field "Scratchpad" of stack "Scratchpad" into url "File:Scratchpad.txt"
end if
-- Display splash message
put "<p><u><b>IMPORTANT NOTICE.</b></u></p>" into Field "Declare"
put Field "Declare" & "<p><b><u>The user accepts full responsibility for data and calculation results.</b></u> <p></p></p>" into Field "Declare"
put Field "Declare" &"<p>If you register the software with us, you can display your name and contact details on the printouts and send them to Building Control with your application/completion.</p><p></p>" into Field "Declare"
put Field "Declare"&"<p>This calculator can have your own branding on the right side of this splash screen (it would be wider of course to take the branding panel). Just contact us for details. </p><p></p>" into Field "Declare"
put Field "Declare" &"<p><b>TIP </b>Hover the mouse cursor over input fields, many offer help. </p>" into Field "Declare"
put Field "Declare"&"<p>You should read the <b>Water conservation and safety issues.pdf</b> included with this downlod as well as refer to our web site for essential information. </p><p></p>" into Field "Declare"
set the htmltext of Field "Declare" to Field "Declare"
put empty into image "brandimage"
--Check for jpeg file
if fileslst contains "brandimage.jpg" then
set the Height of stack "AD Part G" to 340
set the width of stack "AD Part G" to 672
set the loc of stack "AD Part G" to the screenLoc
--set the backgroundColor of stack "AD Part G" to 128,255,255
put "binfile:brandimage.jpg" into filnam
put url (filnam) into image "brandimage"
else
set the Height of stack "AD Part G" to 340
set the width of stack "AD Part G" to 454
set the loc of stack "AD Part G" to the screenLoc
--set the backgroundColor of stack "AD Part G" to 128,255,255
end if
set the backgroundColor of stack "AD Part G" to 128,255,255
if item 3 of the screenRect < 1024 or item 4 of the screenRect < 768 then
answer error "MyApp requires a 1024x768 or larger screen." with "Sorry"
end if
end preopencard
This is contained in the first card and should be the first thing to run after clicking the exe
My (bracketed) comment in the original post shows the effect of adding each of the two lines, in the order you see them.
I have noticed another strange issue in Task manager. To exit my program i click the top right X rather than a Quit or Exit button. The program appears to quit in the normal way, but it shows as still being active in the PROCESSES tab of Task Manager. Have you any idea why?
I look forwared to your reply.
You can see the software at
www.ajperks.co.uk the Water Efficiency Calculator.