Jump to content

RichardHawkesford

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

RichardHawkesford's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ricky1986, The one thing that you are missing is clearing the cookies. Creating multiple visits with AutoIt will be fairly obvious to whoever your sending these visits at if you have the same cookies. Theres a few options for doing this: $cookieFolder = RegRead ("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "Cookies") MsgBox(0, "The cookies are here: ", $cookieFolder) FileDelete ($cookieFolder & "\*.txt") You can dispose of the control and delete them manually Or you could RunWait("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351") Ask windows to delete the cookies Or probably even easier you can ;_IEDocGetObj ;https://www.autoitscript.com/autoit3/docs/libfunctions/_IEDocGetObj.htm $sCookie = "name=richard;password=tehbstpass" $oIE = _IECreate("http://www.example.com") $oDocObj = _IEDocGetObj($oIE) $oDocObj.cookie = $sCookie Either way if your using the script to increase hits on a website you need: Random user agent (see attached) Random proxy Clean cookies UserAgent.txt
  2. Learn: https://www.autoitscript.com/autoit3/docs/functions/MouseMove.htm https://www.autoitscript.com/autoit3/docs/functions/MouseClick.htm https://www.autoitscript.com/autoit3/docs/appendix/SendKeys.htm https://www.autoitscript.com/autoit3/docs/guiref/GUIRef_MessageLoopMode.htm Thats enough to start you learning automation Do not automate games all that will happen is you will get banned. If your at the point you want a robot to play it for you knowing theirs a high chance you will get banned then you dont actually want to play so just quit the game...
  3. Learn: _FileReadToArray https://www.autoitscript.com/autoit3/docs/libfunctions/_FileReadToArray.htm Random https://www.autoitscript.com/autoit3/docs/functions/Random.htm UBound https://www.autoitscript.com/autoit3/docs/functions/UBound.htm Then read over this. Global $Referrer Local $ReferrerFile = "Referrer.txt" Local $ReferrerExists = FileExists($ReferrerFile) If $ReferrerExists Then     _FileReadToArray($ReferrerFile, $Referrer, 0, "") Else     MsgBox(0, "Referrer - Setup Error", "The file Referrer.txt doesn't exist.")     Exit EndIf If UBound($Referrer) = 0 Then     MsgBox(0, "Referrer - Setup Error", "The file Referrer.txt is empty.")     Exit EndIf Local $oIE = _IECreateEmbedded() Local $hoIE = GUICtrlCreateObj($oIE, 8, 8, 500, 500) $oIE.Navigate2("https://www.whatismyreferer.com/", Default, Default, Default, 'User-Agent: CustomBrowser' & @CRLF & 'Referer: ' & $Referrer[Random(0, UBound($Referrer) - 1, 1)]) GUICtrlDelete($hoIE) Everything you need is in that code. Read it understand it and reuse it.
  4. Im using #include <IE.au3> Example: Local $oIE = _IECreateEmbedded() Local $hoIE = GUICtrlCreateObj($oIE, 8, 8, 480, 270) $oIE.Navigate2("https://httpbin.org/cookies") To access an IP for timetable information to be displayed on a large screen. I have no say over changes to the server that provides the info. Sometimes and i believe its because they screw up the MIME types on the server the HTML pages show as a download rather than rendering in the IE control. Can i set the default MIME from download to text/html? Or at worst can i disable the download and display just a blank page? Also whats the easiest way to suppress JavaScript errors i set it on the PC via IE settings just wondering if theirs a way to add it to Autoit so it does not get re-enabled. Thanks in advance
×
×
  • Create New...