For those new to Win7 right clicking on the command prompt and select Run as
Administrator will solve this problem

Thanks

On Wed, Feb 9, 2011 at 10:11 AM, Basim Baassiri <ba...@baassiri.ca> wrote:

> Has anyone seen this error on windows 7 when registering Autoit.dll
> 'The module "AutoItX3.dll" was loaded but the call to DllRegisterServer
> failed with error code 0x80070005"
>
> I've done the following as my current user which is part of the
> Administrators Group on my machine
> cd D:\Ruby186\lib\ruby\gems\1.8\gems\watir-1.7.1\lib\watir\
> regsvr32 AutoItX3.dll
>
> This is the code which led me to the AutoIt problem
>
> D:\Ruby186\lib\ruby\gems\1.8\gems\watir-1.7.1\lib\watir>irb
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'watir'
> => true
> irb(main):003:0> ie = Watir::Browser.new
> => #<Watir::IE:0x5a1aa00 url="about:blank" title="">
> irb(main):004:0> ie.maximize
> WIN32OLERuntimeError: unknown OLE server: `AutoItX3.Control'
>     HRESULT error code:0x800401f3
>       Invalid class string
>         from
> D:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/module.rb:21:in
> `initialize'
>         from
> D:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/module.rb:21:in
> `new'
>         from
> D:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/module.rb:21:in
> `autoit'
>         from
> D:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb:445:in
> `autoit'
>         from
> D:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb:442:in
> `set_window_state'
>         from
> D:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.7.1/lib/watir/ie-class.rb:418:in
> `maximize'
>         from (irb):4
>         from ♥:0
>
>
> has anyone seen Autoit issue before?  Any ideas/recommendations on how to
> correct it?
>
> Basim
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to