Difference between revisions of "GetToggleKeyState"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
 
 
Line 10: Line 10:
  
 
==Description==
 
==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.
+
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==
 
==Example==

Latest revision as of 18:02, 10 November 2012

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