windows automation language

C

Chris McGrath

It's got a COM interface, so you can use WIN32OLE to drive it. It does
look interesting, alas I haven't had time to properly look at it yet.

Chris
 
C

Cristi BALAN

It's got a COM interface, so you can use WIN32OLE to drive it. It does
look interesting, alas I haven't had time to properly look at it yet.

Chris

Wow, thanks! trying this was easier than it should :)

- registered the dll (regsvr32.exe AutoItX3.dll)
- copied the vb example from the help chm in foo.rb
- put require 'win32ole' at the top of the file
- replace WScript.CreateObject with WIN32OLE.new
- ruby foo.rb

Thanks Martin, i just needed a nice keyboard automation tool just a
few days ago and this looks very nice
 
D

daz

Martin said:
Don't know enough about win32 programming to say if this is interesting,
but it claims to do things vbscript cannot, so ruby bindings to the dll
might be useful.

http://www.autoitscript.com/autoit3/index.php

martin


As has been said by others, ruby bindings are hardly necessary when using
its COM interface:

http://www.rubygarden.org/ruby?AutoIt_For_Windows

The example on the wiki may appear a bit tame but once you've
installed and registered the dll, it's just:

require 'win32ole'
au3 = WIN32OLE.new("AutoItX3.Control")

.... and over to AutoItX3 for the "methods".


daz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,462
Latest member
ChanaLipsc

Latest Threads

Top