Simulating keys for a Stand-Alone Intouch application on 64 bit Operating Systems
Last updated: March 6th, 2025Description
- Author: Brian Schneider
- Published: March 6th, 2025
Details:
Page summary display: overview and page thumbnail
template('MindTouch/Controls/PageOverview');
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.
Guide listings
template('MindTouch/IDF3/Views/Guide');
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.
- 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:
- 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:
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);