Process Control

 

 

Function list

By type

Alphabetically

 

 

AddExtender( filename [,version [,alternatefilename]] )

Installs a WIL extender Dll.

AppWaitClose( program-name [, current-session-only] )

Suspends WIL program execution until a specified application has been closed.

Break

Used to exit a conditional flow control statement.

Call( wilfilename, parameters )

Calls a WIL batch file as a subroutine.

Continue

Transfers control to the beginning of a For or While loop or to a different case statement.

Debug( mode [, init-string] )

Turns the Debug mode on or off.

DebugData( string, string )

Writes data via the Windows OutputDebugString function to the default destination.

DebugTrace ( requestcode [ ,parm1 [, parm2 ]] )

Controls and customizes the WIL debugging trace logs.

Drop ( varname [,varname...] )

Deletes variables to recover their memory.

DropWild( variable/wildcard )

Removes variables from memory.

ErrorMode( mode )

Sets what happens in the event of an error.

Execute statement

Directly executes a WIL statement.

Exit

Unconditionally ends a WIL program.

For varname = initial value to final value [ by increment ]

Controls the looping of a block of code base in an incrementing index.

ForEach ForEach Elementvariable In Collection

Executes the statement block for each element in an object collection.

GoSub label

Transfers control of WIL processing while saving location of the next statement.

Goto label

Changes the flow of control in a WIL program.

If…Else…Endif expression

Conditionally performs a function.

IgnoreInput ( mode )

Turns off hardware input to Windows.

LastError ( )

Returns the last error encountered.

Return

Returns from a Call to the calling program or from a GoSub :label.

RtStatus()

Returns a number indicating the current execution mode of WinBatch.

Select varname

Allows selection among multiple blocks of statements.

Switch varname

Allows selection among multiple blocks of statements.

Terminate( expression, title, message )

Conditionally ends a WIL program.

TimeDelay( seconds )

Pauses execution for a specified amount of time.

TimeWait( datetime )

Pauses execution and waits for the datetime to pass.

Version( )

Returns the version of the parent program currently running.

VersionDLL( )

Returns the version of the WIL interpreter currently running.

WaitForKey( key, key, key, key, key )

Waits for a specific key to be pressed.

WaitForKeyEx( keycode, timeout )

Waits for a specific key to be pressed within timeout period.

While expression

Conditionally and/or repeatedly executes a series of statements.

WinResources( request# [, format] )

Returns information on available memory and resources.

WinState( partial-winname )

Returns the current state of a window.

WinSysInfo( )

Returns system configuration information.

WinVersion( level )

Returns the version of Windows that is currently running.

WinWaitChild( partial parent winname, partial child winname, timeout )

Waits for a child window to exist.

WinWaitClose( partial-winname [, timeout] )

Waits until an application window is closed.

WinWaitExist( partial-winname, timeout )

Waits for a window to exist.

WinWaitReady( partial-winname, timeout )

Waits until an application is waiting for user input.

Yields( count )

Provides time for other windows to do processing.