Skip to main content
InSource Solutions

Simulating keys for a Stand-Alone Intouch application on 64 bit Operating Systems

This guide provides an overview of product features and related technologies. In addition, it contains recommendations on best practices, tutorials for getting started, and troubleshooting information for common situations.

The Sendkeys function in InTouch does not work with 64 bit Operating Systems.  This article from InSource walks through an alternate approach for simulating keys within an InTouch script.

1) Create an InTouch script:

In This example, I am creating a "Window \ On Show" script in order to set the tab order when the window first opens:

Pic1a.jpg

 

2) Enter the script. 

The example script below shows both the SendKeys example that was used in the past and the windows script that will work on a 64 bit Operating System.  This example simulates 2 tab keys followed by the enter key:

 

Pic2.jpg

 

Below is the text version of the script above:

 

SendKeys "{TAB}{TAB}{ENTER}";

DIM result AS INTEGER;

OLE_CreateObject(%WS, "Wscript.Shell");

IF OLE_IsObjectValid(%WS) THEN

            result = %WS.SendKeys("{TAB}{TAB}{Enter}");

ENDIF; OLE_ReleaseObject(%WS);