mistertag

F8Toggle_PoE_ChestGetter

Mar 10th, 2020
850
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; RELATIVE TO CURRENT MOUSE POSITION
  2. ; START FROM TOP LEFT (x0, y0)
  3. ; DOESN'T WORK ON QUAD-CHESTS
  4. F8::
  5.     ;store initial mouse position
  6.     MouseGetPos, xPos, yPos
  7.  
  8.     ;lock mouse movement while using gesture
  9.     BlockInput MouseMove
  10.  
  11.     Loop, 12 {
  12.         Send, {Ctrl down}{Click}{Ctrl up}
  13.         Loop, 11 {
  14.             MouseMove, 54, 0, 0, R
  15.             Send, {Ctrl down}{Click}{Ctrl up}
  16.         }
  17.         MouseGetPos, currentX, currentY
  18.         MouseMove, xPos, currentY, 0
  19.         MouseMove, 0, 54, 0, R
  20.     }
  21.  
  22.     ;return mouse to initial position
  23.     MouseMove, xPos, yPos, 0
  24.  
  25.     ;unlock movement after gesture
  26.     BlockInput MouseMoveOff
  27. Return
  28.  
  29. F10::Suspend
RAW Paste Data