Skip to content

Instantly share code, notes, and snippets.

@mydoghasworms
Created July 24, 2013 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mydoghasworms/6069753 to your computer and use it in GitHub Desktop.
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
^!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