X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: kerrywnm1 on November 14, 2017, 12:42:13 PM

Title: Can't Create Object 'X10.ActiveHome'
Post by: kerrywnm1 on November 14, 2017, 12:42:13 PM
Hello,

I am trying to write a vbscript to turn on an ActiveHome Pro remote module.

In the script I have "Set myActiveHome = CreateObject("X10.ActiveHome")" . When executed I get the error - ActiveX component can't create object 'X10.ActiveHome'.

I have the AHSDK installed. Am I missing another library?

Thanks.
Title: Re: Can't Create Object 'X10.ActiveHome'
Post by: toasterking on December 02, 2017, 02:25:39 PM
No, the SDK should be all you need.  If it is properly installed, you should have these keys in your registry for the COM class registration:
If you are on 64-bit Windows then the latter 7 will be under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\...
If these keys don't exist in your registry, the SDK is not properly installed and you will get that error.
Title: Re: Can't Create Object 'X10.ActiveHome'
Post by: m82a1pa on December 03, 2017, 08:09:05 PM
If you are using an x64 operating system, the ahp.dll needs to be manually registered before vbscript can access the objects.

If this is the case, follow the steps here: https://www.opensourceautomation.com/phpBB3/viewtopic.php?f=4&t=307
Title: Re: Can't Create Object 'X10.ActiveHome'
Post by: toasterking on December 03, 2017, 10:55:14 PM
If you are using an x64 operating system, the ahp.dll needs to be manually registered before vbscript can access the objects.
Interesting.  One of my machines is running Windows 8.1 Pro x64, and with the version of the ActiveHome SDK released 5/16/2011, I did not need to do that.  I have not tried with the 2009 release, though.
Title: Re: Can't Create Object 'X10.ActiveHome'
Post by: m82a1pa on December 04, 2017, 09:12:33 AM
I should have mentioned I'm running Windows 7 x64 which required it.