The function library adds a range of additional functions for use in scripts. These are not scripting commands, but rather sub-routines created with existing script commands (VBS Function Library).
The VBS function library supercedes the old VBS1 Functions, although it is possible to re-load those functions for backwards compatibility with VBS1 scripts (see the VBS1 Functions article for more info).
In some limited builds of VBS (such as VBS2 Lite) some scripting functions may not be available. A popup error appears when using a function that is not available.
The following code shows a typical call syntax:
_returnvalue = [parameters] call functionName;
Note: A testing method, to check for the presence of a function, is documented in Check Function Availability.
See also: Commands A-Z
fn_vbs_relPos works, while
#includecall is needed.