VCIsScriptAssigned


Version:

1.2 (updated version 5.0).

Description:

Verifies whether a script has been assigned to a key sequence.

Declaration:

 

C/C++

extern "C" vbool WINAPI VCIsScriptAssigned(short iShift, short iKey);

Delphi

function VCIsScriptAssigned(iShift: Smallint; iKey: Smallint):Wordbool; stdcall;

ActiveX/COM

Function IsScriptAssigned(ByVal iShift As Integer, ByVal iKey As Integer) As Integer

Parameters:

iShift - determines the state of the modifier keys.
0 - no shift or control.
1 - shift only.
2 - control only
iKey
-<br /> 2-16 - button numbers 2-16, respectively<br />48-57 - ASCII code for numeric keys '0'-'9', respectively<br /> 65-90 - ASCII code for alphabetic keys 'A'-'Z', respectively<br /> 112-123 - virtual key code for function keys F1-F12, respectively
returns an integer representing true or false.
0 - false.
1 - true.

Notes:

When assigning scripts it is often necessary to determine if a script has already been assigned to a key sequence. VCIsScriptAssigned determines this, letting the application determine whether to edit the existing script or overwrite it.

See Also:

VCMacro, VCIsScriptAssignedByName