Keep a running C++ program console on top? -


let's using cin in program allow user input console. simple enough if typing into, let's say, web browser , wanted them input console @ same time? when click away c++ program console window , have else on top, input not go console. how can make console running on top when input web browser, go console?

in order capture keyboard input when application not focused, need use windows hook, see:

http://msdn.microsoft.com/en-us/library/ms644959%28v=vs.85%29.aspx#wh_keyboardhook

example code can found here:

http://www.codeguru.com/cpp/w-p/system/keyboard/article.php/c5699/hooking-the-keyboard.htm


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -