Toggle Touchscreen Mode

I have touchscreens and computers that connect to the same project. Is there a way to toggle the touchscreeen mode on/off during or immediately after an autologin?

You can do it in your startup script with the system.gui.setTouchscreenModeEnabled function.

if condition(): 
     system.gui.setTouchscreenModeEnabled(0)