Code: Select all
#IfWinActive ahk_class Notepad
{
#If on_top=1 ;on_top is a personal variable
{
a::
MsgBox, Triggered
return
}
#If
}
#IfWinActive
The problem is:
It doesn't really check if active window is really Notepad... As soon as on_top=1 and I press "a", it triggers.... Any way to make it respct both condiction (logical and) ?