I have two questions...
1. How do you construct a AddDeviceToEvent properly? I can't figure out the second parameter <crappy CAPI> Here is what I have
My error is' Bad CAPIControl object'
question #2: How does one make the Event self delete after running?
Thanks
1. How do you construct a AddDeviceToEvent properly? I can't figure out the second parameter <crappy CAPI> Here is what I have
PHP Code:
Dim strAddAction As String = hs.AddDeviceActionToEvent(evRef,hs.CAPIControlHandler(hs.CAPIGetSingleControl(dvRef,true ,"on",false,true)))
If strAddAction.Length = 0 Then
hs.WriteLog("New Event","Success Adding Device Control to Event " & args)
Else
hs.WriteLog("NewEvent","ERROR. Was NOT successful Adding Device Control to Event " & args & ". Error:" & strAddAction)
End If
question #2: How does one make the Event self delete after running?
Thanks
Comment