- Omg, yes, just run the exe, sometimes the simplest solutions are the best, that was the answer for me oftentimes for most programs, when tray icons disappeared. I.e. before I used AutoHotkey, I'd click the Start menu icon again.
- I would imagine that by using the tray icons library, you could retrieve the hWnd of the window that receives notifications for the tray icons. You could find out the unique identifying information about that window, e.g. its class. You could then send a message to invoke a mouse click, which would have the same effect as clicking the icon manually.
Link: [LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=1229
- I also wrote a script that can handle tray icons.
Link: GUIs via DllCall: get/set internal/external control text - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=40514
- You could try getting a list of menu item IDs when hovering over the systray menu items.
Link: Get Info from Context Menu (x64/x32 compatible) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=31971
- With some programs you can try running that program again with a command line option and will affect the currently running instance.
- [EDIT:] I'll do a post on tray icon interaction, in perhaps the next the week.