sandwichdoge / MinimizeToTray

Hide any Windows to tray icon to be restored later.
MIT License
198 stars 19 forks source link

ALT+F1 not working for command prompt #17

Closed hikarulin closed 6 months ago

hikarulin commented 2 years ago

I have a program(exe) to offer some http service, it's ugly to show command prompt window. I want to hide command prompt window, but it seems MinimizeToTray do not support this?

hikarulin commented 2 years ago

Correct: It's weird that it works sometimes for command prompt. But I have no idea how to reproduce it

sandwichdoge commented 2 years ago

If you run the Command Prompt as Administrator, you need to run MinimizeToTray as Administrator as well.

hikarulin commented 2 years ago

If you run the Command Prompt as Administrator, you need to run MinimizeToTray as Administrator as well.

No, I not run CMD as Administrator.

I try again just now, this time it works well.

It's there any log that help to debug?