aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-12-11 16:44:26 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-12-11 16:44:26 +0100
commit63a13305b656ce5d2e502773bf2c17c99f3992b3 (patch)
tree78375ec2c43c6dcb71c5b041670780eca6e98954
parent15d51b8def343ab6b577f4c913a2d20baa9e6aa2 (diff)
downloadahk-63a13305b656ce5d2e502773bf2c17c99f3992b3.tar.gz
Remove default browser hotkeys
These were desigend for Windows XP. If I start browser-hopping again, I might re-instate these hotkeys and update the registry files for Windows 7.
-rw-r--r--build.bat1
-rw-r--r--chrome.regbin6910 -> 0 bytes
-rw-r--r--mypal.regbin4768 -> 0 bytes
-rw-r--r--scripts.ahk12
-rw-r--r--tt.programs.explorer.ahk4
5 files changed, 4 insertions, 13 deletions
diff --git a/build.bat b/build.bat
index 6e84be9..e01b78d 100644
--- a/build.bat
+++ b/build.bat
@@ -5,6 +5,5 @@ set out=out
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/chrome.reg b/chrome.reg
deleted file mode 100644
index 8c00c8b..0000000
--- a/chrome.reg
+++ /dev/null
Binary files differ
diff --git a/mypal.reg b/mypal.reg
deleted file mode 100644
index bcafc08..0000000
--- a/mypal.reg
+++ /dev/null
Binary files differ
diff --git a/scripts.ahk b/scripts.ahk
index f022e7b..3aaa694 100644
--- a/scripts.ahk
+++ b/scripts.ahk
@@ -36,18 +36,6 @@ return
#e::Run, % "explorer /n, ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
#!t::WinSet, AlwaysOnTop,, ahk_class tooltips_class32 ; fix bug
-; Set default web browser
-
-#^d::
-Run, reg import "%A_ScriptDir%\chrome.reg",, Hide
-DllCall("Shell32\SHChangeNotify", UInt, 0x08000000, UInt, 0, UIntP, 0, UIntP, 0)
-return
-
-#!d::
-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
diff --git a/tt.programs.explorer.ahk b/tt.programs.explorer.ahk
index db07380..7012451 100644
--- a/tt.programs.explorer.ahk
+++ b/tt.programs.explorer.ahk
@@ -38,6 +38,10 @@ ExplorerPath()
#IfWinActive ahk_group ExplorerDesktop
+; Reload icons
+
+^+r::DllCall("Shell32\SHChangeNotify", UInt, 0x08000000, UInt, 0, UIntP, 0, UIntP, 0)
+
; Open new window/command prompt
^n::Run, % "explorer /n,""" ExplorerPath() """"