01-01-2019, 11:14 AM
Tray icon cannot be without a window. It is invisible. To discover invisible windows: QM floating toolbar -> More Tools -> Explore windows. Then use win function; need to specify class name too, else finds only visible windows.
or
if 0!=ProcessNameToId("notepad")
or
if 0!=ProcessNameToId("notepad")