GetToggleKeyState

From SCAR Divi Manual
Revision as of 16:30, 10 November 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function GetToggleKeyState(const VKey: Byte): Boolean; </source> ==Availability== SCAR Divi 3.35 > Current * Did not functi...")
(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 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