Silverel Posted May 28, 2010 Share Posted May 28, 2010 (edited) $i = 1 While $i = 1 If WinExists("Popup", "") Then WinClose("Popup", "") EndIf Sleep(5000) Wend I've tried running this as an .exe in Win7 with admin privelages and it still doesn't work. What's the deal here? Edited May 28, 2010 by Silverel Link to comment Share on other sites More sharing options...
MrMitchell Posted May 28, 2010 Share Posted May 28, 2010 I dunno maybe WinExists("Popup", "") is never true or... what is the WinClose("Popup", "") returning? 0 or 1? Link to comment Share on other sites More sharing options...
jaberwacky Posted May 29, 2010 Share Posted May 29, 2010 Does the 'Popup' window have any text? If so, then when you say WinExists("Popup", "") that means that you're asking for a window named Popup which has no text. At least that's my theory. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Silverel Posted June 1, 2010 Author Share Posted June 1, 2010 This works flawlessly in XP and Vista environments, I was just curious if there was anything specific about Win7 that would cause it to fail. My disadvantage here is that I can't actually write the script on the Win7 machine. 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