LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2003, 06:09 AM   #1
karthikeyan
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Rep: Reputation: 0
Post 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
 
Old 02-19-2003, 07:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-21-2003, 07:36 AM   #3
karthikeyan
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Original Poster
Rep: Reputation: 0
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

Last edited by karthikeyan; 02-21-2003 at 07:39 AM.
 
Old 02-21-2003, 07:42 AM   #4
karthikeyan
LQ Newbie
 
Registered: Feb 2003
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to fire mouse events programatically in 'C' code karthikeyan Programming 2 11-14-2010 02:03 PM
X11 Input drivers (keyboard and mouse), events Cyborg16 Linux - Software 1 05-22-2005 09:01 AM
Keyboard and mouse events Soltis Linux - General 3 03-23-2005 09:25 AM
Weird - Mouse button events for keyboard keypresses? pavgust Linux - Hardware 1 06-17-2004 04:44 AM
Mouse& keyboard events mvillarino Programming 0 05-27-2004 11:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration