Skip to main content
Version: Deprecated Pages
View as Markdown

system.gui.isTouchscreenModeEnabled

Deprecated by system.vision variations in 8.3

This function was replaced with system.vision.isTouchscreenMode.

Click here to learn more about system.vision variations.

This function is used in Python Scripting.

Description​

Checks whether or not the running Client's Touch Screen mode is currently enabled.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax​

system.gui.isTouchscreenModeEnabled()

Parameters​

Nothing

Returns​

Boolean - True if the Client currently has Touch Screen mode activated.

Scope​

Vision Client

Code Examples​

Example #1
# This example is used in the Client Startup script to check if this Client is being run on a touch screen computer (judged by an IP address) and set Touch Screen mode.

ipAddress = system.net.getIpAddress()
query = "SELECT COUNT(*) FROM touchscreen_computer_ips WHERE ip_address = '%s' "
isTouchscreen = system.db.runScalarQuery(query %(ipAddress))
if isTouchscreen and not system.gui.isTouchscreenModeEnabled():
system.gui.setTouchscreenModeEnabled(1)