[Wtr-general] ruby2exe and autoit

Charley Baker charley.baker at gmail.com
Thu Jul 5 11:21:27 EDT 2007


You need to register AutoIt. In a command window, navigate to the directory
where you've put AutoIt and type:
regsvr32 AutoItX3.dll

-Charley

On 7/5/07, mihai <forum-watir-users at openqa.org> wrote:
>
> i have a script in wich im using an autoit control:
> $autoit= WIN32OLE.new("AutoItX3.Control")
>
> i want to test my script on another PC; so im making an exe with ruby2exe
> for my script and when im executing the .exe on another PC im getting this
> error:
>
>
> C:\DOCUME~1\QA_BLA~1\eee\eee.test.exe.2\app\test.rb:9:in `initia
> lize': unknown OLE server: `AutoItX3.Control' (WIN32OLERuntimeError)
>     HRESULT error code:0x800401f3
>       Invalid class string      from C:\DOCUME~1\QA_BLA~1\eee\eee.test.e
> xe.2\app\test.rb:9:in `new'
>         from C:\DOCUME~1\A_BLA~1\eee\eee.test.exe.2\app\blazent_test.rb
> :9
>         from C:\DOCUME~1\A_BLA~1\eee\eee.test.exe.2\bootstrap.rb:77:in
> `load'
>         from C:\DOCUME~1\A_BLA~1\eee\eee.test.exe.2\bootstrap.rb:77
>
> i have try to copy AutoItX3.dll in the directory where the .exe is or in
> windows/system32 but the error still appears.
>
> What can i do?
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070705/277fa593/attachment.html 


More information about the Wtr-general mailing list