[Xpert]faking keyboard input

2002-09-11 Thread Mikael Claesson

Hello.

I'd like to write a program which sends fake keyboard
events to application windows. Not only to the
currently focused window, but to any window.
Preferably the window would be identified by its title
(on the title bar).

Is this possible? Could anyone point me in the right
direction? I don't mind reading man pages or whatever,
but I need to know which ones to read. :-) Any help
would be much appreciated.

Thank you

/M


__
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]faking keyboard input

2002-09-11 Thread Viveka Nathan K


you can use XTestFakeKeyEvent() function as
  XTestFakeKeyEvent(dpy,x,y,z);
where dpy for display, x is Keycode, y is keyPress or release and 
z is timeduration, after which this event generated.

On Today [EMAIL PROTECTED] wrote to Vivek :

MC:}Hello.
MC:}
MC:}I'd like to write a program which sends fake keyboard
MC:}events to application windows. Not only to the
MC:}currently focused window, but to any window.
MC:}Preferably the window would be identified by its title
MC:}(on the title bar).
MC:}
MC:}Is this possible? Could anyone point me in the right
MC:}direction? I don't mind reading man pages or whatever,
MC:}but I need to know which ones to read. :-) Any help
MC:}would be much appreciated.
MC:}
MC:}Thank you
MC:}
MC:}/M
MC:}
MC:}
MC:}__
MC:}Yahoo! - We Remember
MC:}9-11: A tribute to the more than 3,000 lives lost
MC:}http://dir.remember.yahoo.com/tribute
MC:}___
MC:}Xpert mailing list
MC:}[EMAIL PROTECTED]
MC:}http://XFree86.Org/mailman/listinfo/xpert
MC:}

-- 

 Vivek
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 
 DON Lab, IITM, Chennai-36, India. Ph:044-2578904, 044-2578353
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Only weapon we are having from the beginning is BRAIN

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert