Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetDefaultMouseSpeed, 0
- SetMouseDelay, 0
- SetWinDelay 0
- SetKeyDelay 0
- SendMode Input
- #SingleInstance Force
- WinActivate, Tibia
- WinGetPos, X, Y, width, height, A
- center_x:=width/2
- center_y:=height/2
- CoordMode Pixel
- Loop, 10
- {
- ImageSearch, FoundX, FoundY, 854, 401, A_ScreenWidth, A_ScreenHeight, C:\Users\Administrator\Desktop\x\flask.png
- Sleep, 1000
- MouseClickDrag, Left, FoundX+20, FoundY+5, center_x,center_y-100
- Sleep, 500
- }
- Loop, 10
- {
- random, randTime, 200, 500
- MouseClickDrag, Left, center_x+35, center_y-100, 920, 478
- Sleep, randTime
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement