Difference between revisions of "GetCurrentKeyState"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function GetCurrentKeyState(const VKey: Byte): Boolean; </source> ==Availability== SCAR Divi 3.35 > Current ==Description==...")
 
 
Line 6: Line 6:
 
==Availability==
 
==Availability==
 
SCAR Divi 3.35 > Current
 
SCAR Divi 3.35 > Current
 +
 +
* Did not function correctly before 3.37 for TSCARWindowClient
  
 
==Description==
 
==Description==

Latest revision as of 16:20, 10 November 2012

Definition

function GetCurrentKeyState(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 instantly from the active client. This means that it will return true if the key is currently being pressed.

Example

begin
  repeat
    Wait(500)
  until GetCurrentKeyState(VK_DOWN);
  WriteLn('Pressed down');
end.

See Also