I'm trying to understand the mechanism to be able to handle events in my plugin. I downloaded the SDK but there doesn't seem to be any examples. Am I missing something? Some simple example would really help.
Thanks
</Events>
<Event id="xxxxxaaaaa"><Name>your text for the menu</Name> </Event>
</Events>
def triggerStartProcessing(self, trigger):
self.triggerList.append(trigger.id)
def triggerStopProcessing(self, trigger):
if trigger.id in self.triggerList:
self.triggerList.remove(trigger.id)
def triggerEvent(self, eventId):
for trigId in self.triggerList:
trigger = indigo.triggers[trigId]
if trigger.pluginTypeId == eventId:
indigo.trigger.execute(trigger)
return
self.triggerEvent(u"xxxxxaaaaa")
brettlid wrote:Thanks to everyone who responded. I'll look thru the SDK examples again, but I didn't see one that included the EVENTS.XML file.
Thanks
Users browsing this forum: No registered users and 9 guests