Guys,
I going to install Eventghost and wanted to know more about 'priorities':
When I m going to use several plugins like to one for winamp, XBMC, Media Player Classic and some regular windows functions; how does eventghost sets it s priorities? eg. when I have both winamp and Media Player Classic running and I have programed eg. the arrow buttons of my Logitech Harmony ONE, which one has the priority then? Or do I have to add more devices to my Logitech and call one Winamp, one Media Player Classic etc.?
thxz.
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.
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.
program commands, who has priority?
-
THX-UltraII
- Experienced User
- Posts: 52
- Joined: Tue Feb 24, 2009 7:40 am
Re: program commands, who has priority?
When an event is triggered all macros with that event set will be executed. I'm not sure in which order it happens, It could be as simple as in the order they appear in the config tree. (somebody know for sure?)
The way to assign one remote button to do multiple things is to only have only one branch of the config tree active at one time. Put macros for winamp, media player, zoom player etc. in their own folders and then switch between them(disable/enable the folders) with for example the 'enable exclusive' action. You could trigger this 'enable exclusive' action from pushing a button on the remote or maybe activate it automatically when you switch between applications using the "Task Create/Switch Events" plugin. It's up to you really to set it up the way you want it to work.
PS. If you can set the logitech harmony to send different codes and switch between different intended uses that way, feel free to do so. What I said above is something you could do with any hardware.
The way to assign one remote button to do multiple things is to only have only one branch of the config tree active at one time. Put macros for winamp, media player, zoom player etc. in their own folders and then switch between them(disable/enable the folders) with for example the 'enable exclusive' action. You could trigger this 'enable exclusive' action from pushing a button on the remote or maybe activate it automatically when you switch between applications using the "Task Create/Switch Events" plugin. It's up to you really to set it up the way you want it to work.
PS. If you can set the logitech harmony to send different codes and switch between different intended uses that way, feel free to do so. What I said above is something you could do with any hardware.
-
THX-UltraII
- Experienced User
- Posts: 52
- Joined: Tue Feb 24, 2009 7:40 am
Re: program commands, who has priority?
this clearsa things up for me. So what I want is to control folders to make them active/non-active. I understand everything you say except for one thing: You say that folders can be activated aut. when switching between applications using the "Task Create/Switch Events" plugin. What is you/do you mean by this? Can you explain this again more extensive?
ps. Sorry for my bad English!
ps. Sorry for my bad English!
-
THX-UltraII
- Experienced User
- Posts: 52
- Joined: Tue Feb 24, 2009 7:40 am
Re: program commands, who has priority?
I did some searching the last 2 hours and I m a little further on my way. I found a plugin called 'Task Create/Switch Events'. I ve added this plugin and now this plugin is in my list of my Autostart in the Configuration Tree.
But I would like to know what to do next now? You said that I will have to add macro's (in my case for Media Player Classic and XBMC) correct? But where do I place this macro's and what must the macro contain?
But I would like to know what to do next now? You said that I will have to add macro's (in my case for Media Player Classic and XBMC) correct? But where do I place this macro's and what must the macro contain?
Re: program commands, who has priority?
Once you have the 'Task Create/Switch Events' plugin loaded uncheck the box 'log only assigned and activated events' checkbox (below the log window). Switch between some programs and you will see Task.activated.* and Task.deactivated.* events in the log view. Simply drag&drop these events from the log view to a macro.
Example (copy&paste into EG):
Example (copy&paste into EG):
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1487">
<Folder Name="example" Expanded="True">
<Folder Name="Task Switchers" Expanded="True">
<Macro Name="Enable exclusive: XBMC" Expanded="True">
<Event Name="Task.Activated.XBMC" />
<Action>
EventGhost.EnableExclusive(XmlIdLink(13))
</Action>
</Macro>
<Macro Name="Enable exclusive: Media Player Classic" Expanded="True">
<Event Name="Task.Activated.MPC" />
<Action>
EventGhost.EnableExclusive(XmlIdLink(14))
</Action>
</Macro>
</Folder>
<Folder Name="Context" Expanded="True">
<Folder Name="XBMC" id="13" Enabled="False" />
<Folder Name="Media Player Classic" id="14" />
</Folder>
</Folder>
</EventGhost>
-
THX-UltraII
- Experienced User
- Posts: 52
- Joined: Tue Feb 24, 2009 7:40 am
Re: program commands, who has priority?
thxz, I ll try this tonight and let you know m8
-
THX-UltraII
- Experienced User
- Posts: 52
- Joined: Tue Feb 24, 2009 7:40 am
Re: program commands, who has priority?
I still don t think I fully understand this one yet.
Let s take XBMC as example:
In the Log of EventGhost I now can see Task.Activated.XBMC and Task.Deactivated.XBMC. SO you say I have to drag&drop these to a Macro. But what kind of Macro does this has to be and WHERE do I put this Macro? Do I have to add a new Macro to my XBMC (yellow) FOLDER? If so, when I choose 'Add Macro...' I then have to select an Action to add. Which action do I choose here? Or maybe I have to CANCEL this one? That way I get a new '<unnamed macro>' in my XBMC folder. I then can drag&drop eg. Task.Activated.XBMC to this macro and then this one is added as Event to this <unnamed macro>.
Before I go on, maybe it s better if you can say what right and whats wrong what I am doing here
thxz for helping m8.
Let s take XBMC as example:
In the Log of EventGhost I now can see Task.Activated.XBMC and Task.Deactivated.XBMC. SO you say I have to drag&drop these to a Macro. But what kind of Macro does this has to be and WHERE do I put this Macro? Do I have to add a new Macro to my XBMC (yellow) FOLDER? If so, when I choose 'Add Macro...' I then have to select an Action to add. Which action do I choose here? Or maybe I have to CANCEL this one? That way I get a new '<unnamed macro>' in my XBMC folder. I then can drag&drop eg. Task.Activated.XBMC to this macro and then this one is added as Event to this <unnamed macro>.
Before I go on, maybe it s better if you can say what right and whats wrong what I am doing here
thxz for helping m8.
Re: program commands, who has priority?
Let's take a look at the example I posted. First paste it into your EG so you can see how it works. You can Test-Execute a command by selecting it and then press F5.
Ok..
Now select one of the 'enable exclusive' macros in that example and press F5. Then select the other one and press F5. Instead of manually executing these with F5 you could for example drag the Task.Activated events into these macros.
As you can see executing these enable exclusive macros enable and disable folders inside the the context folder. If you were to put actions that control XBMC and MPC inside these folders you would enable and disable a whole group of macros at one go.
Ok..
Now select one of the 'enable exclusive' macros in that example and press F5. Then select the other one and press F5. Instead of manually executing these with F5 you could for example drag the Task.Activated events into these macros.
As you can see executing these enable exclusive macros enable and disable folders inside the the context folder. If you were to put actions that control XBMC and MPC inside these folders you would enable and disable a whole group of macros at one go.