--- title: "system.gui.isTouchscreenModeEnabled" description: "Checks whether or not the running client's touchscreen mode is currently enabled." --- # system.gui.isTouchscreenModeEnabled > Checks whether or not the running client's touchscreen mode is currently enabled. 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.isTouchscreenModeEnabled()` ### Parameters None ### Returns **boolean** - True(1) if the client currently has touchscreen mode activated. ### Scope All ## Code Examples ```python title="Example #1" # This example should be 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 touchscreen 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) ```