haisuleo Posted December 10, 2011 Posted December 10, 2011 Hello, I am having trouble with the "File Download - Security Warning" pop up window on IE. I am trying to download file from https site. After log in and go to the page with the list of available download, after the _IELinkClick was sent, the pop up window showed up and the script went to pause, nothing happen no matter command I used. I tried WinExists("File Download - Security Warning") after _IELinkClick, and sleep(500) but that command doesn't run. Any help greatly appreciated. Thang
PsaltyDS Posted December 10, 2011 Posted December 10, 2011 Did you set the $f_wait = false in _IELinkClickByIndex() or _IELinkClickByText()? Your script may be blocked at that point. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
haisuleo Posted December 10, 2011 Author Posted December 10, 2011 thanks, PsaltyDS, No, I didn't set it. Does it set by default? Below is my codes: $iDownloadTitle = "File Download - Security Warning" $vFrame = _IEFrameGetObjByName($oIE, "View_Frame") $vLinks = _IELinkGetCollection($vFrame) $vNumberLinks = @extended If $vNumberLinks > 0 Then _IELinkClickByIndex($vFrame, 0) EndIf If (WinExists($iDownloadTitle)) Then ConsoleWriteError("exist") Else ConsoleWriteError("doensn't exist") EndIf Thanks
PsaltyDS Posted December 10, 2011 Posted December 10, 2011 Look at the function in the help file, it shows $f_wait = 1 by default. Try _IELinkClickByIndex($vFrame, 0, 0) instead and then enough of a sleep() for the pop up to occur. Also, since your click is conditional, why look for the pop up even if you didn't do the click? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
haisuleo Posted December 10, 2011 Author Posted December 10, 2011 I tried to take control of the pop up window to send a click on Save button. I changed IELinkClickByIndex($vFrame, 0, 0), sleep(1000). It worked. Thank you very much,
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