AppCtrlScript

MAY Computer

Help

Available Variables

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Below is a list of implemented variables and the values to what they resolve:

Available Variables

Structure

Description

%SCR.<VariableName>% Script global variable value (see also %VARS.<VariableName>%)
%VARS.<VariableName>%

Script global variable value. Same as %SCR.<VariableName>% but resolved after all other variables are resolved which is important when using variables recursively like:
%VARS.%SCR.MyVar%_Name% ... works
%SCR.%VARS.MyVar%_Name% ... does not work
Assuming MyVar=xxx and xxx_Name=yyy, the result of the first expression is "yyy". The second expression would return "VARS.MyVar%_Name%".

%GLB.<VariableName>% Application global variable value (parameter values passed via commandline to the interpreting application for example).
%HDR.<VariableName>% Header variable value
%SCRIPTFILE% Full filename of currently running script
%SCRIPTPATH% Full path where the currently running script is loaded from
%SCRIPTFNAME% Filename without path and extension of the currently running script
%SCRIPTINI% A default inifile name where parameters can be loaded from (=same path and filename as the script but with .ini extension)
%COMMANDLINE% Returns the complete commandline that has been passed to the script interpreter or to the host application that runs the script. Is only available if the host applications performed a wmGlob1 initialization with InitGlob1 or InitApp.
%PRGFORMCANCEL% Returns "1" if user pressed the cancel button on progress form and "0" if not. Returns "-" if no progress form is currently shown.

 

 

More common available variables see global variables.

Note: If you need to use character sequences for specific operations where these variables should not be resolved (e.g. you need to write the string %COMMANDLINE% to a file) then write a @ before the script line. This prevents from variable resolvement for that line. - Pay attention with next lines. As variables are resolved recursively they might be resolved on the next line.