mmlm Posted August 23, 2006 Share Posted August 23, 2006 my easy question for you is If IsArray(PixelSearch(544, 254, 544, 254, 2170913)) Then SetError 1oÝ÷ Ú+-«fy©â~lêbÅélyªÜú.Ûaz¸ ÚbÅé¢Z+{az¸ ÚeiÇ¢Çzºè¯[aj×±yËzØ^ìm)Þ¡ûazÇ+h®·º¹í¢Ø^mè)àiû^®ØZ¶Çzºè¯X¡j÷)Þjëh×6Sleep(5000) Send("{ENTER}") sleep(50) send("hi{ENTER}") what i want it's if he found the color I want he go next and if dont found the color then return to the start of the loop is it good like that? Link to comment Share on other sites More sharing options...
Gondus Posted August 23, 2006 Share Posted August 23, 2006 (edited) While 1 = 1 $IsArray(PixelSearch(544, 254, 544, 254, 2170913)) ;Gets cord If Not @Error Then MouseClick("left", $IsArray[0], $IsArray[1]) ; move and click the cords Sleep(5000) Send("{ENTER}") sleep(50) send("hi{ENTER}") WEnd ;Continues till paused or terminated I think this is right..... Edited August 23, 2006 by Gondus -----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran Link to comment Share on other sites More sharing options...
mmlm Posted August 23, 2006 Author Share Posted August 23, 2006 While 1 = 1 $IsArray(PixelSearch(544, 254, 544, 254, 2170913)) ;Gets cord If Not @Error Then MouseClick("left", $IsArray[0], $IsArray[1]) ; move and click the cords Sleep(5000) Send("{ENTER}") sleep(50) send("hi{ENTER}") WEnd ;Continues till paused or terminated I think this is right..... I just pm you the scrip for be sure all is ok like that. tank you ! Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 23, 2006 Share Posted August 23, 2006 my easy question for you is If IsArray(PixelSearch(544, 254, 544, 254, 2170913)) Then SetError 1oÝ÷ Ú+-«fy©â~lêbÅélyªÜú.Ûaz¸ ÚbÅé¢Z+{az¸ ÚeiÇ¢Çzºè¯[aj×±yËzØ^ìm)Þ¡ûazÇ+h®·º¹í¢Ø^mè)àiû^®ØZ¶Çzºè¯X¡j÷)Þjëh×6Sleep(5000) Send("{ENTER}") sleep(50) send("hi{ENTER}")oÝ÷ ÛZ¶,ØßÛ"~¢éݶ¢Z+#§¶ ¢w±µ©Ý÷h×èºwmç(íéëzÛ«Ú-ë-j»h~Ø^)È)¶þ«¨µä¢Ç²¢æ«zåÊ«¨¶ÇÈb ®¢Ú'jȧW©¥¶«z+'¢·²ß¢»azÚ+¶êÞvZ Æ®¶sdbVÄvWD6öÆ÷"SCBÂ#SBÒ#s2FVà¢WDÆö÷¤VÇ6P¢6öçFçVTÆö÷¤VæD Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
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