Created
July 24, 2013 11:24
-
-
Save mydoghasworms/6069753 to your computer and use it in GitHub Desktop.
AutoHotKey script that toggles the "Use a proxy server for your LAN" switch in WIndows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^!p:: | |
RegRead, ProxyOn,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyEnable | |
if (ProxyOn=1) { | |
ProxyOn = 0 | |
ProxyState = Off | |
} else { | |
ProxyOn = 1 | |
ProxyState = On | |
} | |
RegWrite, REG_DWORD,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyEnable,%ProxyOn% | |
TrayTip, Proxy Setting Changed, Proxy has been switched %ProxyState%, 2,1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment