Skip to content

Instantly share code, notes, and snippets.

@userhooke
Created March 28, 2019 10:00
Show Gist options
  • Save userhooke/7eabfa3f80cad93cda33524d3d3a2516 to your computer and use it in GitHub Desktop.
Save userhooke/7eabfa3f80cad93cda33524d3d3a2516 to your computer and use it in GitHub Desktop.
AHK > change mouse keys for left and right hands
; Path to startup folder Windows 10 = C:\Users\${user.name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
DllCall("SwapMouseButton",int,true) ;> left hand
; DllCall("SwapMouseButton",int,false) ;> right hand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment