LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to capture mouse and keyboard events programatically (https://www.linuxquestions.org/questions/programming-9/how-to-capture-mouse-and-keyboard-events-programatically-46120/)

karthikeyan 02-19-2003 06:09 AM

how to capture mouse and keyboard events programatically
 
hello all,

I am writing a small program which creates a window.
I want to capture all the mouse and keyboard events inside the window and find the mouse coordinates within the window and the key pressed. I want to know how to check whether my window is the active one among others in the desktop.

help me ....

bye

acid_kewpie 02-19-2003 07:39 AM

how about telling us what tool kit you are using for this and what language too...? there's more than one way to skin a cat, but there's also a thousand different types of cat.

karthikeyan 02-21-2003 07:36 AM

hello sir,

I am trying to display a window using tk.h functions in a 'C' code. Within the window i am displaying a image.Now on that image i want to capture the mouse and keyboard events.Though keyboard events are not related to images i am trying for that too.

I think my question is a bit clear now

karthikeyan 02-21-2003 07:42 AM

hello chris ,

I want to know whether there are any online sample programs to create a window , display an image in it using tk.h functions within a 'C' language.


All times are GMT -5. The time now is 09:17 PM.