keyboard input within a program with RP_WAIT=1

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
matthiasR
Pro Scripter
Posts: 52
Joined: Tue Jan 20, 2004 3:45 pm
Location: Lübbecke, Germany

keyboard input within a program with RP_WAIT=1

Post by matthiasR » Sat Aug 27, 2005 5:28 pm

Hi all.

I want to realize the following.

Running program xy.Enter ALT-O. After xy is finished the script should continue. Its very important that program xy is finished before script is continuing.

I know i can use RP_WAIT=1 to wait until program is finished. But how can i simulate keystrokes via script, if script is not continuing?

Any ideas.

Best regards,

Matthias

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Aug 27, 2005 5:34 pm

Is program xy a Windows program and does it have a main window? If so just do:

Run Program>xy
WaitWindowOpen>xy's window title
Press ALT
Send>o
Release ALT
WaitWindowClosed>xy's window title
..
.. continue rest of script ..
..

The window title is the text that appears in the (usually blue) title bar at the top of the window.
MJT Net Support
[email protected]

matthiasR
Pro Scripter
Posts: 52
Joined: Tue Jan 20, 2004 3:45 pm
Location: Lübbecke, Germany

Post by matthiasR » Tue Aug 30, 2005 3:12 pm

Thank you very much. That works.

Matthias

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