Dialog box does not close

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Marwanok
Newbie
Posts: 1
Joined: Thu Nov 12, 2009 11:36 pm

Dialog box does not close

Post by Marwanok » Thu Nov 12, 2009 11:49 pm

When I step manually through the application, a dialog box with Yes/No buttons appears. I can hit Enter, or enter 'Y' or 'N'. In all three cases the dialog box closes.
When I script this in Macro Scheduler, the dialog box stays there and does not close.
So I tried, Send>N, Send>Y, or Press Enter. In all cases the dialog did not close.

I also tried to position where the No button is and did LClick. The window closed but this followed with some strange behavior. I was not able to fill a field following this with the right value.

Am I missing any step here?

Marwanok

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 » Fri Nov 13, 2009 1:44 am

Did you use a SetFocus> command before you used Send> or Press> commands?

You must set focus on the window with the Yes/No buttons before you do a Send/Press/MouseMove command.

You can help us assist you when you provide segments of your script that are not working. Use dummy words for logins/passwords or other sensitive data.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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