Hackhers Posted September 4, 2015 Posted September 4, 2015 (edited) 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 September 4, 2015 by Hackhers
computergroove Posted September 6, 2015 Posted September 6, 2015 I tried your script and all I'm getting is an IE window with the google results of autoitscript.com. What is a google mousedown event? Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now