hugmax Posted August 18, 2017 Posted August 18, 2017 I am trying to do an autosurf script $oIE1 = _IECreate("http://visitasgratis.es/webs/p.php?p=surf") $hwnd1 = _IEPropertyGet($oIE1, "hwnd") WinSetState($hwnd1, "", @SW_MAXIMIZE) _IEAction($oIE1, "visible") _IELoadWait($oIE1) Sleep(3000) While 1 Local $oLinks = _IETagNameGetCollection($oIE1, "a") For $oLink In $oLinks-1 $class_value = $oLink.GetAttribute("class") If string($class_value) = "followbutton" Then function1($oLink) EndIf Next MsgBox($MB_SYSTEMMODAL, "Title", "Number of links." & $oLinks , 5) Sleep(30000) Local $oIE = _IEAttach($hwnd1) _IEAction($oIE, 'refresh') WEnd When all links are processed, I want to refresh the page and get all the new links.
alien4u Posted August 18, 2017 Posted August 18, 2017 You don't need to attach, once you finish processing your links you: _IENavigate($oIE, "http://visitasgratis.es/webs/p.php?p=surf") Or you could also do this: _IEAction($oIE, "refresh")
Danp2 Posted August 18, 2017 Posted August 18, 2017 This appears to be some form of affiliate / advertising site. What is the purpose of this script? Latest Webdriver UDF Release Webdriver Wiki FAQs
hugmax Posted August 19, 2017 Author Posted August 19, 2017 I am getting this error now. $class_value = $oLink^ ERROR The requested action with this object has failed. How to check if $oLink is not empty?
Developers Jos Posted August 19, 2017 Developers Posted August 19, 2017 @hugmax, What is the purpose of this script? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
hugmax Posted August 19, 2017 Author Posted August 19, 2017 Autosurf web pages. from a list. is it against the forum rules? because I dont want to brake any rules. I am using google for all the my other questions.
Developers Jos Posted August 19, 2017 Developers Posted August 19, 2017 The question remain why you would want to autosurf these pages as I really do not understand why one would want this? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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