Sign in to follow this  
Followers 0
Astormooke

plz help me....plz respod....

3 posts in this topic

k this is probably a really noob thing to want but I need a bot to research a topic of my choice.... now I can get to the point that I open google and search a topic but I need to get it to get the web links and use inet get to get the webpage. Here is the code so far......

#include <IE.au3>
HotKeySet("`","topic")

While 1
    Sleep(100)
WEnd

Func topic()
$oIE = _IECreate("www.google.com")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 1)
$research = InputBox("What to research?","What do you want to research?")
_IEFormElementSetValue ($oQuery, $research)
_IEFormSubmit ($oForm)
EndFunc

Share this post


Link to post
Share on other sites



Try this:~

#include <IE.au3>
HotKeySet("`","topic")

While 1
    Sleep(100)
WEnd

Func topic()
$oIE = _IECreate("www.google.com")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 1)
$research = InputBox("What to research?","What do you want to research?")
_IEFormElementSetValue ($oQuery, $research)
_IEFormSubmit ($oForm,1)
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    MsgBox(0, "Link Info", $oLink.href)
Next
EndFunc

[font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search

Share this post


Link to post
Share on other sites

Please don't double post.

I you got no answers yet (you posted the other topic like an hour ago) that's because none of the users browsing the forum either don't know what to tell you about or are busy doing something else or ...

Be patient because You WILL get an answer.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0