TSCARWindowClient.Scancodes

From SCAR Divi Manual
Revision as of 14:50, 14 November 2012 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.