Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...