This one works perfectly:
Code: Select all
#if WinActive("ahk_class Valve001")
<::Alt
return
I created another code (almost the same logic), but it doesn't work, and I don't know why.
Code: Select all
^+!F11::
#if WinActive("ahk_class IrfanView")
Send {Home}
return
The strange thing is that the Home key gets always sent, no matter where I am...
Regards