Skip to main content
Version: Deprecated Pages
View as Markdown

system.gui.setTouchscreenModeEnabled

Deprecated by system.vision variations in 8.3

This function was replaced with system.vision.setTouchscreenMode.

Click here to learn more about system.vision variations.

This function is used in Python Scripting.

Description​

Alters a running Client's Touch Screen mode on the fly.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax​

system.gui.setTouchscreenModeEnabled(enabled)

Parameters​

TypeParameterDescription
BooleanenabledThe new value for touchscreen mode being enabled.

Returns​

Nothing

Scope​

Vision Client

Code Example​

Example #1 - Enabling Touchscreen Mode
# This example could be used on an input heavy window's internalFrameActivated event to remove Touch Screen mode.

if system.gui.isTouchscreenModeEnabled():
system.gui.setTouchscreenModeEnabled(False)