ASK, HANDLE

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
regusrms7

ASK, HANDLE

Post by regusrms7 » Wed Oct 20, 2004 7:01 pm

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]

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Oct 20, 2004 7:51 pm

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>
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!

jalbt51
Junior Coder
Posts: 31
Joined: Sat Mar 06, 2004 4:40 pm

Post by jalbt51 » Sat Oct 30, 2004 12:36 am

It works! Thanks :P

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts