Home » U++ Library support » U++ Core » How to catch keyboard - on a console application?
How to catch keyboard - on a console application? [message #6941] |
Tue, 05 December 2006 15:20 |
WebChaot
Messages: 53 Registered: September 2006 Location: Austria, Vienna
|
Member |
|
|
Hi all!
Last time I asked how to get keyboard input via Ctrl. The solution was easy - only overwrite the Key-Method of the Ctrl.
But now I have to develop a console application (windows service) without any Ctrl. Is there also a possibility to detect a key?
I found some code in this forum (kbhit() and getch()), but that does not work (as I read still after testing). Would be happy, if you have another solution.
In short form: I have to break a while loop, when user press "x" (for example).
Thank you,
WebChaot
|
|
|
|
|
|
Goto Forum:
Current Time: Mon Jun 17 07:32:42 CEST 2024
Total time taken to generate the page: 0.01872 seconds
|