Jump to content

AITR

Members
  • Posts

    4
  • Joined

  • Last visited

AITR's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Frist off thank you again for replying, so do you think it would be easier to read the HTML code, find this string and pass it to a variable?
  2. Just when I thought it made sense I ran into another snag how can I get the string value of onsubmit to a variable? please help. This is the line i'm trying to pull from the source code > name="quickCheck" onsubmit="java script: document.getElementById('btnDownload').disabled=true; setTimeout('document.getElementById(\'btnDownload\').disabled=false', 5000); if (g_IsIE) {window.open('http://download.microsoft.com/download/5/3/7/5374ce96-3838-4959-92af-77ab011fd704/WindowsXP-KB932823-v3-x86-ENU.exe This won't work #include <IE.au3> #include <array.au3> $oIE = _IEAttach("Download") ;http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=28e2fdb2-1aa5-4c84-8255-b3142ca2fe85 $oForm = _IEFormGetObjByName ($oIE, "quickCheck") $oText = _IEFormElementGetObjByName ($oForm, "onsubmit") MsgBox(0, "Form Element Value", _IEFormElementGetValue ($oText))
  3. Thank you Weaponx everything makes sense now.
  4. Does anyone know how to get the link names inside the eContent frame? (see attach picture for links names i'm trying to retrieve from Microsoft Updates) My example only returns these javascript links... 1 java script:parent.fnExpandDetails(35) 2 java script:parent.fnExpandDetails(35); 3 java script:parent.fnDisplayDetails("35"); 4 java script:parent.fnExpandDetails(23) 5 java script:parent.fnExpandDetails(23); 6 java script:parent.fnDisplayDetails("23"); 7 java script:parent.fnExpandDetails(16) #include <IE.au3> $oIE = _IEAttach ("Microsoft Update") ;attaching windows update after Express button is pressed $oIFRAME = _IEFrameGetObjByName ($oIE, "eContent") $oLinks = _IELinkGetCollection ($oIFRAME) $iNumLinks = @extended $num = 0 MsgBox(0, "Link Info", $iNumLinks & " links found") For $oLink In $oLinks $num = $num + 1 MsgBox(0, "Link Info", $num & " " & $oLink.href) Next
×
×
  • Create New...