Sign in to follow this  
Followers 0
cmpyutr

Windows 7 new install

6 posts in this topic

Just downloaded and installed autoit3 on Windows 7 64-bit. I wrote a "hello.au3" which runs fine. But when I tried windows script host:

set oautoit=wscript.createobject("autoitx3.control")

I get an error message that the control cannot be created.

I also successfully did regsvr32 c:\program files (x86)\autoit3\autoitx\autoitx3.dll which didn't fix the error message.

I also reinstalled autoit, and did not check the box that says "use native x64 tools where possible".

Still not able to write a .vbs with the above line that executes without error.

Any suggestions?

Thanks.

Share this post


Link to post
Share on other sites



Please show the complete code + exact error message.


Regards Autolaser

Share this post


Link to post
Share on other sites

That is the complete code above. It is one line of code in a file called a.vbs.

The error message generated by Windows Script Host is:

Script: Z:a.vbs

Line: 1

Char: 1

Error: Could not create object named "autoitx3.control".

Code: 80040154

Source: WScript.CreateObject

Share this post


Link to post
Share on other sites

Hi, cmpyutr. The first question would be why you're trying to flip back and forth between vbscript and autoit? There is not much vbscript can do that AutoIt cannot handle natively.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Hi, JLogan.

That is the purpose of COM, of autoitx, to interface and be controlled by another entity. Regardless of why I want to use it, I do. So, do you have an answer for me by any chance?

Thanks.

Share this post


Link to post
Share on other sites

I found this page while trying to solve the same problem.  Since I managed to resolve it I want to leave my findings here for future travelers down this road.

To get a script on Windows 7 64-bit to use AutoItX you need to register the 64-bit version of the DLL.

I did this by opening a command prompt as Administrator, CD'ing to the installation folder for AutoIt, and going into the folder for AutoItX.  (For me this was C:\Program Files (x86)\AutoIt3\AutoItX)

I then ran 

regsvr32  AutoItX3_x64.dll

... and all was good.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0