Jump to content

Windows 7 new install


Recommended Posts

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.

Link to comment
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

Link to comment
Share on other sites

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • 3 years later...

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...