Page 1 of 1

Help 5.x file/COM interface

Posted: Fri Apr 10, 2015 12:14 pm
by touchitfan
Hello,

a help file is still missing? Any changes in the COM interface compared to 4.x?


Many thanks and greetings
touchitfan

Re: Help 5.x file/COM interface

Posted: Mon Oct 10, 2016 10:19 am
by chessware
It works quite the same than v4.x except that OpenAs was removed. Loading keyboard is done by the Open method only.

The simplest is to just import the TouchIt typelib into your EDI for early-binding.

For late-binding (Delphi code):
  • Load (open) a keyboard:
    procedure Open(FileName, Position: WideString; X, Y, Monitor: Integer);
    • FileName: the kbl file name without path
    • Position: screen position : eg. "Floating", "Bottom", "Workarea.Right", etc.
    • X, Y: absolute position (desktop coordinates) if the keyboard is floating, otherwise ignored
    • Monitor: monitor on which to display the keyboard. 0 is the primary monitor
  • Close a keyboard (others remain visible):
    procedure Close(FileName: WideString; aMonitor: Integer);
    • FileName: the kbl file name without path
    • Monitor: monitor on which to look for the keyboard. 0 is the primary monitor
  • Show/hide all keyboards (same as the Touch-It icon behavior).
    procedure Show;
    procedure Hide;
  • Send text and keystrokes:
    procedure SendText(Text: WideString);
    • Text: Keystrokes to send. Can be a mix of characters or keystrokes such as "Hello[.Tab][:Tab]world![.Enter][:Enter]".
  • Loading a kbl file into a container (changing only a part of the layout):
    procedure LoadContainer(FileName, Container: WideString);
    • FileName: the kbl file name without path
    • Container: The container name.
  • Change the language system-wide.
    procedure ChangeLanguage(Language: Integer);
    • Language: language ID. eg. US-English : 0x0409, French: 0x040c, etc.