Input into modal form

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
ddcruz
Newbie
Posts: 2
Joined: Thu Jul 02, 2009 7:14 am
Location: Melbourne Australia

Input into modal form

Post by ddcruz » Fri Jul 03, 2009 4:32 am

My issue is that I am running a Macro Scheduler script which opens another windows based application. While controlling the application from Macro Scheduler, during a particular step it opens a modal form, and hands over control to the form so I cannot continue. I need to input some values in the modal form and click continue, but am unable as the control has shifted to the modal form.
Can anyone suggest a solution, or point me to the duiscussion forum/or in the right direction where I can find a solution ie, continue using Macro Scheduler to control input into the form and press continue so that the process can continue

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

SetFocus

Post by gdyvig » Sat Jul 04, 2009 3:57 pm

Hi ddcruz,

You need to set focus on the new form so Macro Scheduler directs your keystrokes and such to it.

At the point where you expect the new form to display:

Code: Select all

//Assume New form has a unique title.
Let>NewFormTitle=<whatever>
WaitWindowOpen>NewFormTitle
SetFocus>NewFormTitle
//put code here to manipulate the new form
//When done put focus back on original form

If you have problems read up on the options and system variables used with these commands.

Hope this helps,

Gale

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