GetToggleKeyState

From SCAR Divi Manual
Jump to: navigation, search

Definition

function GetToggleKeyState(const VKey: Byte): Boolean;

Availability

SCAR Divi 3.35 > Current

  • Did not function correctly before 3.37 for TSCARWindowClient

Description

Gets the state of a key that can be toggled from the active client (such as Caps Lock or Num Lock). This means that it will return true if the key is toggled on.

Example

begin
  repeat
    Wait(500)
  until GetToggleKeyState(VK_CAPITAL);
  WriteLn('Caps Lock is on');
end.

See Also