Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on init #23

Open
simon1tan opened this issue Jan 9, 2019 · 2 comments
Open

Error on init #23

simon1tan opened this issue Jan 9, 2019 · 2 comments

Comments

@simon1tan
Copy link

Ruby 2.5.3p105 on Windows 7
Error upon init

require 'autoit'
control = AutoIt::Control.new

C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/autoit-1.3.3/lib/autoit/control.rb:12:in initialize': unknown OLE server: AutoItX3.Control' (WIN32OLERuntimeError)
HRESULT error code:0x800401f3
Invalid class string
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/autoit-1.3.3/lib/autoit/control.rb:12:in new' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/autoit-1.3.3/lib/autoit/control.rb:12:in initialize'
from autoit.rb:3:in new' from autoit.rb:3:in

'

@rpossan
Copy link
Owner

rpossan commented Jan 9, 2019

Hi @simon1tan ! Thank you for the report. I found the same issue and I'm working on this right now. When it fixed, I will inform you here.

image

@rpossan
Copy link
Owner

rpossan commented Jan 9, 2019

@simon1tan I found the reason. AutoIT libraries are required. I don't know why, but after some Windows updates, the libraries was lost.
Try to run the command:
autoit install
This command will ask for admin privileges and will install AutoIt DLL libraries from the directory "https://github.com/rpossan/autoit/tree/master/vendor".
Try it and please let me know if work.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants