Hello. I did a fair amount of scripting many years ago on HS2. I'm now trying to write some scripts for HS3 and finding things have changed a lot (and IMO not for the better). Can anyone point me to example code for creating and modifying events? Also using CAPI? The docs have almost no examples, which makes it very hard to figure things out.
In particular, what I'm trying to do right now is create an event, delay execution for X minutes, turn off a device, then have the event delete itself. I know you use NewEventEx to create an event and it has a property
Flag_Delete_After_Trigger that will make it delete, but I don't know how to set that property or how to accomplish the delay.
In particular, what I'm trying to do right now is create an event, delay execution for X minutes, turn off a device, then have the event delete itself. I know you use NewEventEx to create an event and it has a property
Flag_Delete_After_Trigger that will make it delete, but I don't know how to set that property or how to accomplish the delay.
Comment