I am stuck. Don't know what's going on. Any help is much appreciated.
My function calls a link on one page that loads a page with a download link on it.
I am running in debug mode, and at the point where the download link is clicked, my console just shows the _IEAction($iLink, "click"), and nothing below... it's like it just stops. When I cancel out or complete the download manually, the script then resumes. Is there something I can do about this?
Environment:
Windows Server 2008 R2 Standard 64bit
Internet Explorer 8.0.7601.17514
The function in question is as follows:
Func _DownLoadIt($FileVar)
Local $sString = $FileVar
Local $oLinks = _IELinkGetCollection($oIE)
For $oLink In $oLinks
Local $sLinkText = _IEPropertyGet($oLink, "innerText")
If StringInStr($sLinkText, $sString) Then
_IEAction($oLink, "click")
_IELoadWait($oIE)
Sleep(2000)
Local $sMyString = "Download"
Local $iLinks = _IELinkGetCollection($oIE)
For $iLink In $iLinks
Local $sLinkText2 = _IEPropertyGet($iLink, "innerText")
If StringInStr($sLinkText2, $sMyString) Then
_IEAction($iLink, "click")
MsgBox(0,"test","testbox")
WinWaitActive("File Download","",2)
Send("!S")
WinWaitActive("Select","",3)
Send("+{TAB 2}{UP 3}{ENTER}")
Send("!S")
ExitLoop
EndIf
Next
EndIf
Next
_IEAction($oIE,"Back")
EndFunc
Thanks again,
T]-[R/\K