471,349 Members | 2,001 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

How to get a keypress event in an console application

I use to get the function keys that were pressed in an console
application cause this application should also be used over a telnet
server. Does someone know how to get the keys. Tanks for your help in
advance. Ulrich
Jul 21 '05 #1
1 2613
On Mon, 18 Apr 2005 13:04:14 +0200, Ulrich Kotzolt wrote:
I use to get the function keys that were pressed in an console
application cause this application should also be used over a telnet
server. Does someone know how to get the keys. Tanks for your help in
advance. Ulrich


I think you need to PInvoke some Win32 API functions. See thise article:

http://www.thecodeproject.com/dotnet...swordInput.asp

hth
--
Claudio Grazioli
http://www.grazioli.ch
http://www.grazioli.ch/HommingbergerGepardenforelle/
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by rege | last post: by
2 posts views Thread by Salvatore Di Fazio | last post: by
3 posts views Thread by Fia | last post: by
2 posts views Thread by Tony Johansson | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.