Is it possible to catch events from other plugins from within your own plugin? Basically, I want to catch all events that occur, and redirecting them elsewhere.
If not, I guess I will create a Redirect macro in my plugin, with an action called 'Redirect'. The user would then need to drag any events they want redirected to my plugin into that macro. This would mimic the functionality I want above. The benefit of this is the user gets to decide what events would be redirected. The con is now the plugin requires more manual configuration to work the way I want.
Thanks.
Catching and Redirecting Events
Re: Catching and Redirecting Events
I don't believe there is a way, within a plugin, to request events. I think you are stuck with the macro option.
Brett
Brett
Re: Catching and Redirecting Events
you can bind to events
But it does not sound like a wise idea. What should the plugin do?
Code: Select all
eg.Bind("event name pattern", callback)
Re: Catching and Redirecting Events
So you can bind events with a pattern, like the plugin prefix?
I am writing an Android EventGhost client. What I would like to do is catch events in the server, such as the keyboard events, or other (unknown) plugin events, and act on them with my plugin. The plugin will be similar to the Network Event Sender plugin, but instead of generating it's own events, or having to manually type in the events, it will just redirect existing ones to the Android client. The client will then be able to act on the incoming events, and perform its own actions.
I am writing an Android EventGhost client. What I would like to do is catch events in the server, such as the keyboard events, or other (unknown) plugin events, and act on them with my plugin. The plugin will be similar to the Network Event Sender plugin, but instead of generating it's own events, or having to manually type in the events, it will just redirect existing ones to the Android client. The client will then be able to act on the incoming events, and perform its own actions.
Re: Catching and Redirecting Events
I don't think eg.Bind does what you want. You bind a function/method to a string, then call eg.Notify("myString") to call the action. It doesn't get the events you see in the log, only stuff from eg.Notify.
Brett
Brett