Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pickpocket(){
- global
- stage := stage+1
- if (stage > depth)
- {
- stage := depth
- }
- sx := (cx - stage*anchoS)
- sy := (cy - stage*altoS)
- sx2 := (cx + stage*anchoS)
- sy2 := (cy + stage*altoS)
- PixelSearch, Px, Py, %sx%, %sy%, %sx2%, %sy2%, %PickTarget%, %pickShades%, Fast
- if ErrorLevel
- {
- Pickpocket()
- }
- else
- MouseMove, Px, Py, %speed%
- xx1 := (Px-tolerance)
- xy1 := (Py-tolerance)
- xx2 := (Px+tolerance)
- xy2 := (Py+tolerance)
- PixelSearch, Px2, Py2, %xx1%, %xy1%, xx2, xy2, %PickTarget%, %pickShades%, Fast
- if ErrorLevel
- {
- Pickpocket()
- }
- else
- MouseClick, left, Px2, Py2, 1, %speed%
- stage:=0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement