0 votes

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).

Godot version v4.0.1.stable.official [cacf49999]
in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.