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 input?
How to catch keyboard input? [message #6714] Fri, 24 November 2006 11:26 Go to next message
WebChaot is currently offline  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 Wink


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 Go to previous message
forlano is currently offline  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 Wink


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
Previous Topic: GetExeFilePath() in Linux
Next Topic: Vector< > & does't work
Goto Forum:
  


Current Time: Sun Apr 28 05:44:23 CEST 2024

Total time taken to generate the page: 0.04638 seconds