mistertag

F9Toggle_PoE_ChestPutter

Mar 10th, 2020
878
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 OF INVENTORY (x0, y0)
  3. F9::
  4.     ;store initial mouse position
  5.     MouseGetPos, xPos, yPos
  6.  
  7.     ;lock mouse movement while using gesture
  8.     BlockInput MouseMove
  9.  
  10.     Loop, 5 {
  11.         Send, {Ctrl down}{Click}{Ctrl up}
  12.         Loop, 11 {
  13.             MouseMove, 54, 0, 0, R
  14.             Send, {Ctrl down}{Click}{Ctrl up}
  15.         }
  16.         MouseGetPos, currentX, currentY
  17.         MouseMove, xPos, currentY, 0
  18.         MouseMove, 0, 54, 0, R
  19.     }
  20.  
  21.     ;return mouse to initial position
  22.     MouseMove, xPos, yPos, 0
  23.  
  24.     ;unlock movement after gesture
  25.     BlockInput MouseMoveOff
  26. Return
  27.  
  28. F10::Suspend
RAW Paste Data