Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Best way to Trigger on multiple conditions?

If you have a question or need help, this is the place to be.
Post Reply
Telorast
Posts: 46
Joined: Wed Feb 27, 2013 2:44 pm

Best way to Trigger on multiple conditions?

Post by Telorast »

I'm trying to detect when I should start my Movie Mode. I'd like all of these conditions to be met:
  • TV is on
  • Location == Living room
  • Media Player Classic or XBMC is running
I already track all the conditions individually and store them in variables but I find it hard to combine them. The possible solutions I can think of are:
  • Find all the places where any of the variables can change and add an event that will trigger a check whether all conditions are met.
  • Collect all the events that could lead to a change and let them all trigger a check.
  • While TV is on, run a repeating timer to periodically check the other conditions.
I don't like any of those solutions so I was wondering if anyone had a better idea? What would the least bad way be?
Post Reply