; autohotkey code - mapped to F12 F12:: buttonState := DllCall("user32.dll\SwapMouseButton", "UInt", 1) if buttonState <> 0 { buttonState := DllCall("user32.dll\SwapMouseButton", "UInt", 0) }