Advertisement
Guest User

Untitled

a guest
Jan 31st, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #SingleInstance force
  2. #Persistent
  3. #include Lib\AutoHotInterception.ahk
  4.  
  5. global AHI := new AutoHotInterception()
  6. global mouseID := AHI.GetMouseId(0x093A, 0x2521)
  7.  
  8. ; blocks XButton2
  9. AHI.SubscribeMouseButton(mouseID, 4, true, Func("testFunction"))
  10.  
  11. return
  12.  
  13. testFunction(state){
  14. ; presses LButton down
  15. AHI.SendMouseButtonEvent(mouseID, 0, 1)
  16. ToolTip, %state%
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement