dudealex Posted December 19, 2019 Share Posted December 19, 2019 (edited) Iv been working on this small project involving a game. i just need two separate Pixelsearchs in a loop but having trouble. The program runs just gets stuck on the first one. PixelSearch.au3 Edited December 19, 2019 by dudealex Link to comment Share on other sites More sharing options...
dudealex Posted December 19, 2019 Author Share Posted December 19, 2019 While(1) ;overload $OUT_POTION=False $pixels= PixelSearch(-1236, 695, -1032, 997, 0xB4BEC3,1) If Not(@error) Then MouseClick("left",$pixels[0],$pixels[1] 1, 1) Sleep (400) EndIf Sleep(300) ;rockcake MouseClick ("left",-1165, 761, 2, 30) Sleep(300) ;absord $pixels2= PixelSearch(-1236, 695, -1032, 997, 0xB4BEC3,1) If Not(@error) Then MouseClick("left",$pixels2[0],$pixels2[1],1,1) Sleep (400) EndIf Sleep(80000) WEnd Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 19, 2019 Moderators Share Posted December 19, 2019 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts