Advertisement
Guest User

Untitled

a guest
Jul 13th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Pickpocket(){
  2. global
  3. stage := stage+1
  4. if (stage > depth)
  5. {
  6. stage := depth
  7. }
  8.  
  9. sx := (cx - stage*anchoS)
  10. sy := (cy - stage*altoS)
  11. sx2 := (cx + stage*anchoS)
  12. sy2 := (cy + stage*altoS)
  13.  
  14.  
  15. PixelSearch, Px, Py, %sx%, %sy%, %sx2%, %sy2%, %PickTarget%, %pickShades%, Fast
  16. if ErrorLevel
  17. {
  18. Pickpocket()
  19. }
  20. else
  21. MouseMove, Px, Py, %speed%
  22. xx1 := (Px-tolerance)
  23. xy1 := (Py-tolerance)
  24. xx2 := (Px+tolerance)
  25. xy2 := (Py+tolerance)
  26. PixelSearch, Px2, Py2, %xx1%, %xy1%, xx2, xy2, %PickTarget%, %pickShades%, Fast
  27. if ErrorLevel
  28. {
  29. Pickpocket()
  30. }
  31. else
  32. MouseClick, left, Px2, Py2, 1, %speed%
  33. stage:=0
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement