Page 1 of 1
Ask dialog when program opens
Posted: Sun Jun 14, 2009 7:54 am
by urbaud
I'm trying to figure out how to launch an Ask dialog on program start. I don't want the user to have to click on a button to get the dialog. I want the Ask dialog to appear immediately when the program starts so the user can immediately input into the Ask dialog. Can it be done in Revolution? I've been searching in the forums and elsewhere with no luck. Perhaps I just don't know the right words to use in my searches. If someone knows where I can study some code to make this happen, sure would appreciate it. Thanks in advance.
Posted: Sun Jun 14, 2009 9:22 am
by Janschenkel
Put this in your stack script:
Code: Select all
on openStack
ask "How many cookies do you want?"
answer "You want" && it && "cookies!"
end openStack
HTH,
Jan Schenkel.
Posted: Sun Jun 14, 2009 9:40 am
by bn
Jan,
on openStack
ask "How many cookies do you want?"
answer "You want" && it && "cookies!"
end openStack
I tried your code and asked for 10 cookies. Rev only gave me 3 and a half. Is that because I use version 3.5?
A good reason to upgrade to version 4 when it is available.
regards
Bernd
Posted: Sun Jun 14, 2009 11:13 am
by Klaus
Hi Bernd,
looks like you have to fill your Rev cookie-account first!
For our convenience Rev has put up a webiste to do it online:
http://www.runrev.com/user-accounts/cookies

Posted: Sun Jun 14, 2009 12:42 pm
by bn
too bad, that site said 404, cookie not found.
They ran out of cookies. What a pitty.
You know what: I will ask Heather from customer support. That seems the only one who can help at this point.
She is always very responsive and helpful.
regards
Bernd
Ask dialog when program opens
Posted: Wed Jun 17, 2009 1:48 am
by urbaud
Hi Jan,
Thank you for the code. It works fine. I didn't think it would be such a small amount of code.
Thanks again,
Dan