darek Posted December 5, 2021 Posted December 5, 2021 hello pixel search i have used and worked now seems to be broken.. after finding Color on pixel it move mouse to pixel... execute other function ... and then run pixel search again. my issue with function search is after finding color first time it returns to the same place over and over again even if color pixel is now in different place. Thank you for answers yours Darek Quote #include <AutoItConstants.au3> HotKeySet("!x", "MyExit") hotkeyset("!z","search") Func MyExit() Exit EndFunc ;==>MyExit WinActivate("(program Online (be0c679)") local $search = true global $log = true ;ooooooooooooooooooooooooo sleep(900) while(1) sleep(999) WEnd FUNC search() while $searchlog = True $pixels1 = PixelSearch(1885, 39,1902, 225,0xE89661,1,1) if isarray($pixels1) then MouseMove($pixels1[0],$pixels1[1]) call ("log") elseif not IsArray($pixels1) Then call("MyExit") EndIf WEnd EndFunc func log() while 1 Sleep(Random(500, 1000, 1)) send("7") Sleep(Random(1000, 2000, 1)) $point = MouseGetPos() Sleep(Random(100, 200, 1)) mousemove($point[0]+20,$point[1],20) Sleep(Random(10000, 12000, 1)) call("search") WEnd endfunc Expand
darek Posted December 5, 2021 Author Posted December 5, 2021 sry got it.... window size and resolution was the issue close plz
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now