Toggle a HID/PnP device with this script.
Run once to open to tray.
Run while opened to tray to toggle.
Example: Windows stylus button => run script => toggle touchscreen
Example of the options file can be found in /out
This can be found in
Device Manager => Choose Device => Details => Hardware Instance Path
This uses Autohotkey's hotkey syntax. See here.
This is the amount of times you must click on the tray icon in rapid succession to toggle the device.