Xav Posted January 23, 2008 Share Posted January 23, 2008 (edited) If it found the color it's stoping the While To continu the script but it dont stop the while and restart if arealy found Send("{TAB}") Send("w") Sleep(400) Send("j") MouseClick("RIGHT") Sleep(700) Send("k") MouseClick("RIGHT") Sleep(800) Send("w") Sleep(400) Send("{f6}") MouseClick("RIGHT") Sleep(1000) Send("{ALTDOWN}") Send("{f1}") MouseClick("right" ,657, 66 ,1 ,0) Sleep(390) While 1 $Coord = PixelSearch( 654, 73, 665, 83, 0x948064 ) If @error Then MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) EndIf Wend Sleep(2000) Send("{AltUp}") Sleep(375) Send("{f9}") MouseClick("Right") Edited January 23, 2008 by Xav Link to comment Share on other sites More sharing options...
Xav Posted January 23, 2008 Author Share Posted January 23, 2008 (edited) Duh i press edit damn Send("{TAB}") Send("w") Sleep(400) Send("j") MouseClick("RIGHT") Sleep(700) Send("k") MouseClick("RIGHT") Sleep(800) Send("w") Sleep(400) Send("{f6}") MouseClick("RIGHT") Sleep(1000) Send("{ALTDOWN}") Send("{f1}") MouseClick("right" ,657, 66 ,1 ,0) Sleep(390) While 1 $Coord = PixelSearch( 654, 73, 665, 83, 0x948064 ) If @error Then MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) EndIf Wend Sleep(2000) Send("{AltUp}") Sleep(375) Send("{f9}") MouseClick("Right") Edited January 23, 2008 by Xav Link to comment Share on other sites More sharing options...
Valuater Posted January 23, 2008 Share Posted January 23, 2008 Maybe... While 1 $Coord = PixelSearch( 654, 73, 665, 83, 0x948064 ) If not @error Then ExitLoop If @error Then MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) EndIf Wend 8) Link to comment Share on other sites More sharing options...
Xav Posted January 23, 2008 Author Share Posted January 23, 2008 Maybe... While 1 $Coord = PixelSearch( 654, 73, 665, 83, 0x948064 ) If not @error Then ExitLoop If @error Then MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) EndIf Wend 8) Thanks 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