TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


Forums >


AutoIt: Regarging AutoIt usage with Firefox

Anukul Singhal

11/27/2008 7:27:00 AM


I am trying to automate some operations in Firefox using AutoItX3 dll. I
am giving a sample script below, and in this both WinExists and WinClose
return 0 (false), although it should return 1 (true as per AutoIt).

require 'firewatir'
require 'win32ole'

ff = FireWatir::Firefox.new
autoit = WIN32OLE.new("AutoItX3.Control")
sleep 5.0
puts autoit.WinExists("[CLASS:MozillaUIWindowClass]")
sleep 2.0
puts autoit.WinClose("[CLASS:MozillaUIWindowClass]")

Can anyone let me know what is wrong with this script, or is it not

Posted via http://www.ruby-....