Jump to content

Recommended Posts

Posted

This is weird when i try this:

#include <IE.au3>
$oIE = _IECreate("http://flipdummie.com/",0,1,1)
$oForm = _IEFormGetObjByName ($oIE, "cse-search-box")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "Autoit")
_IEFormSubmit ($oForm)
sleep(5000)
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    MsgBox(0, "Link Info", $oLink.href)
Next

Exit

It doesn't give the links

however if i do this:

#include <IE.au3>
$oIE = _IECreate("http://google.com/",0,1,1)
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "AutoIt")
_IEFormSubmit ($oForm)
sleep(5000)
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    MsgBox(0, "Link Info", $oLink.href)
Next

Exit

it gives all the links. Any ideas?

Posted

This is weird when i try this:

#include <IE.au3>
$oIE = _IECreate("http://flipdummie.com/",0,1,1)
$oForm = _IEFormGetObjByName ($oIE, "cse-search-box")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "Autoit")
_IEFormSubmit ($oForm)
sleep(5000)
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    MsgBox(0, "Link Info", $oLink.href)
Next

Exit

It doesn't give the links

however if i do this:

#include <IE.au3>
$oIE = _IECreate("http://google.com/",0,1,1)
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "AutoIt")
_IEFormSubmit ($oForm)
sleep(5000)
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    MsgBox(0, "Link Info", $oLink.href)
Next

Exit

it gives all the links. Any ideas?

Anyone tried it yet?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...