Guest User

Untitled

a guest
May 20th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. Global $paused, $x_koef = 65535 / @DesktopWidth, $y_koef = 65535 / @DesktopHeight, $User32 = DllOpen("User32.dll")
  2. HotKeySet("{ESC}", "Terminate")
  3.  
  4. $startx = 400
  5. $starty = 400
  6. $limitx = 1700
  7. $limity = 1100
  8.  
  9.  
  10. while 1
  11. sleep(250)
  12. $x = $startx
  13. $y = $starty
  14. while $y < $limity
  15. while $x < $limitx
  16. _MouseClickFast2($x, $y, $User32)
  17. $x += 80
  18. WEnd
  19. $x = $startx
  20. $y += 80
  21. WEnd
  22.  
  23. wend
  24.  
  25. Func Terminate()
  26. Exit
  27. EndFunc
  28.  
  29. Func _MouseClickFast2($x, $y, $User32 = "User32.dll")
  30. $x *= $x_koef
  31. $y *= $y_koef
  32. DllCall($User32, "none", "mouse_event", "int", 32769, "int", $x, "int", $y, "int", 0, "int", 0) ; 32769 0x8001 BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_MOVE)
  33. DllCall($User32, "none", "mouse_event", "int", 32770, "int", $x, "int", $y, "int", 0, "int", 0) ; 32770 0x8002 BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_LEFTDOWN)
  34. DllCall($User32, "none", "mouse_event", "int", 32776, "int", $x, "int", $y, "int", 0, "int", 0) ; 32770 0x8008 BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_RIGHTDOWN)
  35. DllCall($User32, "none", "mouse_event", "int", 32800, "int", $x, "int", $y, "int", 0, "int", 0) ; 32770 0x8020 BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_MIDDLEDOWN)
  36.  
  37. DllCall($User32, "none", "mouse_event", "int", 32772, "int", $x, "int", $y, "int", 0, "int", 0) ; 32772 0x8004 BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_LEFTUP)
  38. DllCall($User32, "none", "mouse_event", "int", 32784, "int", $x, "int", $y, "int", 0, "int", 0) ; 32772 0x8010 BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_RIGHTUP)
  39. DllCall($User32, "none", "mouse_event", "int", 32832, "int", $x, "int", $y, "int", 0, "int", 0) ; 32772 0x8040 BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_MIDDLEUP)
  40.  
  41. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment