Skip to main content
Version: 7.9

system.gui.setTouchscreenModeEnabled

This function is used in Python Scripting.

Description

Alters a running client's touchscreen 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

Client

Code Examples

Example #1
# 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(0)