Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
AutoIt: Regarging AutoIt usage with Firefox
Anukul Singhal
11/27/2008 7:27:00 AM
Hi,
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
feasible?
Thanks,
Anukul
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
AutoIt: Regarging AutoIt usage with Firefox
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password