From 505b86b47b723fcf33829b430f6c56493cc61395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 31 Oct 2020 18:51:59 +0100 Subject: add default browser hotkey --- scripts.ahk | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scripts.ahk') 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:: -- cgit v1.2.3