aboutsummaryrefslogtreecommitdiff
path: root/scripts.ahk
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-10-31 18:51:59 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-10-31 18:51:59 +0100
commit505b86b47b723fcf33829b430f6c56493cc61395 (patch)
tree4969fa68071323d204e6004c6496c09cc5f09fbe /scripts.ahk
parent9ac211b546c060092a189aacaf033b975ff24943 (diff)
downloadahk-505b86b47b723fcf33829b430f6c56493cc61395.tar.gz
add default browser hotkey
Diffstat (limited to 'scripts.ahk')
-rw-r--r--scripts.ahk12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts.ahk b/scripts.ahk
index de1fd0b..605fad2 100644
--- a/scripts.ahk
+++ b/scripts.ahk
@@ -36,6 +36,18 @@ 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
+
; Sleep
^+F12 Up::