Home » U++ Library support » U++ Core » How to catch keyboard input?
How to catch keyboard input? [message #6714] |
Fri, 24 November 2006 11:26 |
WebChaot
Messages: 53 Registered: September 2006 Location: Austria, Vienna
|
Member |
|
|
Hi all!
I try to catch the keyboard input. I found InstallKeyHook(), which I think is the solution for my problem. But no demo code, how to use it.
I hope, you have some lines of code or a link to some example.
And is it possible to catch "Alt-F4" or "Alt-Tab" (or the Linux equivalents) too, to protect the application to be deaktivated? Or is this some levels deeper in os and will never reach the application?
I only want an application window, which stays on top and no possibility to leave it, except "my" way. Its an touch screen application, if someone wants to know, why I want to do things like that
Thanks in advance,
WebChaot.
[Updated on: Fri, 24 November 2006 11:28] Report message to a moderator
|
|
|
Re: How to catch keyboard input? [message #6729 is a reply to message #6714] |
Fri, 24 November 2006 18:36 |
|
forlano
Messages: 1185 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
WebChaot wrote on Fri, 24 November 2006 11:26 | Hi all!
I try to catch the keyboard input. I found InstallKeyHook(), which I think is the solution for my problem. But no demo code, how to use it.
I hope, you have some lines of code or a link to some example.
And is it possible to catch "Alt-F4" or "Alt-Tab" (or the Linux equivalents) too, to protect the application to be deaktivated? Or is this some levels deeper in os and will never reach the application?
I only want an application window, which stays on top and no possibility to leave it, except "my" way. Its an touch screen application, if someone wants to know, why I want to do things like that
Thanks in advance,
WebChaot.
|
Hello,
You need to override the Key method. Look at this post
http://www.arilect.com/upp/forum/index.php?t=msg&th=1034 &start=0&
Luigi
|
|
|
Goto Forum:
Current Time: Sat May 11 10:50:47 CEST 2024
Total time taken to generate the page: 0.02873 seconds
|