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 <[EMAIL PROTECTED]> 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@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to