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