computergroove Posted March 18, 2012 Posted March 18, 2012 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
JohnOne Posted March 18, 2012 Posted March 18, 2012 The code you have been trying would be a help to any one who might potentially help you. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
computergroove Posted March 19, 2012 Author Posted March 19, 2012 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
computergroove Posted March 19, 2012 Author Posted March 19, 2012 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
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