From: Erik Veenstra Date: 2005-07-30T06:06:02+09:00 Subject: Re: Simulating Mouse Dragging On Fri, 29 Jul 2005 20:21:04 +0000, Kero wrote: > > Is it possible to simulate a mouse drag event in a browser > > (or any program in general) with Ruby? Something like: > > > > dragmouse(x1, y1, x2, y2) > > > > or > > > > dragmouse("windowname", x1, y1, x2, y2) > > > > Either Windows or Linux (Xfree86). > > Could recording + analyzing mouse data help? Then you can > simulate it and let X11 consume it. `gpm -R` may help. "Recording" the mouse data by reading /dev/gpmdata actually works. Good start. Generating such a data stream is possible. But what do we have to do to let X11 "consume" that stream? "cat test > /dev/gpmdata" doesn't work... gegroet, Erik V. - http://www.erikveen.dds.nl/