From: Kero Date: 2005-07-30T19:51:03+09:00 Subject: Re: Simulating Mouse Dragging >> > Is it possible to simulate a mouse drag event in a browser >> > (or any program in general) with Ruby? Something like: >> >> 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... disclaimer: I have never tried anything like this myself. In what sense does it not work? (assuming you made X11 read /dev/gpmdata one way or the other). I would guess that `cat test` is "too fast". +--- Kero ------------------------- kero@chello@nl ---+ | all the meaningless and empty words I spoke | | Promises -- The Cranberries | +--- M38c --- http://members.chello.nl/k.vangelder ---+