Can I Do a Multiplataform Keyboard Hook?
-
Can I do a "Keyboard Hook"(I don't know if it's the right expression) multiplataform? If yes, please, show me what is the way.
-
Instead of describing what you think is the solution, try to describe your actual problem. What are you trying to achieve?
-
I need to capture some keyboard events, and the application will be on the notify area, or like a icon on the task bar, but I need to run the same application on linux and windows, is there any way to do this? Say, do a multiplatform "Keyboard Hook"? I'm talking about keybord hooks but I don't know if this is the right thing to do.
-
You're still not describing your problem. Do these keys need to be captured system wide, or only within your application?
-
When the application window-less, it became a icon on the taskbar.
If I press Right Shift+P, for example, I want it do a screenshot...
But, if I'm on the Machintosh, or Tthe Ubuntu, I don't want do another application...
Sorry my poor english.
-
Ok, so system-wide.
Qt itself does not support that (yet), but you can use the Qxt library that adds support for it using the "QxtGlobalShortcut":http://libqxt.bitbucket.org/doc/tip/qxtglobalshortcut.html class.
-
Ok, thanks for the help, I will read more about QxTGlobalShortcut
-
With all the respect I would like to ask dotK to avoid posting multiple times same topics. This thread seems to be identical to "Multiplataform Keyboard Hook":http://qt-project.org/forums/viewthread/24144/
-
I posted again because I could not visualize the previous post
-
[quote author="dotK" date="1359115411"]I posted again because I could not visualize the previous post[/quote]
There are several ways to find your old posts. You can just go to your profile and press on: "View all posts by dotK (14)":https://qt-project.org/forums/member_search/132489
P.S. Sorry for the huge offtopic.
-
[quote author="leon.anavi" date="1359115617"]
[quote author="dotK" date="1359115411"]I posted again because I could not visualize the previous post[/quote]There are several ways to find your old posts. You can just go to your profile and press on: "View all posts by dotK (14)":https://qt-project.org/forums/member_search/132489
P.S. Sorry for the huge offtopic.[/quote]
It's ok, I made a little mistake, thanks for the adversiment
-
I have removed the other topic.
-
Thanks @Andre