El-Trucha Posted January 4, 2005 Posted January 4, 2005 Hello every1!! OK...I'm doing a Habbo Hotel flooder program that has a GUI... What I'm doing is that when the user presses the Start Flooding button, it checks if the user put in all the required info and then it decides if it should go to Infinite loop or Definite loop... I want it to stop flooding when the user gets out of the Habbo window, and go back to the GUI's main window... I could to this with AutoIt2's labels, but how do I do it on AutoIt3?? I tried putting this in the loop's body: If Not WinActive($windowName) Then ExitLoop When $windowName is not open, it will exit the loop, but then it'll go back to where the button is pressed!! and I want it to go back to the GUI!! How?? Thanx!! El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx
Wolvereness Posted January 5, 2005 Posted January 5, 2005 (edited) If Not WinActive($windowName) Then Do Sleep(10) Until WinActive($windowName) EndIf This pauses script untill the window is back. The problem to go back where you pressed the Okay button, I need to manually edit your script with a special trick at the given point you want. Post it and I'll help Edited January 5, 2005 by Wolvereness Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote]
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