Loken 2 Posted December 31, 2010 Hi evereyone I was searched the forum but i can't find a utility command for my Script.I'd like to a wait command until find a pixel color. This is my Script.I'd like to use wait command after If isarray($waitpixel)=False Then bluh bluh $BoxColour=0x8E837F $WaitPixelColor=0xFEFEFE $Box = PixelSearch (80,65,1382,754, $BoxColour,8,4) If IsArray($Box)=True Then MouseClick("left",$Box[0], $Box[1], 1,5) If isarray($Box)=True Then $waitpixel=PixelSearch (655,405,695,460, $WaitPixelColor,8,4) If isarray($waitpixel)=False Then ; What is the Wait/Sleep until find pixel color($waitPixelColor) command/s? mates i'm sorry for my bad English.Thanks to all thinking mates. Share this post Link to post Share on other sites
Zedna 280 Posted January 1, 2011 While 1 $waitpixel=PixelSearch (655,405,695,460, $WaitPixelColor,8,4) If Not @error Then ExitLoop Sleep(10) WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
wakillon 403 Posted January 1, 2011 First, Welcolme To the Forums ! Another way is :Do $waitpixel=PixelSearch ( 655, 405, 695, 460, $WaitPixelColor, 8, 4 ) Until Not @error AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
Loken 2 Posted January 1, 2011 Thanks both commands are workinig.I more like autoıt then other programs. Share this post Link to post Share on other sites
kd5cna 0 Posted April 24, 2020 I seem to have intermittent issues with the prior mention options, so if you happen to have a specific pixel to watch, this seems to work well for me as an alternative. 3289650 being the color to watch for in decimal. Do $foundpixel = PixelGetColor (2785, 841) Until $foundpixel == 3289650 Share this post Link to post Share on other sites