Mike

I believe your problem is you declared $autoit and you are trying to use
$autoIt with a capital 'I'. I'm thinking this might be why you are getting
the undefined method error.

Try 
$autoit.MouseClick "left"

Tom

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Tierney
Sent: Thursday, September 01, 2005 10:23 AM
To: Watir
Subject: [Wtr-general] How do you invoke autoIt from a Watir script ?

First time poster to this group- great job on WATIR ! 
 
How do you invoke autoIt from a Watir script ?  (I am basically interested
in getting to left & right mouseclicks, I assume you can't do mouse clicks
with send_keys)  All the AutoIt documentation is for VB Script.
 
# I got this to run at least, not sure if its right :
class Autoit
  def initialize(libname)
  end
end
$autoit=Autoit.new("AutoItX3.Control")
 
# but I can't get this to work later on in the script
 
$autoIt.MouseClick "left"
 
# I must be missing something, or may be making it too complicated.
# It gets : myscript.rb:58:  undefined method `MouseClick' for nil:NilClass
(NoMethodError)
 
I am a career system tester, not an oo progammer yet, but have used Quick
Test Pro, WinRunner, Robot and Win32:GuiTest successfully in the past. I am
working through the Dave Thomas Ruby book too.  Thanks
- Mike Tierney, Baltimore, Md.

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to