Re: Control a GUI application from Sawfish?



On Sat, Nov 05, 2005 at 12:12:49AM +0000, Jonathan Koren wrote:

> From: Brendan Halpin <brendan halpin ul ie>
> Date: 04 Nov 2005 18:04:11 +0000
> 
> >Can sawfish send keystrokes to the window of an application?
> 
> No.  You need to use something else.  Sawfish can not send events to the 
> underlying application.  It only controls if, where, and how the window is 
> displayed.  Nothing else.

Not true.  You can send key and mouse events using the synthesize-event
command.  Take a look at

http://www.ewanmellor.org.uk/chip/chip.php?file=keyboard-paste.jl

This uses synthesize-event to send a middle-click to an application, to act as
a synthesized paste event.  It also shows the hacks necessary to work around
the problems in doing this with Emacs and Xterm and their ilk.

Ewan.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]