Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference

[Contents][Glossary][Index][Back][Next]

AIT_SetKeyState

Description

Sets specified key status.

Format

bool AIT_SetKeyState  (
  integer nVirtualKey,     // Virtual key
  integer nKeyState        // Key status
);

Parameters

nVirtualKey (input)

Specify a virtual key you want to set. You have to set one of the following values.

Value Description
NUMLOCK Num Lock key
SCROLLLOCK Scroll Lock key
CAPSLOCK Caps Lock key

nKeyState (input)

Specify key status you want to set. You have to set one of the following values.

Value Description
KEYSTATE_OFF The key is off.
KEYSTATE_ON The key is on.

Return values

The return value is true if the function was executed normally, and false if not. If the function has returned false, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError may return.

Extended error number Error code
8 ERROR_NOT_ENOUGH_MEMORY
14 ERROR_OUTOFMEMORY
87 ERROR_INVALID_PARAMETER
112 ERROR_DISK_FULL