Home » U++ Library support » U++ Library : Other (not classified elsewhere) » How to set a global (system) keyboard hook?
Re: How to set a global (system) keyboard hook? [message #23135 is a reply to message #23134] |
Fri, 18 September 2009 08:01   |
|
luzr wrote on Fri, 18 September 2009 06:55 |
You have to use host platform API (Win32).
I guess this one is what you need:
http://msdn.microsoft.com/en-us/library/ms646309%28VS.85%29. aspx?ppud=4
Then put GetHWND of some of your TopWindows in there and override
virtual LRESULT Ctrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
(Do not forget to call TopWindow::WindowProc at the end).
Mirek
|
I'm interested in global(system)keyboard too.
but in linux how it can be realized? Is the standard method?
For X11 I found here:
int XGrabKey(Display *display, int keycode, unsigned int
modifiers, Window grab_window, Bool owner_events, int pointer_mode, int keyboard_mode);
int XUngrabKey(Display *display, int keycode, unsigned int
modifiers, Window grab_window);
Maybe it is time to add cross method in u++?
[Updated on: Fri, 18 September 2009 08:10] Report message to a moderator
|
|
|
 |
|
How to set a global (system) keyboard hook?
By: midra on Fri, 18 September 2009 00:37
|
 |
|
Re: How to set a global (system) keyboard hook?
By: mirek on Fri, 18 September 2009 05:55
|
 |
|
Re: How to set a global (system) keyboard hook?
By: tojocky on Fri, 18 September 2009 08:01
|
 |
|
Re: How to set a global (system) keyboard hook?
By: tojocky on Fri, 18 September 2009 16:03
|
 |
|
Re: How to set a global (system) keyboard hook?
By: mirek on Sun, 20 September 2009 09:18
|
 |
|
Re: How to set a global (system) keyboard hook?
By: mirek on Thu, 24 September 2009 23:05
|
 |
|
Re: How to set a global (system) keyboard hook?
By: tojocky on Fri, 25 September 2009 09:55
|
 |
|
Re: How to set a global (system) keyboard hook?
By: cocob on Fri, 25 September 2009 11:21
|
 |
|
Re: How to set a global (system) keyboard hook?
By: tojocky on Thu, 01 October 2009 14:11
|
 |
|
Re: How to set a global (system) keyboard hook?
By: mirek on Thu, 01 October 2009 20:55
|
 |
|
Re: How to set a global (system) keyboard hook?
By: tojocky on Fri, 02 October 2009 08:03
|
 |
|
Re: How to set a global (system) keyboard hook?
By: mirek on Fri, 02 October 2009 10:06
|
Goto Forum:
Current Time: Wed Jul 16 15:20:22 CEST 2025
Total time taken to generate the page: 0.03434 seconds
|