Path: utzoo!utgpu!watserv1!watmath!att!att!bu.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Sending ButtonPress events query Message-ID: <9011040531.AA01676@Larry.McRCIM.McGill.EDU> Date: 4 Nov 90 05:31:57 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 21 > I am currently trying to write a program which will emulate the mouse > (amongst other things), however I have not been able to successfully > send button press events to windows created with anything other than > Xlib. If I had to guess, I would guess that you are sending the events just fine, but the Xt code is ignoring them. Your Xlib code for handling events almost certainly ignores the send_event field, but I think that unless you specifically direct otherwise, Xt ignores "counterfeit" keyboard and pointer events. I don't know how to make Xt listen to synthetic keyboard and pointer events, but if this is your problem you may be able to find some way around it. (I seem to recall that xterm has a resource to control this, something like a sendEvent resource; perhaps this is actually an Xt thing instead?) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu