MJ36 Posted November 19, 2018 Posted November 19, 2018 Hello, I know that there were a few topics about changing the proxy, but currently it does not work. Can anyone else already change using autoit proxy in IE ?
Subz Posted November 19, 2018 Posted November 19, 2018 (edited) You just need to capture a couple of registry keys: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings ProxyEnable ProxyServer HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections DefaultConnectionSettings Edited November 19, 2018 by Subz MJ36 1
MJ36 Posted November 19, 2018 Author Posted November 19, 2018 Ok thanks for the advice after work I will write something and check
Moderators JLogan3o13 Posted November 19, 2018 Moderators Posted November 19, 2018 Do a google search on netsh winhttp show proxy and netsh winhttp set proxy "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!
MJ36 Posted January 23, 2019 Author Posted January 23, 2019 (edited) #Include <IE.au3> Local $sProxy = "111.205.122.222:80" Local $oIE = _IECreate() Func Enable() ; Enable Proxy RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", "REG_DWORD", 1) RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ", $sProxy) RefreshIE() EndFunc Func Disable() ; Disable Proxy RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", "REG_DWORD", 0) RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer") RefreshIE() EndFunc Enable() _IENavigate($oIE, "cualesmiip.com") _IELoadWait Disable() Func RefreshIE() DllCall('WININET.DLL', 'long', 'InternetSetOption', 'int', 0, 'long', 39, 'str', 0, 'long', 0) DllCall('WININET.DLL', 'long', 'InternetSetOption', 'int', 0, 'long', 37, 'str', 0, 'long', 0) EndFunc I tried this code but it does not work; / found on the forum Edited January 23, 2019 by MJ36 found on the forum
Moderators JLogan3o13 Posted January 23, 2019 Moderators Posted January 23, 2019 "does not work" does not tell anyone anything. How about explaining in detail what you are seeing (errors, no errors, etc.). See the link in my signature for how to ask decent questions on the forum. "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!
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