Xav Posted January 22, 2008 Share Posted January 22, 2008 this is my script... How can i do like if it get a color it will stop send f9 but if it dont get continu to move like that ==MouseClick("right" ,798, 103 ,1 ,0)== Thanks to try expandcollapse popupSend("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) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,798, 103 ,1 ,0) Sleep(390) MouseClick("right" ,706, 184 ,1 ,0) Sleep(390) MouseClick("right" ,797, 47 ,1 ,0) Sleep(390) MouseClick("right" ,683, 81 ,1 ,0) Sleep(390) MouseClick("right" ,778, 74 ,1 ,0) Sleep(390) Send("{AltUp}") Sleep(375) Send("{f9}") MouseClick("Right") send("{ALTUP}") Link to comment Share on other sites More sharing options...
Xav Posted January 22, 2008 Author Share Posted January 22, 2008 (edited) i think i just found it's something like that?-but it wont break the first script idk how to make this stopin :S While 1 Sleep (1) WEnd While 1 $Coord = PixelSearch( 16, 499, 328, 517, 0x008400 ) If @error Then Sleep(1) EndIf MouseClick("LEFT"); i think here it go Wend EndIf Exit EndFunc Edited January 22, 2008 by Xav Link to comment Share on other sites More sharing options...
JustinReno Posted January 22, 2008 Share Posted January 22, 2008 (edited) That was a very poor attempt to bump your less than 24 hour topic. PixelSearch or whatever it is. Look it up in the help file.Edit: Nevermind. Edited January 22, 2008 by JustinReno Link to comment Share on other sites More sharing options...
Xav Posted January 22, 2008 Author Share Posted January 22, 2008 up Link to comment Share on other sites More sharing options...
Leighwyn Posted January 22, 2008 Share Posted January 22, 2008 (edited) You could do something simple like... $done =0 while not $done ;your mouseclick() ;your pixelsearch() if not @error then $done =1 endif wend The idea is: you want to end the while loop when pixelsearch is a success. The while loop will end when $done =1, which will happen when @error =0, which occurs when pixelsearch is a success. hope that helps you Edited January 22, 2008 by Leighwyn Link to comment Share on other sites More sharing options...
Xav Posted January 22, 2008 Author Share Posted January 22, 2008 (edited) You could do something simple like... $done =0 while not $done ;your mouseclick() ;your pixelsearch() if not @error then $done =1 endif wend The idea is: you want to end the while loop when pixelsearch is a success. The while loop will end when $done =1, which will happen when @error =0, which occurs when pixelsearch is a success. hope that helps you Well, Thanks !!! Working Edited January 22, 2008 by Xav 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