From 51ca1e043948181fda3a7566416d38262fc66d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 15 Dec 2020 22:19:32 +0100 Subject: scripts: Add CapsLock tool tip --- scripts.ahk | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'scripts.ahk') diff --git a/scripts.ahk b/scripts.ahk index 3aaa694..0ddc10f 100644 --- a/scripts.ahk +++ b/scripts.ahk @@ -26,15 +26,25 @@ return <> +; Caps Lock toggle/display + +#Space:: +SetCapsLockState % !GetKeyState("CapsLock", "T") +CoordMode, ToolTip, Screen +if (GetKeyState("CapsLock", "T")) + ToolTip, CapsLock, 8, % A_ScreenHeight - 70 +else + ToolTip +CoordMode, ToolTip +return + ; Miscellaneous -#Space::CapsLock #PrintScreen::Media_Prev #ScrollLock::Media_Play_Pause #Pause::Media_Next -#e::Run, % "explorer /n, ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" -#!t::WinSet, AlwaysOnTop,, ahk_class tooltips_class32 ; fix bug +#e::Run, % "explorer /n, ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}" ; open my computer ; Enable/disable proxy server -- cgit v1.2.3