Jump to content
Sign in to follow this  
ToyBoi

WinWaitActive IE's download window

Recommended Posts

ToyBoi

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?

Share this post


Link to post
Share on other sites
burners

try

Opt("WinTitleMatchMode", 2)  
WinWaitActive("Download")
send("!s")
Edited by burners

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

Share this post


Link to post
Share on other sites
ToyBoi

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

Share this post


Link to post
Share on other sites
Shaitani

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.

Share this post


Link to post
Share on other sites
burners

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

Share this post


Link to post
Share on other sites
Shaitani

Ah yes, that's what I meant to say =), I was jumping ahead.

Share this post


Link to post
Share on other sites
zFrank

Always use Au3Info.exe to get the correct info about a window. and

Opt("WinTitleMatchMode", 2) is quick and can match very easily.


[font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php
$Life = "Happy"
If @Error Then
$Life = "Risk"

Share this post


Link to post
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
Sign in to follow this  

×