Show and Hide application on Windows 10

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By zeroTAG

Question: Is there a way to hide, then eventually show, the application’s window, from view, and from the taskbar on Windows?

Scenario: I’ve made an application with Godot, instead of a game, so my idea was, to have this application in the background waiting for a hotkey combination and then show the app, and with the same hotkey hide it.

I’ve searched a lot, and cannot find anything similar that uses window functionality.

I would imagine, it is OS dependent, so I don’t know if it would work on Windows 10.

I also found another question about getting the native window handle, but I wouldn’t know how to use it to achieve what I would like to do (if this is the correct way of doing it).

I could try a hack and reduce the window size or something dirty like that, but that wouldn’t hide it from the taskbar or alt+tab.

Bonus: This is beyond the scope of this question, but if it’s not too complicated, I was also thinking of showing an icon on the system tray (right side of the taskbar), so I would know the application is running (hopefully with an exit like most apps).