This is so basic, but I can't figure it out. The help file says:
Ask>prompt,result_variable
Displays a Yes, No dialog box with the specified prompt. If the user presses 'Yes', result_variable is set to 'YES', else result_variable becomes 'NO'.
With this in mind I put together the following:
Ask>Continue?,co
If>co=yes,nt
Message>rightafter
GoTo>ennd
Label>nt
Message>result variable yes
GoTo>ennd
Label>ennd
My results for both yes and no are "rightafter"
ALSO, what is a window handle, as opposed to a window title? I've been using the window title so far. Thanx for help. [email protected]
ASK, HANDLE
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
variables are Case Sensitive in Macro Scheduler.
The result of Ask> are YES and NO
Try changing your If> line to
If>co=YES,nt
------------------
Try to Single Step and use the Watch List to see the results of Ask>
The result of Ask> are YES and NO
Try changing your If> line to
If>co=YES,nt
------------------
Try to Single Step and use the Watch List to see the results of Ask>
Last edited by Bob Hansen on Sat Oct 30, 2004 4:14 am, edited 1 time in total.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!