aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-04-14 22:56:04 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-04-14 22:56:04 +0200
commite5c7eadccfe4dea5b377790b8240ecc7948fd4fa (patch)
tree74b6144c2f964c4710473ef459696ddb56280b12
parentf259047f8334dda0452948379dce2738fefa4b1f (diff)
downloadahk-e5c7eadccfe4dea5b377790b8240ecc7948fd4fa.tar.gz
jump: Fix hotkey overlap
When #s is triggered, the Windows key is likely going to be held down for the input to Input, but Input prevents Windows' built-in Windows-key bindings from triggering. Unfortunately, Input doesn't prevent the Windows-key bindings defined in the AutoHotkey script from triggering! Thus the global DisableHotkeys variable.
-rw-r--r--tt.jump.ahk6
1 files changed, 6 insertions, 0 deletions
diff --git a/tt.jump.ahk b/tt.jump.ahk
index b551186..b5c0f5a 100644
--- a/tt.jump.ahk
+++ b/tt.jump.ahk
@@ -9,13 +9,19 @@ JumpPaths := { s: env("Sync")
, m: env("UserProfile") "\Music"
, p: env("UserProfile") "\Pictures" }
+DisableHotkeys := false
+
;; -> body
+#If !DisableHotkeys
#e::OpenExplorer("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
+#If
#s::
ToolTip, ...
+DisableHotkeys := true
Input, k, M C L1
+DisableHotkeys := false
if (JumpPaths[k] != "")
{
if (InStr(FileExist(JumpPaths[k]), "D"))