Jump to content

WinWaitActive IE's download window


 Share

Recommended Posts

Posted Image

Hi everyone, I'm trying to have Autoit to wait for the download window to pop up and then click save

but the problem is when i use WinWaitActive("[TITLE:File Download]") or WinWaitActive("File Download") it does not recognize the pop up download window. Also when I used alt tab to check for the window name, the pop up isn't showing as it's own window.

Does anyone have any ideas?

Link to comment
Share on other sites

try

Opt("WinTitleMatchMode", 2)  
WinWaitActive("Download")
send("!s")
thanks but it didn't work, i think it either doesn't recognize it or it just sit s there and does not send anything

i tried something like sleep(5000)

send("s") and it didn't work

i also tried

WinWaitActive("Download")

msgbox(1,"1","1")

and also I didn't get any message box

Edited by ToyBoi
Link to comment
Share on other sites

Maybe the window is losing focus.

Try using

WinActivate("Download")

WinWaitActive("Download")

msgbox(1,"1","1")

If you see the message box, then you should be able to hit save. Otherwise my advice doesn't work.

Also you might want to try using the Window Info tool that comes with AutoIt to make sure AutoIt can identify the text in the window.

Link to comment
Share on other sites

The code I posted worked fine for me but anyhow I dont think the code posted above will work because it will try to activate a window before it exist then waits for it to exist.

So you can do something like

Opt("WinTitleMatchMode", 2)  
while 1
if winexists("Download") Then
WinActivate("Download")
sleep(1000)
send("!s")
endif
wend
Edited by burners

~~--Feel Free to Steal my Sigs --~~FLAT LOOK____________________________________ROUNDED LOOK

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...