Miscellaneous Functions

 

 

Function list

By type

Alphabetically

 

 

About( )

Displays the About message box.

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

Installs a WIL extender Dll.

Beep

Beeps at the user.

DataCast( value, mode )

Converts or casts a value from one data type to another.

DllCall( dllfilename/dllhandle, returntype:entrypoint [ ,paramtype:param.. ])

Calls an external Dll.

DllCallCdecl( dllfilename/dllhandle, returntype:entrypoint [ , paramtype : param])

Calls an external DLL using the Cdecl calling convention.

DllLastError()

Returns the most recent error returned by a DllCall to a Win32 API.

DllLoad( dllname )

Loads a Dll for later use via the DllCall function.

Drop( varname [,varname...] )

Deletes variables to recover their memory.

DropWild( variable/wildcard )

Removes variables from memory.

ErrorEvent( severity, error-code, error-message )

Causes a user-defined error.

ErrorMode( mode )

Sets what happens in the event of an error.

Exclusive( mode )

Controls whether or not other Windows programs will get any time to execute.

Execute statement

Directly executes a WIL statement.

ExeTypeInfo( exefilename )

Returns an integer describing the type of EXE file specified.

IconExtract( filename, icon filename, index )

Extracts an icon group from an EXE/DLL.

IconInfo( filename, filetype )

Returns information about the icons in an EXE/DLL or ICO file.

IconReplace( filename, icon filename [, index [, flags]] )

Indent Replaces an existing icon group with a new icon group.

IntControl( request#, p1, p2, p3, p4 )

Special function which permits an internal operation.

IsDefined ( variable name )

Determines if a variable name is currently defined.

IsFloat( value )

Tests whether a number can be converted to a floating point number.

IsInt( string )

Tests whether a number can be converted into a valid integer.

IsKeyDown( keycode )

Determines if the Shift key or the Ctrl key is currently down.

IsLicensed( )

Tells if the calling application is licensed.

IsNumber( value )

Determines if a string represents a valid number.

KeyToggleGet( @key )

Returns the status of a toggle key.

KeyToggleSet( @key, value )

Sets the state of a toggle key and returns the previous value.

LastError ( )

Returns the last error encountered.

MouseClick( click-type, modifiers )

Clicks mouse button(s).

MouseClickBtn( parent-windowname, child-windowname, button-text )

Clicks on the specified button control.

MouseCoords( parent-windowname, child-windowname )

Returns coordinates of the mouse within a window.

MouseInfo( request# )

Returns assorted mouse information.

MouseMove( X, Y, parent-windowname, child-windowname )

Moves the mouse to the specified X-Y coordinates.

MousePlay( X-Y-coordinates, parent-window, child-window, buttons, delay )

Performs full range of mouse associated activities.

MsgTextGet( window-name )

Returns the contents of a Windows message box.

NetInfo( request code )

Determines network(s) installed.

ParseData( string )

Parses a passed string.

PtrGlobalDefine(var)

Creates a "pointer" to a global variable.

PtrGlobal(var)

Retrieves a "pointer" to a global variable.

PtrPersistent(var, value)

Creates a "pointer" to a persistent variable.

RtStatus()

Returns a number indicating the current execution mode of WinBatch.

SendMessageA( window-id/handle, message-id, wParam, lParam )

Issues a Windows "SendMessage", with lParam as an ANSI string.

SendMessageW( window-id/handle, message-id, wParam, lParam )

Issues a Windows "SendMessage", with lParam as a Unicode string.

Sounds( request# )

Controls sound effects generated by WIL. This feature is off by default as windows generally supplies its own sound effects.

SoundVolume( level)

Sets the speaker volume.

VarType( varname )

Gets the type of a WIL variable.

Version( )

Returns the version of the parent program currently running.

VersionDLL( )

Returns the version of the WIL interpreter currently running.

WallPaper( bmp-filename, tilemode )

Changes the Windows wallpaper.