--- title: "system.gui.setTouchscreenModeEnabled" description: "Alters a running client's touchscreen mode on the fly." --- # system.gui.setTouchscreenModeEnabled > Alters a running client's touchscreen mode on the fly. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.gui.setTouchscreenModeEnabled(enabled)` ### Parameters |Type|Parameter|Description| |--|--|--| |boolean|`enabled`|The new value for touchscreen mode being enabled.| ### Returns Nothing ### Scope Client ## Code Examples ```python title="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) ```