Skip to content

Instantly share code, notes, and snippets.

View ZachNo's full-sized avatar

Zachary N. ZachNo

  • Gremlin
View GitHub Profile
@ZachNo
ZachNo / gist:191daf386dca7c1d3e2a760e8889b2f9
Created June 6, 2019 01:01
AutoHotkey script to switch monitors through hotkey for XP-PEN Artist 22HD which uses tabcfg.exe
monitor = 1
hLibModule := DllCall("LoadLibrary", "Str", "WinTab32.dll", "Ptr")
if(hLibModule == 0) {
MsgBox Failed to load Wintab32.dll!
}
SetMapMonitorStateProc := DllCall("GetProcAddress", "Ptr", hLibModule, "AStr", "TDSetMapMonitorState", "Ptr")
if(SetMapMonitorStateProc == 0) {
MsgBox Failed to get address of TDSetMapMonitorState!