Announcement

Collapse
No announcement yet.

cancel a delayed trigger

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

    cancel a delayed trigger

    When I have a event with a delayed trigger, how can I cancel the delayed trigger with an other event?
    Peter

    http://ohh.pcgsm.nl

    #2
    My alarm has a ten minute delay when I leave. It then creates delayed events called INTERIOR MOTION and DOORS AND WINDOWS. If I come back in before the alarm arms and hit the disarm, this is how I cancel the pending delayed events from a script. There may be more than one of the same name, this gets them all:

    ......

    for x = 1 to 6
    retval = hs.DeleteEvent("INTERIOR MOTION (delayed action)-" & x)
    retval = hs.DeleteEvent("DOORS AND WINDOWS (delayed action)-" & x)
    next

    ......


    ~Bill

    Comment


      #3
      Thanks,


      Works prefect!
      Peter

      http://ohh.pcgsm.nl

      Comment

      Working...
      X