Announcement

Collapse
No announcement yet.

Questions about creating an event

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

    Questions about creating an event

    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
    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 
    My error is' Bad CAPIControl object'

    question #2: How does one make the Event self delete after running?

    Thanks
    Don

    #2
    Bump...
    Don

    Comment

    Working...
    X