Hello. I have made a litle process program that runs at windows 10 background.
I dont know how to take an even, a press button, how must make the program to inspect OS events, a press button for example. There is a link to study some code?
Thanks
Jim.
How to take a press button event Topic is solved
Re: How to take a press button event
I'm not sure i understand what you mean.
Do you want to detect buttons clicks in another application while yours in running in the background?
If yes, there is nothing in wxWidgets that does that in a crossplatform manner. Under Windows you can achieve this using hooks:
https://docs.microsoft.com/en-us/window ... owshookexw
I don't know how to do it under Linux or OSX.
Do you want to detect buttons clicks in another application while yours in running in the background?
If yes, there is nothing in wxWidgets that does that in a crossplatform manner. Under Windows you can achieve this using hooks:
https://docs.microsoft.com/en-us/window ... owshookexw
I don't know how to do it under Linux or OSX.
Use the source, Luke!
Re: How to take a press button event
My program runs as a backgroud process and it must inspect if a certain group of buttons are press in keyboard.
There is no mater if buttons press in certain program or not.
Thank you.
Jim
There is no mater if buttons press in certain program or not.
Thank you.
Jim
Re: How to take a press button event
Sorry, i still don't understand. Do you maybe mean "key" instead of "button"? Do you want to catch all keypresses? That would work with a keyboard hook from the link i showed above.dkaip wrote:My program runs as a backgroud process and it must inspect if a certain group of buttons are press in keyboard.
There is no mater if buttons press in certain program or not.
Use the source, Luke!
Re: How to take a press button event
Hi,
Could you give us an exact scenario you are looking for to catch?
Thank you.
Could you give us an exact scenario you are looking for to catch?
Thank you.
Re: How to take a press button event
Sorry, with button i mean key of keyboard.(Not good in English).
The scenario is when the process run, if i press Q, W, and E, give me a message. That is for learning.
Thank you.
Jim
The scenario is when the process run, if i press Q, W, and E, give me a message. That is for learning.
Thank you.
Jim
Re: How to take a press button event
https://stackoverflow.com/questions/229 ... nt-windowsdkaip wrote:Sorry, with button i mean key of keyboard.(Not good in English).
The scenario is when the process run, if i press Q, W, and E, give me a message. That is for learning.
Use the source, Luke!
Re: How to take a press button event
Very good example...
Thank you.
Jim
Thank you.
Jim