NT Syntax


Control GUI applications - feed values into dialogue boxes, press OK etc
download from the Script-it page at Technet

      SCRIPTIT script_file

Script-it works by recognising the Window Title of each open Application / Document / Dialogue box.

The script_file has to be prepared in advance with all the keystrokes you want to send to the appropriate Window.

The script_file is a text file in .ini file format.

Example Script file:
Untitled - Notepad=Hello World

This will launch an instance of Notepad and then send the string "Hello World", when notepad.exe is closed the script will run CALC.exe

To TAB through dialogue boxes and send other keys follow the syntax shown below

Key SendKey Equivalent Description
~ {~} send a tilde (~)
! {!} send an exclamation point (!)
^ {^} send a caret (^)
+ {+} send a plus sign (+)
Alt {ALT} send an Alt keystroke
Backspace {BACKSPACE} send a Backspace keystroke
Clear {CLEAR} Clear the field
Delete {DELETE} send a Delete keystroke
Down Arrow {DOWN} send a Down Arrow keystroke
End {END} send an End keystroke
Enter {ENTER} send an Enter keystroke
Escape {ESCAPE} send an Esc keystroke
F1 through F16 {F1} through {F16} send the appropriate Function key
Page Down {PGDN} send a Page Down keystroke
Space {SPACE} send a Spacebar keystroke
Tab {TAB} send a Tab keystroke

"There are many terrorist states in the world, but the United States is unusual in that it is officially committed to international terrorism, and on a scale that puts it's rivals to shame" - Noam Chomsky

Related Commands:

- Copy STDIN to the Windows clipboard.

If you happen to have a copy of Windows 3.1 the old recorder utility will still run under NT - I'm sure this is an 'unsupported' configuration but it works fine for recording keyboard commands (not mouse movements though)
Just EXPAND the following from the install disks:
recorder.dll (RECORDER.DL_)
recorder.exe (RECORDER.EX_)
recorder.hlx (RECORDER.HL_)

The 3rd party tool AutoIt is available free from http://www.hiddensoft.com/AutoIt/

Equivalent Linux BASH commands:


Simon Sheppard