Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance force
- #Persistent
- #include Lib\AutoHotInterception.ahk
- global AHI := new AutoHotInterception()
- global mouseID := AHI.GetMouseId(0x093A, 0x2521)
- ; blocks XButton2
- AHI.SubscribeMouseButton(mouseID, 4, true, Func("testFunction"))
- return
- testFunction(state){
- ; presses LButton down
- AHI.SendMouseButtonEvent(mouseID, 0, 1)
- ToolTip, %state%
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement