Start building your web presence at Rs. 499.00/mo

Start building your web presence at Rs. 499.00/mo
Web Hosting Coupon Archives

Error getting AutoITx3.Dll

Error getting AutoITx3.Dll

Normally you can get all Methods and Properties of any registered COM object using the Get-member cmdlet.
But occasionally you get this error.
image
The reason is that you have registered the COM object only as x32 bit and not as x64 bit.
2 ways to solve this.
First register both x32 and x64 bit Dll’s.
image
After registering both versions this was the result.
1
2
3
Cls
New-Object -com AutoItX3.Control | Get-Member
image
Lucky for us that AutoIT ships 2 versions. But most of the DLL are either x32 or x64 bit ?
So you can get it running using the x32 bit if Powershell using the x32 bit of the COM Dll and the same for x64.
Or try a hack to register the x32 Bit like this :
The 32-bit one goes into C:\Windows\SysWOW64, and the 64-bit DLL goes into C:\Windows\System32.
And appropriate registry keys in the appropriate location
SHARE

yash

  • Image
  • Image
  • Image
  • Image
  • Image

2 comments: