From 63a13305b656ce5d2e502773bf2c17c99f3992b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 11 Dec 2020 16:44:26 +0100 Subject: 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. --- build.bat | 1 - chrome.reg | Bin 6910 -> 0 bytes mypal.reg | Bin 4768 -> 0 bytes scripts.ahk | 12 ------------ tt.programs.explorer.ahk | 4 ++++ 5 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 chrome.reg delete mode 100644 mypal.reg 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 Binary files a/chrome.reg and /dev/null differ diff --git a/mypal.reg b/mypal.reg deleted file mode 100644 index bcafc08..0000000 Binary files a/mypal.reg and /dev/null 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() """" -- cgit v1.2.3