Jump to content

Thrakorzog

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Thrakorzog

  1. @Dale, I did, but unfortunately, I cannot see the correlation between the example references and the web page so that I can understand what I need to change to make it relevant. I have been going through the help file for _IEGetObjByName, _IEPropertyGet, ControlSend and ControlClick to try to make sense of it, but it is slow going. I will get there, though. Thank you for your help and direction.
  2. @JDelaney, Thank you for your suggestion, I can see the logic, so it should work. @Dan, Unfortunately, the web page to which I am going has content that is dynamically changed daily and does not have a static href reference. @Dale, I do not understand your meaning. I am referencing a collection on one page, and then clicking on that link, then referencing the resulting pages collection and clicking on it's link. Is that the scenario to which you are referencing? If there is a better way to do it, I am definitely open to learning. I have been told before that my way of thinking is not normal. Thank again for all of your help
  3. 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
×
×
  • Create New...