m1duckett
August 7th, 2007, 11:40 PM
Hi,
I have a script action in GML file "A"
gir.TriggerEvent("PLAY", xxx)
it does not matter what value "xxx" is.
I have an event in GML file "B" that should perform a test action (i.e. OSD text). This action has a "predefined event" PLAY event associated with it.
No matter what device ID is used in the "triggerEvent" method, the action in "B" always fires. I have tried using an "event filter" to only allow a specific ID (different from "A"), but the action continues to fire.
Is this correct behavior?
This reason this is important is I am trying to use the predefined events feature that G4 provides, however, I do not want "PLAY" events to be triggered across all GML files.
What is the correct way to filter predefined events?
I am hoping that enable/disable is not the answer, because I have an asynchronous event that changes TV channels periodically. Meaning this GML would always need to be receiving events. I would not want the channel changing to interfere with the foreground task (i.e. watching of a DVD or other activities).
I realize I can do this without predefined events, but it sort of defeats the abstraction (i.e. event <=> physical device) the predefined events feature provides.
Thoughts?
Thanks!
I have a script action in GML file "A"
gir.TriggerEvent("PLAY", xxx)
it does not matter what value "xxx" is.
I have an event in GML file "B" that should perform a test action (i.e. OSD text). This action has a "predefined event" PLAY event associated with it.
No matter what device ID is used in the "triggerEvent" method, the action in "B" always fires. I have tried using an "event filter" to only allow a specific ID (different from "A"), but the action continues to fire.
Is this correct behavior?
This reason this is important is I am trying to use the predefined events feature that G4 provides, however, I do not want "PLAY" events to be triggered across all GML files.
What is the correct way to filter predefined events?
I am hoping that enable/disable is not the answer, because I have an asynchronous event that changes TV channels periodically. Meaning this GML would always need to be receiving events. I would not want the channel changing to interfere with the foreground task (i.e. watching of a DVD or other activities).
I realize I can do this without predefined events, but it sort of defeats the abstraction (i.e. event <=> physical device) the predefined events feature provides.
Thoughts?
Thanks!