Setup guide

Execute(
[
sCmdLine
] [,
sVerb
] )
Executes the file contained in the File property. Same as setting the Running property to
true
, except you can
optionally supply a command line and/or a shell verb
Arguments
sCmdLine
Optional command line
sVerb
Optional shell verb to perform on the file, if the file is not an executable (e.g. "open", "play", "print")
JScript example:
Application("notepad.exe").Execute("C:\\Autoexec.bat"); //open C:\Autoexec.bat in
notepad
Application("Readme.txt").Running=true;
//open Readme.txt in associated application
(usually notepad)
Close()
Closes the application. Same as setting the Running property to
false
.
Command Object
Contains properties of the currently executing command, i.e the command executing the script.
Command
Properties
Display Object
Display adapter methods and properties.
Name
The command's name
Count
Number of layouts ( >= 1). Read-only.
Layout( nIndex )
Retrieves the name of the layout specified by
nIndex
. nIndex can be a number between
zero and one less than Count.
ActiveLayout
Contains the index of the active layout. Read/Write, can be set to a valid layout index (0
<= index < Count) to switch the command to another layout.
RepeatCount
The repeat counter.
RepeatCount is 0 for the first command and increases by 1 for each repeated command.
Read-only.