There isn't a way to check if a window is minimized to the tray, but you can restore it using the normal method:
BFS.Window.Restore(mainWindow);
Maggew.com
31 discussion posts
Of course BFS.Window.Restore(mainWindow); is available but it doesn't work. I linked the script I was using as a foundation and it has that exact snippet you shared but it doesn't work.
If Skype is minimized to system to tray, and not in taskbar... how do I restore Skype?
notice the part:
//if the app is minimized, restore it
How do I make it restore if app is minimized to system tray?