Jump to content

help change proxy item


Recommended Posts

hi.

me need help change proxy to (load proxy.txt) and set proxy.

 

#include <GUIConstants.au3>
#include <IE.au3>
#include <GUIConstantsEx.au3>

Global Const $sInetSettingsKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"

GUICreate("Web Browser", 800, 600)
GUISetBkColor(0x808080)
GUISetState(@SW_SHOW)
$Edit = GUICtrlCreateInput("http://www.whatismyip.com/", 20, 20, 500, 20)
$oIE = ObjCreate("Shell.Explorer.2")
GUICtrlCreateObj($oIE, 10, 90, 780, 500)

MySetProxy("107.2.2.2:3128")

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $Vai
            $Link = GUICtrlRead($Edit)
            _IENavigate($oIE, ($Link))
            GUICtrlSetData($Edit, $Link)
        Case $GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
WEnd

MySetProxy()

Func MySetProxy($sProxy = "", $fEnable = True)
    Local Static $sPrev = ""
    Local Static $fWasEnabled = False

    If $sProxy = "" Then
        If $sPrev <> "" Then __setProxyInfo($fWasEnabled, $sPrev)
    Else
        If $sPrev = "" Then
            $sPrev = RegRead($sInetSettingsKey, "ProxyServer")
            $fWasEnabled = RegRead($sInetSettingsKey, "ProxyEnable")
        EndIf

        __setProxyInfo($fEnable, $sProxy)
    EndIf
EndFunc

Func __setProxyInfo($fEnabled, $sProxy)
    RegWrite($sInetSettingsKey, "ProxyEnable", "REG_DWORD", 1)
    RegWrite($sInetSettingsKey, "ProxyServer", "REG_SZ", $sProxy)
EndFunc

 

Link to comment
Share on other sites

  • Moderators

@AHRIMANSEFID, you have been around long enough (and we have been through this conversation enough times), to know you need to provide more information if you expect a decent amount of help. Where is the code failing? What sort of error(s) are you seeing? What have you tried on your own already?

Your past posts consisting of just "fix for me" have ultimately led to you getting zero assistance. Such as this post:

Or this one:

Let us hope you have learned a bit in your time away from the forum, and will actually help us help you. As I have told you in the past, if it is a language barrier issue, write in your native tongue and allow Google Translate to do its magic. ;)

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • 2 weeks later...

Hello everybody,

I have figured out a way to earn some automatic money while sleeping

For that I need someone that can make a bot
So the bot will be for this website : <snip>
Everyone can make one, I 'll say how to make when I'll make the guide with the bot

To can really earn the bot needs to :
-> View website like an Auto website viewer, but When it opens the website, if there's an Click on page popup under wait 8-40 seconds and then close it and delete cookies and loop

If it's possible to make it switch from pages it would be awesome
-> Support 2k+ proxy

Thank you very much

Edited by JLogan3o13
Link to comment
Share on other sites

  • Moderators

@AHRIMANSEFID the fact that you need to change proxy settings that often tells me you're trying to get around anti-bot measure on the site. This is not something we're prepared to support. I suggest you read the forum rules; thread locked.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...