Jump to content
Sign in to follow this  
computergroove

How can I switch my proxy address from a list?

Recommended Posts

computergroove

I read around the forum for a bit and saw that Autoit can turn on and turn off proxy usage in the windows registry. I was wondering if there was a way to change the proxy of the computer from a database (ini file), I can get a list of working proxies and I want to change to different proxies at different times or on the fly from my ini file. Any help is appreciated.


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

Share this post


Link to post
Share on other sites
computergroove

OK. Biggest question here is if I change the registry settings on the fly, do I need to do anything to make the changes take effect? If I change the settings with the RegWrite function do I need to restart IE or Firefox?

;write IE reg keys for home/external usage DISABLE Proxy
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "ProxyEnable", "REG_DWORD", "0")
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "ProxyEnable", "REG_DWORD", "0")
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "AutoConfigProxy", "REG_SZ", "")
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "AutoConfigURL", "REG_SZ", "")
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "ProxyServer", "REG_SZ", "")
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "ProxyOverride", "REG_SZ", "")
MsgBox(64, "Internet Explorer", "Your IP address is " & $ip & @CR & @CR & "Proxy Server Disabled", 3)
Else
;write IE reg keys for School/internal usage ENABLE Proxy
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "ProxyEnable", "REG_DWORD", "1")
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "ProxyEnable", "REG_DWORD", "1")
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "AutoConfigProxy", "REG_SZ", "")
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "AutoConfigURL", "REG_SZ", "")
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "ProxyServer", "REG_SZ", $PXYSVR & ":" & $PXYPRT)
RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings", "ProxyOverride", "REG_SZ", $EXC)
;map non persistant drive to print server rmpublic using stored credentials to authenticate

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

Share this post


Link to post
Share on other sites
computergroove

It looks like I need to shut down all instances of IE and then change the settings and then restart IE. Then the settings will take effect.


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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×