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.

Trigger event macro doesn't parse it's Event string

If you have a question or need help, this is the place to be.
Post Reply
thug
Plugin Developer
Posts: 64
Joined: Sat Jul 22, 2006 2:37 pm
Location: Australia

Trigger event macro doesn't parse it's Event string

Post by thug »

Hi,

The 'Trigger event' macro (action) does not parse it's 'Event string to fire' parameter. :cry:

Is that on purpose? :shock:

I would find this very useful, I'm trying to create some macro / python code which receives events from my Tira, the eventstring gets passed into a global python function which decodes the IR value eventstring to a readable button press representation...

eg.
"AB8EFDDF55D5" gets translated into an "FHDTV_DN_DTV" (FusionHDTV "DTV" remote button is down), on the exit of the function i set a global variable to the value of the translated string, at that time i need to trigger that event (using the Trigger event action) that has the parameter eg.globals.checkxout (actual string is {eg.globals.checkxout}) but the event i get is "Main.{eg.globals.checkxout}".

Show OSD doesn't seem to have any problems parsing {eg.globals.checkxout} to show it's true value. :?

Oh and also, is there any way we can get the Autorepeat macro action to not block all Trigger events action inside the autorepeating macro until the autorepeat has completed? I did read the topic http://www.eventghost.org/forum/viewtopic.php?t=124 but this makes me very sad. :cry:

I'm trying to implement application control through python code and my plight is to avoid using the Enable exclusive / enable & disable item action, but i have hit a wall because the Autorepeat action is blocking my events from being processed until the remote button is released. The other buttons (no repeat needed) are working fine i.e. ive implemented button press and button hold, Pressing a button for less than .5 seconds sends a trigger event and Holding a button down for more than .5 seconds send a trigger event.

please help!! ;)

Cheers
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

I will add the parse functionality to the TriggerEvent action. As a workaround you can currently use a PythonCommand like eg.TriggerEvent(myVariable).

But for this special purpose you can map the event names directly with a script, like it is mentioned here: http://www.eventghost.org/forum/viewtopic.php?t=34
Faster and less cluddered.

AutoRepeat will always block other events till it finishes. There is no way around and it will unlikely ever change. In this case I would trigger a macro that conditionally jumps to other macros. And if the right condition is met, jump to an autorepeating macro.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Post Reply