Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
WebChaot is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stream::Putf
Next Topic: Bug in "One" documentation?
Goto Forum:
  


Current Time: Tue May 28 01:37:25 CEST 2024

Total time taken to generate the page: 0.00449 seconds