From: Jens Luedicke Date: 2001-01-31T09:58:51+09:00 Subject: [ruby-talk:10150] Re: Capturing Screen, Moving mouse Hi there ... It might be possible to access the Desktop using low-level functions of Gdk/Gtk. I haven't tried it and I don't know if it is at all possible. > makotosu@my-deja.com wrote: > > > >Hello, > > > >Is there a way to use Ruby to control a user's desktop? I want to be > >able to capture the user's desktop as an image (then convert it to a > >jpeg/gif/png) and also have Ruby automatically control the user's > >mouse pointer and click the mouse buttons as well (like producing a > >demo). > > You might want to look at VNC: > > http://www.uk.research.att.com/vnc/ > > There is a primitive scriptable interface, see > > http://people.redhat.com/twaugh/rfbplaymacro/ > > and there may be something better available if you > ask around. (I think there was a scriptable ActiveX > version but I cannot find it in a quick search.) > > Also the protocol is documented and there are several > freely available implementations you can look at in > Java and C. > > >This functionality was recently made available through Java's Robot > >class, but I wanted to use Ruby instead. > > > >I'm sorry if this question has already been asked-- please point me to > >the right place. > > Good luck. > > Cheers, > Ben > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com -- with friendly regards.... jens luedicke PMC - Perl Mail Client http://www.irs-net.com/ Bush jr: FOAD ... perversion of justice ... -- If's Beste Freundin: Else