system.vision.isTouchscreenMode
Backwards Compatibility
This function replaces system.gui.isTouchscreenModeEnabled. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility.
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.vision.isTouchscreenMode()
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 = ?"
isTouchscreen = system.db.runScalarPrepQuery(query, [ipAddress])
if isTouchscreen and not system.vision.isTouchscreenMode():
system.vision.isTouchscreenMode(1)