aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-11-20 15:10:31 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-11-20 15:10:31 +0100
commit671b8bf7769ea2e9f0c6ffa63021ccbfb7d4b668 (patch)
tree2726e8d405c02def66a9d332d292ad2ad9c6c80f
parent5d0a841e08e9f032051db52ad2793b77df58fb6d (diff)
downloadahk-671b8bf7769ea2e9f0c6ffa63021ccbfb7d4b668.tar.gz
add enable/disable proxy hotkeys
This enables/disables the proxy in Internet Options.
-rw-r--r--build.bat1
-rw-r--r--scripts.ahk5
-rw-r--r--toggleproxy.exebin0 -> 53760 bytes
3 files changed, 6 insertions, 0 deletions
diff --git a/build.bat b/build.bat
index fcd6d81..6e84be9 100644
--- a/build.bat
+++ b/build.bat
@@ -6,4 +6,5 @@ if not exist %out%\ md %out% || exit /b 1
for %%f in ("*.ico") do if not exist %out%\%%f copy /y "%%f" %out%
for %%f in ("*.bmp") do if not exist %out%\%%f copy /y "%%f" %out%
for %%f in ("*.reg") do if not exist %out%\%%f copy /y "%%f" %out%
+if not exist %out%\toggleproxy.exe copy /y toggleproxy.exe %out%
type tt.*.ahk 2>nul | tt -c"" -d";;" -o%out%/ scripts.ahk || pause \ No newline at end of file
diff --git a/scripts.ahk b/scripts.ahk
index 5d4b945..797668e 100644
--- a/scripts.ahk
+++ b/scripts.ahk
@@ -48,6 +48,11 @@ Run, reg import "%A_ScriptDir%\mypal.reg",, Hide
DllCall("Shell32\SHChangeNotify", UInt, 0x08000000, UInt, 0, UIntP, 0, UIntP, 0)
return
+; Enable/disable proxy server
+
+#^p::Run, toggleproxy 1,, Hide
+#!p::Run, toggleproxy 0,, Hide
+
; Sleep
^+F12 Up::
diff --git a/toggleproxy.exe b/toggleproxy.exe
new file mode 100644
index 0000000..2f0e2d4
--- /dev/null
+++ b/toggleproxy.exe
Binary files differ