tezza3211 Posted August 22, 2011 Share Posted August 22, 2011 Ok here is what i have so far but what im trying to do is repeat this action until the pixel colour is no longer present then carry on with another colour. then when all colours are done return to top and start over. this is my 1st project and i have not had any help so far just looking and learning so to some people this might be noob question. $pixelSearch=PixelSearch(560, 28, 769, 368, 0x737573) If IsArray($pixelSearch)=1 Then MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) Sleep(1000) MouseMove(518, 204, 10) Sleep(1000) MouseClick("left") EndIf Link to comment Share on other sites More sharing options...
kindlin Posted August 22, 2011 Share Posted August 22, 2011 Well, make an array of each color you want it to find. Make a loop that does your code, but inserts the next color from the array each pass. When it does all the colors, have it loop again. Something like, $Colors[6]=[0x253525,0xABG325,...] while 1 for i=0 to 5 $pixelSearch=PixelSearch(560, 28, 769, 368, $Colors[$i]) If IsArray($pixelSearch)=1 Then MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) Sleep(1000) MouseMove(518, 204, 10) Sleep(1000) MouseClick("left") EndIf next wend Link to comment Share on other sites More sharing options...
rcmaehl Posted August 22, 2011 Share Posted August 22, 2011 This is just a rephrase of a game automation program you asked earlier. Game Automation is not discussed here. My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
Developers Jos Posted August 22, 2011 Developers Share Posted August 22, 2011 @tezza3211, Last time you told us you didn't know, what is your excuse this time? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts