Home NT Commands
NT Syntax

Script-it.exe

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

syntax
      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:
runwait=notepad.exe
Untitled - Notepad=Hello World
run=calc.exe

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
Right Arrow {RIGHT} send a Right Arrow 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
{ {{}  
} {}}  
[ {[}  
] {]}  
CAPSLOCK {CAPSLOCK}  

People in the West are always getting ready to live - Chinese proverb

Related Commands:

WshShell.SendKeys - Send Keys with WSH
CLIP - Copy STDIN to the Windows clipboard.

The 3rd party tool AutoIt is available free from hiddensoft.com/autoIt3/

Equivalent Linux BASH commands:

none



Simon Sheppard
SS64.com