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?
Re: How to catch keyboard - on a console application? [message #6972 is a reply to message #6947] Wed, 06 December 2006 09:34 Go to previous messageGo to previous message
WebChaot is currently offline  WebChaot
Messages: 53
Registered: September 2006
Location: Austria, Vienna
Member
Hi Mirek!

>>> AFAIK, windows services that expect user input simply add some gui elements (which reduces it to the former solution).

Not really. I want to implement a command line argument "-d" to start the "service" as a stand alone program (for testing and for manual operation). And because its a console application I have no window, but want to break the loop by pressing a key.

Usually the loop runs until the service gets the stop command. For testing mode I have to break the loop otherwise.

Is there no easy solution to do that? If not, I will terminate program in task manager every time, because CTRL-C doesnt work too Smile


Thanks,

WebChaot.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stream::Putf
Next Topic: Bug in "One" documentation?
Goto Forum:
  


Current Time: Mon Aug 18 00:31:13 CEST 2025

Total time taken to generate the page: 0.05040 seconds