Guest User

Untitled

a guest
May 19th, 2016
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. WinActivate("Dota 2")
  2.  
  3. HotKeySet("g","start");The hotkey that starts the programs loop
  4. HotKeySet("e", "end")
  5.  
  6. While 1
  7. Sleep(10)
  8. WEnd
  9.  
  10. Func End()
  11. Exit 0
  12. EndFunc
  13.  
  14. Func Start()
  15. Global $x = 274
  16. Global $y = 246
  17. While 1
  18. If $x > 1269 Then
  19. $x = 274
  20. $y += 50
  21. EndIf
  22. If $y > 873 Then
  23. $y = 246
  24. EndIf
  25. $x += 100
  26. MouseMove($x, $y, 0)
  27. MouseClick("primary",$x,$y, 1, 0)
  28. WEnd
  29. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment