how to see if a key is pressed
C / C++ / MFC
4
Posts
3
Posters
0
Views
1
Watching
-
Hi, How can i make a console application listen to a pressed key? For example i want my application listen to ctrl+q keys. Anyone got a suggestion please? Thanks in advance!
Look into
RegisterHotKey
. I suggest you read on hooks and theSetWindowsHookEx
function.
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
Look into
RegisterHotKey
. I suggest you read on hooks and theSetWindowsHookEx
function.
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
Look into
RegisterHotKey
. I suggest you read on hooks and theSetWindowsHookEx
function.
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
I don't think
SetWindowsHookEx
will be of much help in a console a application.Steve