Help 5.x file/COM interface

Touch-It not working as expected? Report problems and share solutions!
touchitfan
Posts: 4
Joined: Fri Apr 10, 2015 12:01 pm

Help 5.x file/COM interface

Postby touchitfan » Fri Apr 10, 2015 12:14 pm

Hello,

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


Many thanks and greetings
touchitfan

User avatar
chessware
Site Admin
Posts: 369
Joined: Sat Jun 22, 2013 11:26 am
Contact:

Re: Help 5.x file/COM interface

Postby chessware » Mon Oct 10, 2016 10:19 am

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.


Return to “Problems and solutions”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests