Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA InTouch
  • AVEVA InTouch Tech Notes

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

Last updated: March 6th, 2025

Description

  • 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.

  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:

  1. 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);

64-bit emulating
Give feedback about this article

Recommended articles

How to receive group emails

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand