I've been using the following code to have a function execute at a certain time (the user can select the time with the touchscreen). Every minute I check if the selected time is reached, and execute some logic if it is:

Now I want to dynamically add more of these timers that have different times selected by the user, but you can only call SetGlobalListener once. Can you tell me how I can do this with IR.AddListener? I've tried:

Replies 5

After IR.EVENT_TAG_CHANGE you must specify a driver, not a system token. Check the system token, put in the if ... else. To allow the user to set the desired time in the panel project, add the project token and compare its value with the system token.

When a user selects a time on the panel and clicks "start" a function will be added to the _timerActions array. In those functions I can then check against IR.GetVariable("System.Time.Hour") and IR.GetVariable("System.Time.Minutes").