First off: This is NOT a gaming related question.
I created a script which executes specific commands whenever F13, F14 or F15 get pressed.
(These keys get pressed by external software - either by BOME MIDI Translator Pro or Logitech Gaming Software.)
Everything works perfectly.
However, I can't receive F13 commands which were sent BY AutoHotKey.
I tried this
Code: Select all
;Notepad++
#if WinActive("ahk_class Notepad++")
F12::
Send {F13}
return
F13::
ControlClick, x450 y180, Logitech Gaming Software
SplashImage, C:\Users\USER\Documents\Logitech Gaming Software\Profil-Screenshots\Notepad++-M1.png, x1920 b
return
F14::
ControlClick, x509 y180, Logitech Gaming Software
SplashImage, C:\Users\USER\Documents\Logitech Gaming Software\Profil-Screenshots\Notepad++-M2.png, x1920 b
return
F15::
ControlClick, x556 y180, Logitech Gaming Software
SplashImage, C:\Users\USER\Documents\Logitech Gaming Software\Profil-Screenshots\Notepad++-M3.png, x1920 b
return
It executes the F13 command if it came from the other two programs, though.
In another script I made a very simple test, which worked:
Code: Select all
F12::
Send {F13}
return
F13::
Send F13 was pressed!
return
Why does the simple script work but not the one that I really need?
I also tried it with $F13:: instead of F13.
No chance either.
Best regards