VCGetFunkeyCmdString
VCSetFunkeyCmdString


Version:

1.2 (parameters updated in 5.0)

Description:

Once it has been determined using VCIsScriptAssigned if a script has been assigned to a key sequence, VCGetFunkeyCmdString will retrieve that string, allowing the application to append or edit the string and reassign it to the same key or an unused one using VCSetFunkeyCmdString.

Declaration:

 

C/C++

extern "C" short WINAPI VCGetFunkeyCmdString(char* szCmd, short iShift, short nVKey);
extern "C" vbool WINAPI VCSetFunkeyCmdString(char* szCmd, short iShift, short nVKey);

Delphi

function VCGetFunkeyCmdString(szCmd: PAnsiChar; iShift: Smallint; nVKey Smallint):Smallint; stdcall;
function VCSetFunkeyCmdString(szCmd: PAnsiChar; iShift: Smallint; nVKey: Smallint):Wordbool; stdcall;

ActiveX/COM

Function GetFunkeyCmdString(ByVal iShift As Integer, ByVal nVKey As Integer) As String
Function SetFunkeyCmdString(ByVal szCmd As String, ByVal iShift As Integer, ByVal nVKey As Integer) As Integer

Parameters:

szCmd - set by the procedure to be the script text.

iShift - determines the state of the modifier keys.
0 - no shift or control.
1 - shift only.
2 - control only

nVKey -
2-16 - button numbers 2-16, respectively
48-57 - ASCII code for numeric keys '0'-'9', respectively
65-90 - ASCII code for alphabetic keys 'A'-'Z', respectively
112-123 - virtual key code for function keys F1-F12, respectively

Notes:

 

See Also:

VCGetFunkeyCmdStringByName, VCSetFunkeyCmdStringByName, VCGetCmdString, VCIsScriptAssigned, VCMacro