Jump to content

How to fake google mousedown event?


Hackhers
 Share

Recommended Posts

Hey, Im trying to fake google's mousedown event to get link but I dont have luck :(  Here is my code
 

#include <IE.au3>
#include <MsgBoxConstants.au3>

    local $s_q = "autoit"
    local $i_resultnum = 100
    local $lng = "tr"
    local $url = 'http://www.google.com/search?hl='&$lng&'&q=' & StringReplace(StringReplace($s_q, "+", "%2B"), " ", "+") & '&num=' & $i_resultnum
    ; $s_Source = _INetGetSource('http://www.google.com/search?hl='&$lng&'&q=' & StringReplace(StringReplace($s_q, "+", "%2B"), " ", "+") & '&num=' & $i_resultnum)
    $oIE = _IECreate($url, 0, 1)
Local $oLinks = _IELinkGetCollection($oIE)
Local $iNumLinks = @extended

Local $sTxt = $iNumLinks & " links found" & @CRLF & @CRLF
For $oLink In $oLinks
    if $oLink.href == "http://www.autoitscript.com/" Then
    MsgBox(0, default, "sadga")
    _IEAction($oLink, "focus")
    _IEAction($oLink, "blur")
    _IEAction($oLink, "click")
    EndIf
Next

 

Edited by Hackhers
Link to comment
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
 Share

×
×
  • Create New...