diff options
author | John Ankarström <john@ankarstrom.se> | 2021-05-23 14:53:49 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-05-23 14:53:49 +0200 |
commit | c68774a7052a45130a50f955d0f6eb64e3894530 (patch) | |
tree | 92d5fd32a4a63aae10612bfc5ffca7efec92d06b | |
parent | dbda8b7a4b64d691700dd7f5b7dcdcff223e9481 (diff) | |
download | ahk-c68774a7052a45130a50f955d0f6eb64e3894530.tar.gz |
scripts: Improve Show Desktop shortcut
-rw-r--r-- | scripts.ahk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts.ahk b/scripts.ahk index da39d5d..3e9c222 100644 --- a/scripts.ahk +++ b/scripts.ahk @@ -54,7 +54,13 @@ return #Pause::Media_Next #If !DisableHotkeys -#d::#m +#d:: +if (not WinActive("ahk_group Desktop")) ; see tt.programs.explorer.ahk +{ + SendInput, #m + WinActivate, ahk_group Desktop +} +return #+d::#+m #If |