From: gregarican Date: 2007-07-12T23:05:12+09:00 Subject: Re: win32ole On Jul 11, 11:39 pm, "Harry Kakueki" wrote: > > Hi everybody, i�m trying to manage the mouse with Ruby. Like move it in the > > Desktop, clicking de Start button, like a macro. > > > Well, i would like to recive some information about that. > > You can move and click the mouse with AutoIt. > Try playing around with this code to get you started. > Use carefully. > > require 'win32ole' > mytest = WIN32OLE.new("AutoItX3.Control") > > mytest.MouseMove(150,440) > sleep 1 > #mytest.MouseDown("Left") > #mytest.MouseUp("Left") > mytest.MouseMove(250,240) > sleep 1 > mytest.MouseMove(350,340) > > Harry > > -- > A Look into Japanese Ruby List in Englishhttp://www.kakueki.com/ Here's a link to the AutoIt website (http://www.autoitscript.com/ autoit3/index.php) where you can download the program. This is a handy utility for sure. I script it with Ruby for doing lots of monotonous keyboard entry in old DOS programs that I have shelling out after hours. I just pick up the DOS box's window title and then go to town!