Just after Start-up Sluggishness
Tom Cole
tom.cole at asu.edu
Mon Jun 19 22:22:04 EDT 2006
Dear Sarah and others,
This is a one-stack program and there's very little in my preopenstack
script. I'm thinking the initial sluggishness problem is on the "Start
the Game" button, which has lots of scripting.
The “Start the Game” button has a lot of script and the first time it
is clicked, it is slow.
The sluggishness only occurs when I click the "start the game button"
for the FIRST time. Afterwards, everything is fast. So how about this:
What if I write a script to click that slow button on PreOpenstack? No
one would know. I’d be sent to the game page, but invisibly. Then I
would write script to click the "Go to the Menu" button on the game
page to return to the main menu. The button's script would be executed
for the first time, and subsequent clicks on it would produce speedy
responses. I hope.
My only problem is that both buttons say, “ARE YOU SURE YOU WANT TO DO
THIS?” (or whatever) with “Yes” or “No.” What script do I write to
click the YES in the answer dialog box? For example:
On preopenstack
Click card button “Play Game” of card “Menu”
-- (It will say “Play game?” Yes No)
Choose YES please! (How do I write this?)
Click card button “Go to Main Menu” of card “Play Game”
-- (It will say “Go to the Menu” Yes No)
Choose YES please! (How do I write this?)
End preopenstack
If I know how to write the script to click the yes or no option, I can
try this out.
Thanks,
Tom
More information about the use-livecode
mailing list