aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-12-15 22:19:32 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-12-15 22:19:32 +0100
commit51ca1e043948181fda3a7566416d38262fc66d94 (patch)
tree1aee38ef437af6b2820f3b82eeb264fd1e21b5c8
parent52279dd08ceb29be175ad89840be26659f299475 (diff)
downloadahk-51ca1e043948181fda3a7566416d38262fc66d94.tar.gz
scripts: Add CapsLock tool tip
-rw-r--r--scripts.ahk16
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts.ahk b/scripts.ahk
index 3aaa694..0ddc10f 100644
--- a/scripts.ahk
+++ b/scripts.ahk
@@ -26,15 +26,25 @@ return
<<body>>
+; 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