Announcement

Collapse
No announcement yet.

Help Please :Can't Create Object (Homeseer2.Application)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help Please :Can't Create Object (Homeseer2.Application)

    Hello i'm having a issue creating a script to Control HomeSeer from external script
    'Script Start
    Dim hs
    Set hsi = createobject("HomeSeer2.application")
    hsi.SetHost "192.168.1.103:221"
    rval = hsi.Connect("default","default")
    if rval <> "" then
    msgbox rval
    end if
    Set hs = hsi.GetHSRef
    hs.speak "Hello World"
    'Script End

    but I get the error

    Script: E:\a.vbs
    Line: 2
    Char: 1
    Error: Active x component can't create object:'HomeSeere.application'
    Code: 800A01AD
    Sorce: Microsoft VBScript runtime error

    my specs:
    Windows 8.1
    Architecture: 64x
    System Drive: C:\
    Homeseer Home Folder: D:\Homeseer HSPRO\
    Script Location: E:\

    Help please thank you!!

    #2
    This looks wrong for a start 'HomeSeere.application' whereas it should be HomeSeer2.application. Is this just a typo when copying or is your script wrong somewhere else?

    Comment


      #3
      You have also specified a port with your IP address.

      hsi.SetHost "192.168.1.103:221"

      Should be:

      hsi.SetHost "192.168.1.103"
      Jon

      Comment


        #4
        Solved

        DLL could not register because that is a 32 Bit operation and i was running a 64 bit OS. i did try putting the DLL in wow64 folder and register it, however it failed. i also tried replacing the sections of the code as u said with no avail. So I backed up my files and installed it as 32 bit instead 64 bit

        Comment


          #5
          Solved

          DLL could not register because that is a 32 Bit operation and i was running a 64 bit OS. i did try putting the DLL in wow64 folder and register it, however it failed. i also tried replacing the sections of the code as u said with no avail. So I backed up my files and installed it as 32 bit instead 64 bit.


          Thank you for all your help

          Comment


            #6
            Solved

            DLL could not register because that is a 32 Bit operation and i was running a 64 bit OS. i did try putting the DLL in wow64 folder and register it, however it failed. i also tried replacing the sections of the code as u said with no avail. So I backed up my files and installed it as 32 bit instead 64 bit.


            Thank you for all your help

            Comment

            Working...
            X