aGorilla Posted April 25, 2008 Share Posted April 25, 2008 Title says it all... I'm navigating through an admin, I click on a link using _IEAction($link, "click") (it's a javascript link, do I have a choice?), it makes a popup window. At first, when I tried to get the window with something like this: $popup = WinGetHandle ( 'Upload File - Microsoft Internet Explorer' ) Sometimes it would work, sometimes it wouldn't. I put a sleep(3000) before the WinGetHandle, and that seems to have fixed it. Is there a better way? I have no idea how long it will take for this popup to load, so using sleep() is unreliable, not to mention annoying, since it's adding needless time. Thanks, in advance. Search AutoItScript.com via Google Link to comment Share on other sites More sharing options...
flip209 Posted April 25, 2008 Share Posted April 25, 2008 Winwaitactive('Upload File - Microsoft Internet Explorer' ) " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Link to comment Share on other sites More sharing options...
aGorilla Posted April 25, 2008 Author Share Posted April 25, 2008 Excellent! The 'text' param can be anything in the window? I'm guessing I can add some of the web page text to confirm that it's actually loaded. Thanks much, will try. Search AutoItScript.com via Google Link to comment Share on other sites More sharing options...
flip209 Posted April 25, 2008 Share Posted April 25, 2008 It is all in the help file... When in doubt consult the help file.... " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln Link to comment Share on other sites More sharing options...
flip209 Posted April 25, 2008 Share Posted April 25, 2008 You are very welcome... " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln 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