mdonoughe / sbz-switch

Utility for switching Sound Blaster outputs on Windows
Apache License 2.0
43 stars 5 forks source link

Minor Feature Request: Hide terminal/console window #2

Closed black-ish closed 6 years ago

black-ish commented 6 years ago

Just a minor feature request. When using sbz-switch with a shortcut it opens a terminal/console window for a short time which can be annoying at times. Could there be just an additional -hide switch be added?

mdonoughe commented 6 years ago

Unfortunately that's the way Windows works. Whether the program has a console window or not is determined at compile time so either you get a console window or it's difficult to use the program from a CLI. There are two ways around this.

You can have two executables with the only difference being that one is console subsystem and the other is windows subsystem. To run without a console you run the windows subsystem version. This is why on Windows you have stuff like pythonw and javaw.

You can use a windows subsystem program to launch the console subsystem program. See Run a batch file in a completely hidden way.

black-ish commented 6 years ago

All right, thank you for explaining it. And thank you for this (sbz-switch) program it helps out tremendously.