Here is the part of the code I am trying to use:
Code: Select all
#NoEnv
; #Warn
SendMode Input
SetWorkingDir %A_ScriptDir%
SetNumLockState On
#UseHook
#InstallKeybdHook
^!a::
Numpad1::
Send, {Control Down}{c}{Control Up}
Sleep, 300
Run, C:\Program Files (x86)\WinCatalog\WinCatalog.exe -o "C:\Users\MyUserName\OneDrive\Documents\WinCatalog\Music Catalog.w3cat" -s -sq "%Clipboard% AND (*.mp3 OR *.wav OR *.aif)"
Sleep, 300
WinActivate, WinCatalog 2017 - Music WinCatalog File.w3cat
Return
^!s::
Numpad2::
Send, +^{Click, Left}
WinWait, Redirecting...
Sleep, 333
WinWaitClose, Redirecting...
Sleep, 333
SoundPlay, D:\Dropbox\Sounds\work-complete.wav
Return
;Numpad1::^!a
;Numpad2::^!s
^!p::Reload
As I said, the sequences work correctly when triggered by ^!a or ^!s. The Numpad1 or 2 assignment does not work (or if it does, it will only work the first time). I had also tried defining separate hotkeys for the Numpad keys and having them re-send the keystrokes that do fire the correct sequences, but that didn't work either. They are still in there, but commented out. I've also tried using only the Numpad triggers or putting them above the multi-key trigers with zero success. I also tried using Function keys & they've worked correctly.
Can anyone give me an idea if I'm doing something wrong? Should this work? Is there something in the directives at the top that do or don't make this work?
(FWIW, I tried this script (https://autohotkey.com/board/topic/9675 ... +1%2C+0%2C) on my system and it worked just fine)