Enter the keystrokes you wish to send to the application that currently has "focus" (the program you just started, or another that you specifically or manually focused on).
To enter non-alphanumeric keys or combinations of keys (such as backspace, up, or CTRL-X), use the square brackets ("[]") and a key name. For example "[AltB]" would send an Alt-B to the program with focus. The “Key Code”, and “Value” fields allow you to easily add these special key codes and standard scripting values. The “Mouse Watch” button allows you to locate the position you wish to move the mouse to as part of the scripting – simply press the button, then click your left mouse button on the desired location on your screen (the right mouse button will cancel the operation).
Note: There is a brief pause each time a special key code is sent (1/2 second by default - see Options to change). This is because many applications cannot absorb the information as fast as Schedule Wizard can send it. If you need to slow down regular text (such as “This is a test”), enclose individual letters in square brackets (such as “[T]his is [a] test”).
TIP: Mouse cursor positions and mouse clicks may also be entered here. For example:
- [MOUSE X=100 Y=50] will move the mouse cursor to the point 100 pixels from the left of your desktop, and 50 pixels from the top.
- [MOUSE *Notepad] will move the mouse cursor to the top-left corner of the Notepad window.
- [MOUSE X+=100 Y+=100] will move the mouse cursor 100 pixels down and to the right from its current position.
- [MOUSE X+=-10 Y+=0] will move the mouse cursor up 10 pixels from it’s current position.
- [MOUSELEFT] emulates clicking the left button.
- [MOUSELEFT2] emulates double-clicking the left button.
- [MOUSERIGHT] emulates clicking the right button.
- A sample script that puts the focus on Outlook Express, moves the mouse to a folder, right-clicks, then selects “Properties” from the pop-up menu by pressing the letter “r”:
FOCUS *Outlook Express
KEYS [MOUSE X=70 Y=270][MOUSERIGHT]r
Sample Script #1 (using SEND KEYS, in “Edit As Text” format):
START "C:\Program Files\Agent\agent.exe" "C:\Program Files\Agent\Data"
WAIT 2
KEYS [AltO]n
START "c:\Program Files\Outlook Express\MSIMN.EXE" "c:\Program Files\Outlook Express"
KEYS [CtrlM]
WAIT 1800
IFWINDOW *topspeed
FOCUS *topspeed
KEYS [AltF4]
END
Sample Script #2 (using SEND KEYS, in “Edit As Text” format):
START "http://www.dilbert.com/" "" MODE=3 ACTION=Open
WAIT 7
FOCUS *Dilbert
KEYS [home]
KEYS [MOUSE X=376 Y=565]
KEYS [MOUSERIGHT]
KEYS S
WAIT 1
KEYS [home]d:\cd\dilbert\
KEYS [ENTER]
IFWINDOW "Save Picture" &Yes
KEYS [enter][esc]
END