Bill Guindon wrote:
> Anybody have any samples of ruby/au3 scripts that are a bit more in
> depth than the wiki example?

No.  But here's a script I just moved over to Ruby.

On a whim I started wrapping methods so that the core script would be a 
bit tidier.

# Launch Firefox and check gmail for that
# special v1agr4 offer
require 'win32ole'

def set_up
   @au3 = WIN32OLE.new("AutoItX3.Control")
   @au3.opt("WinTextMatchMode", 2)
end

def browse_to( url )
   @au3.Run( "e:\\Firefox\\firefox.exe #{url}" )
end

def enter
   @au3.Send( "{ENTER}" )
end

def tab
   @au3.Send( "{TAB}"  )
end


def wait( n )
   @au3.Sleep( n.to_i )
end

def send s
   @au3.Send( s.to_s   )
end

def wait_for_title t
   @au3.WinWaitActive( t.to_s )
end


set_up
name = 'my.name'
password = 'fake-password'
browse_to 'http://www.gmail.com'
wait_for_title "Welcome to Gmail"
# Make sure whole page has
# load over flakey WiFi
sleep 5
send name
tab
send password
enter
# The end.



James