Difference between revisions of "TSCARWindowClient.Scancodes"
From SCAR Divi Manual
(Created page with "==Definition== Member of TSCARWindowClient, read/write, default False.<source lang="scar" lines="false"> property TSCARWindowClient.Scancodes: Boolean; </source> ==Availa...") |
|||
Line 9: | Line 9: | ||
==Description== | ==Description== | ||
When set to true, VKey keyboard functions will send keyboard scancodes, rather than regular virtual keys. | When set to true, VKey keyboard functions will send keyboard scancodes, rather than regular virtual keys. | ||
+ | |||
+ | ==Example== | ||
+ | <source lang="scar"> | ||
+ | var | ||
+ | Client: TSCARClient; | ||
+ | |||
+ | begin | ||
+ | Client := GetClient; | ||
+ | Client.Activate; | ||
+ | Wait(500); | ||
+ | PressVKeyEx(CharToVKey('a'), 100); | ||
+ | if Client is TSCARWindowClient then | ||
+ | TSCARWindowClient(Client).Scancodes := True; | ||
+ | PressVKeyEx(CharToVKey('b'), 100); | ||
+ | end. | ||
+ | </source> |
Latest revision as of 14:50, 14 November 2012
Contents
Definition
Member of TSCARWindowClient, read/write, default False.property TSCARWindowClient.Scancodes: Boolean;
Availability
SCAR Divi 3.37 > Current
Description
When set to true, VKey keyboard functions will send keyboard scancodes, rather than regular virtual keys.
Example
var Client: TSCARClient; begin Client := GetClient; Client.Activate; Wait(500); PressVKeyEx(CharToVKey('a'), 100); if Client is TSCARWindowClient then TSCARWindowClient(Client).Scancodes := True; PressVKeyEx(CharToVKey('b'), 100); end.