Perhaps you want something like this.
If WinExist, then if WinActive, then WinClose; if not WinActive, then WinActivate.
If not WinExist, then Run.
ProcessExist can find processes running in the tray.
If WinExist, then if WinActive, then WinClose; if not WinActive, then WinActivate.
If not WinExist, then Run.
ProcessExist can find processes running in the tray.
Statistics: Posted by mikeyww — 4 minutes ago