123
Senior Member
Homeseer has an ActiveX object called HSPI_UIRT.OCX that provides a programmable interface to a USB-UIRT (an IR tranceiver). A typical Homeseer user never uses the OCX directly; it is used by Homeseer to communicate with a USB-UIRT.
However, it is an ActiveX object so it should be possible to use it in your own program (VBScript, VBA, Javascript, etc). Does anyone know how to use the object's functions? I'd like to know how to use:
InitIR
RegisterCallback
PlayIR
LearnIR
etc
I wrote a simple script to display the USB-UIRT's internal parameters (that's no sweat) but I can't find any information explaining how to use the functions. I'm guesing these functions are probably executed in a specific order and RegisterCallback is probably initialized with the name of a handler function for incoming IR signals.
Any Homeseer gurus know where I can find more information about this OCX? I didn't find much about it in the HS forums.
However, it is an ActiveX object so it should be possible to use it in your own program (VBScript, VBA, Javascript, etc). Does anyone know how to use the object's functions? I'd like to know how to use:
InitIR
RegisterCallback
PlayIR
LearnIR
etc
I wrote a simple script to display the USB-UIRT's internal parameters (that's no sweat) but I can't find any information explaining how to use the functions. I'm guesing these functions are probably executed in a specific order and RegisterCallback is probably initialized with the name of a handler function for incoming IR signals.
Code:
Set oUIRT = CreateObject("HSPI_UIRT.HSPI")
WScript.Echo "Name: " & oUIRT.Name & " Devices: " & oUIRT.MaxDevices & _
" Zones: " & oUIRT.MaxZones & " Keys: " & oUIRT.MaxKeys
WScript.Echo "opts: " & oUIRT.HasOptions & " Match: " & oUIRT.SupportsIRMatch
Set oUIRT = Nothing
Any Homeseer gurus know where I can find more information about this OCX? I didn't find much about it in the HS forums.