PDA

View Full Version : Generating a Girder Event within an Girder Action



RaK
January 27th, 2003, 04:08 AM
Hello guys,

perhaps a stupid question, but I have no idea how to solve it.

I would like to create an action wich generates another girder event.

I would like to use it for the following. I have a complete "application" implemented within girder, which makes me able to control my htpc with a lcd display and some additional buttons connected to the serial port.

Now I would like to be able to control these menu also with my remote control. But I dont want to ad to every single action within the hole girder file a second Event for the Remote Control. My idea is to have an action wich is triggered by the remote control event which generates the keypress event so that girder "thinks" the serial botton is pressed.

I hope my idea is clear to you. Perhaps this is easy to implement with the right plugin, but I have to know which plugin ;-)).

Greetings

Mark F
January 27th, 2003, 05:57 AM
Yes, it is already there. :)

You will need to use a LUA script and the TriggerEvent() function. Check out this (http://www.girder.nl/phpBB2/viewtopic.php?t=2829) thread for a bit more information.

RaK
January 27th, 2003, 06:15 AM
OK TNX for your fast reply MarkF.

Seems trivial, but how to get the correct "device ID". Never heard of that before.

Any hints?

TNX a lot!

Mark F
January 27th, 2003, 08:22 AM
If the event is normally generated by a plugin, the device ID for the plugin can be found on the Girder plugins settings page.

If the event is normally generated by Girder, the ID is 18.