How to use #IfWinActive to detect empty ahk_exe?

Some weird programs have empty ahk_exe, I want to use #IfWinActive to match them, is that doable?

The screenshot was taken from Window Spy:

enter image description here

I’ve tried #IfWinActive ahk_exe (the name is intentionally left empty) but with no success.

Source: Windows Questions

LEAVE A COMMENT