複数のソフトに対して同じ命令を与えたい場合、
ソフトの分だけ、同じスクリプトを記述するしかないですか?

#IfWinActive,ahk_exe notepad.exe
ほにゃらら
#IfWinActive

#IfWinActive,ahk_exe mspaint.exe
ほにゃらら
#IfWinActive