GetToggleKeyState

From SCAR Divi Manual
Revision as of 17:02, 10 November 2012 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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