ToyBoi Posted August 27, 2008 Share Posted August 27, 2008 Hi everyone, I'm trying to have Autoit to wait for the download window to pop up and then click savebut 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 More sharing options...
burners Posted August 27, 2008 Share Posted August 27, 2008 (edited) try Opt("WinTitleMatchMode", 2) WinWaitActive("Download") send("!s") Edited August 27, 2008 by burners ~~--Feel Free to Steal my Sigs --~~FLAT LOOK____________________________________ROUNDED LOOK Link to comment Share on other sites More sharing options...
ToyBoi Posted August 27, 2008 Author Share Posted August 27, 2008 (edited) 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 August 27, 2008 by ToyBoi Link to comment Share on other sites More sharing options...
Shaitani Posted August 27, 2008 Share Posted August 27, 2008 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 More sharing options...
burners Posted August 27, 2008 Share Posted August 27, 2008 (edited) 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 August 27, 2008 by burners ~~--Feel Free to Steal my Sigs --~~FLAT LOOK____________________________________ROUNDED LOOK Link to comment Share on other sites More sharing options...
Shaitani Posted August 27, 2008 Share Posted August 27, 2008 Ah yes, that's what I meant to say =), I was jumping ahead. Link to comment Share on other sites More sharing options...
zFrank Posted August 27, 2008 Share Posted August 27, 2008 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" 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