TSCARWindowClient.Scancodes

From SCAR Divi Manual
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.