system.vision.setTouchscreenMode
Backwards Compatibility
This function replaces system.gui.setTouchscreenModeEnabled. 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β
Alters a running Client's Touch Screen mode on the fly.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.vision.setTouchscreenMode(enabled)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| Boolean | enabled | The new value for Touch Screen mode being enabled. |
Returnsβ
Nothing
Scopeβ
Vision Client
Code Exampleβ
Example #1 - Enabling Touch Screen Mode
# This example could be used on an input heavy window's internalFrameActivated event
# to remove Touch Screen mode.
if system.vision.isTouchscreenMode():
system.vision.setTouchscreenMode(False)