apsync 0 Report post Posted May 23, 2005 hello, I am currently busy with a script but I am stuck and asking you for help. When I get a popup I want to press enter and Send my nickname and I am using this code for this, but it doesnt seem to work. For some reason it stops IN the While loop. $CHECK1 = PixelGetColor( 272, 373) $CHECK2 = PixelGetColor( 345, 373) $CHECK3 = PixelGetColor( 737, 377) $CHECK4 = PixelGetColor( 588, 400) WinWaitActive("Enter your username :)") While Not ($CHECK1 = 0 AND $CHECK2 = 0 AND $CHECK3 = 0 AND $CHECK4 = 13947080) MouseClick("left", 586, 398, 0) Send("{SHIFTDOWN}{HOME}{SHIFTUP}apsync{ENTER}") Sleep(2300) $CHECK1 = PixelGetColor( 272, 373) $CHECK2 = PixelGetColor( 345, 373) $CHECK3 = PixelGetColor( 737, 377) $CHECK4 = PixelGetColor( 588, 400) Wend MsgBox(0, "", "this should not be reached...");this GETS reached :( Share this post Link to post Share on other sites
GaryFrost 11 Report post Posted May 23, 2005 If the while loop is exiting, that tells me one of the conditions of staying in the while is not being met. check your check values. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Share this post Link to post Share on other sites
apsync 0 Report post Posted May 23, 2005 hmm these are good, any better methods for checking? i was thinking of WinWaitActive("title name") but the title can be different, is there a way to do WinWaitActive("TITLE1" OR "TITLE2") ;it should activate when current window title is "TITLE1", or "TITLE2" Share this post Link to post Share on other sites
ezzetabi 2 Report post Posted May 23, 2005 Check is coodinates are absolute or windows related. About the possibility of two titles just use: WinWaitActive("TITLE1") OR WinWaitActive("TITLE2") Share this post Link to post Share on other sites