I want to write a program (for windows) that goes away when I press some keys and then comes back when I press them again. If anyone can point me to a website or something that would be really helpful. Thanks
Printable View
I want to write a program (for windows) that goes away when I press some keys and then comes back when I press them again. If anyone can point me to a website or something that would be really helpful. Thanks
Aft-F4 works pretty well to make a program go away ;)
What do mean by "go away"? To just minimize? Or really suspend its state and close?
I mean I want to be able to close the window of the program but still leave the program running so that when I want to use it again, I just have to type in a certain key combination
This should be as easy as creating a WinMain, a window to show/hide, and listening for keystrokes. I assume you know how to do the first two - as for the second, just search the web for C++ keyboard tutorials.
The problem is that when it's "gone" it doesn't have focus and will have trouble responding to keyboard events. You're going to have to poll the keyboard at a much lower level than I'm used to dealing with in the .NET and Java worlds.
thanks for the advice.