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.
newbie setup help
newbie setup help
I am using Beyond TV, and have setup EventGhost to launch the program, and have created a context folder with all the remote keys to control this program.
My confusion comes in when I want to switch to ZoomPlayer. I have setup a remote key to switch to ZoomPlayer, but I don't understand how to only use the ZoomPlayer context folder of commands to control the program after it has been launched. A lot of the commands are the same between BeyondTV and ZoomPlayer, but for instance the "pause" function is the "a" in ZoomPlayer and "spacebar" in BeyondTV. So when I hit the pause on the remote, it calls the signal for both programs.
I see the "exklusive" command, but don't understand how it works, and how to make it work.
Right now I just want to be able to control these (2) programs, and if I need to add others down the road, I will be able to. But for now, these are the only programs I need, but am having trouble finding out how to do this on my own.
Please help a newbie out!
Thanks
My confusion comes in when I want to switch to ZoomPlayer. I have setup a remote key to switch to ZoomPlayer, but I don't understand how to only use the ZoomPlayer context folder of commands to control the program after it has been launched. A lot of the commands are the same between BeyondTV and ZoomPlayer, but for instance the "pause" function is the "a" in ZoomPlayer and "spacebar" in BeyondTV. So when I hit the pause on the remote, it calls the signal for both programs.
I see the "exklusive" command, but don't understand how it works, and how to make it work.
Right now I just want to be able to control these (2) programs, and if I need to add others down the road, I will be able to. But for now, these are the only programs I need, but am having trouble finding out how to do this on my own.
Please help a newbie out!
Thanks
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Do you have read the wiki page "Controlling Your Living Room with EventGhost", especially the part about "Enabling Exclusives"?
http://www.eventghost.org/wiki/Controll ... Exclusives
For Zoom Player you should use the Zoom Player plugin, as it works more reliable and sophisticated than doing it with keystrokes.
http://www.eventghost.org/wiki/Controll ... Exclusives
For Zoom Player you should use the Zoom Player plugin, as it works more reliable and sophisticated than doing it with keystrokes.
I re-read the wiki closer, and did figure out how to use the exklusive to switch between context folders to make them active.
So I am now trying to modify the existing ZoomPlayer context folder that came with the program by dragging and dropping my remote codes onto the events for each macro(play, pause etc). So I tested a few, and the logger on the left side of the screen shows the remote code that is being transmitted, the ZoomPlayer function being called, but then I get the following (2) events listed:
ZoomPlayer.NoConnection
ZoomPlayer.close.
Nothing happens. I am close, but obviously I am missing something.
Thanks again for your help.
So I am now trying to modify the existing ZoomPlayer context folder that came with the program by dragging and dropping my remote codes onto the events for each macro(play, pause etc). So I tested a few, and the logger on the left side of the screen shows the remote code that is being transmitted, the ZoomPlayer function being called, but then I get the following (2) events listed:
ZoomPlayer.NoConnection
ZoomPlayer.close.
Nothing happens. I am close, but obviously I am missing something.
Thanks again for your help.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: newbie setup help
I am having a similar problem, but unlike you have been unable to fiure it out. I am trying to run SageTV and Zoomplayer. I have my context folders setup, but whenever I enter SageTV, eventghost sends the commands for SageTV and Zoomplayer. So pressing up actually gets sent twice...and so on. How do I fix this? I do not want SageTV to respond when I am using Zoom Player and vice versa.jdsnov73 wrote:I am using Beyond TV, and have setup EventGhost to launch the program, and have created a context folder with all the remote keys to control this program.
My confusion comes in when I want to switch to ZoomPlayer. I have setup a remote key to switch to ZoomPlayer, but I don't understand how to only use the ZoomPlayer context folder of commands to control the program after it has been launched. A lot of the commands are the same between BeyondTV and ZoomPlayer, but for instance the "pause" function is the "a" in ZoomPlayer and "spacebar" in BeyondTV. So when I hit the pause on the remote, it calls the signal for both programs.
I see the "exklusive" command, but don't understand how it works, and how to make it work.
Right now I just want to be able to control these (2) programs, and if I need to add others down the road, I will be able to. But for now, these are the only programs I need, but am having trouble finding out how to do this on my own.
Please help a newbie out!
Thanks
As you can see here, you have to set up the "switch to mode"-macros, shown in the picture on the right hand side. The picture below shows, that there have to be at least two elements inside the macro:
1.) the event that you want to activate the keys for program1 (SageTV).
Just press the button you wish on your remote and drag & drop it to the macro.
2.) the "enable exclusive" command. Right-click inside the macro and choose "add command" (I don't know if it is "command" because I use the german version, but it should be something like that.) Then choose the "enable exclusive" command an press OK. You are then asked to select the directory. Choose your "SageTV" directory in the "Context Folder".
Repeat this for Zoomplayer. But choose a different event please, because this would become a bit complicated for the beginning.
When you did it correctly, the folder "SageTV" in the "Context Folder" should be activated, when you press the button you selected in the "switch to mode:SageTV"-macro and all other folders in the "Context Folder" are deactivated. If you then press the button you selected in the "switch to mode:Zoomplayer"-macro, the folder "Zoomplayer" is activated and "SageTV" is deactivated. This should be what you want.
When you downloaded a new version, there should be examples, that may help, if you have a look at them.
Hope I could help you. If not, ask again.
Have fun with EG.
1.) the event that you want to activate the keys for program1 (SageTV).
Just press the button you wish on your remote and drag & drop it to the macro.
2.) the "enable exclusive" command. Right-click inside the macro and choose "add command" (I don't know if it is "command" because I use the german version, but it should be something like that.) Then choose the "enable exclusive" command an press OK. You are then asked to select the directory. Choose your "SageTV" directory in the "Context Folder".
Repeat this for Zoomplayer. But choose a different event please, because this would become a bit complicated for the beginning.
When you did it correctly, the folder "SageTV" in the "Context Folder" should be activated, when you press the button you selected in the "switch to mode:SageTV"-macro and all other folders in the "Context Folder" are deactivated. If you then press the button you selected in the "switch to mode:Zoomplayer"-macro, the folder "Zoomplayer" is activated and "SageTV" is deactivated. This should be what you want.
When you downloaded a new version, there should be examples, that may help, if you have a look at them.
Hope I could help you. If not, ask again.
Have fun with EG.
You can switch between the modes depending on the focus, when you use the PlugIn "Create/Switch Task". When you add this PlugIn to your configuration, EG will create events when you change the focus (by clicking or Alt+TAB for example). Just use this event in the "switch to mode" macro instead of the event from the remote.
Last edited by drummer83 on Thu Oct 12, 2006 3:53 pm, edited 1 time in total.
When there is more than one program, that uses an event (like the UP button in SageTV and Zoomplayer you mentioned above) EventGhost will execute every macro (that is not deactivated) that contains the "Up-event". It doesn't matter which program has focus. This is good, if you want to control a program in the background for example.
That's why you have to use the "enable-exclusive" command.
That's why you have to use the "enable-exclusive" command.
So I need to disable and enable context folders based on focus? Man am I ever getting confused. I have added the "create/switch Task" plugin. But how does it know which context folder goes with which focused app? I see no way of assigning this. Any chance you can post an example. Sorry for being thickheaded, I got alot of other things going on as well.
Ok, here is an example. I used Winamp and MediaPlayerClassic instead. I hope you will see the way it works. Just create a file "test.txt", copy and paste the following code into the file. Save the file and rename it to "test.xml". Start EventGhost, save your current config and open the test.xml in EventGhost.
Hope this helps. And ask again if its not clear 
EDIT: I changed the code, this one should work.
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?><EventGhost Name="Konfigurations-Baum" Version="727"><Autostart Name="Autostart"><Plugin File="X10" Identifier="X10Remote">gAJLAV1xAChLAUsCSwNLBEsFSwZLB0sISwlLCksLSwxLDUsOSw9LEGVYAwAAAFgxMHEBh3ECLg==</Plugin><Plugin File="Winamp" Identifier="Winamp">gAIpLg==</Plugin><Plugin File="MediaPlayerClassic" Identifier="MediaPlayerClassic">gAIpLg==</Plugin><Plugin File="Task" Identifier="Task">gAIoiIiIiHRxAC4=</Plugin></Autostart><Macro Name="Switch to mode: Winamp"><Event Name="Task.Activated.winamp"></Event><Action>EventGhost.EnableExclusive(XmlIdLink(81))</Action></Macro><Macro Name="Switch to mode: MediaPlayerClassic"><Event Name="Task.Activated.mplayerc"></Event><Action>EventGhost.EnableExclusive(XmlIdLink(504))</Action></Macro><Folder Name="Context Folder"><Folder Name="Winamp" id="81"><Macro Name="Play"><Event Name="Play"></Event><Event Name="Ok"></Event><Action>Winamp.TogglePlay()</Action></Macro><Macro Name="Stop"><Event Name="Stop"></Event><Action>Winamp.Stop()</Action></Macro></Folder><Folder Name="MediaPlayerClassic" id="504" Enabled="False"><Macro Name="Media Player Classic: Play/Pause"><Event Name="X10.Play"></Event><Event Name="X10.Pause"></Event><Action>MediaPlayerClassic.PlayPause()</Action></Macro><Macro Name="Media Player Classic: Stop"><Event Name="X10.Stop"></Event><Action>MediaPlayerClassic.Stop()</Action></Macro></Folder></Folder></EventGhost>EDIT: I changed the code, this one should work.
Last edited by drummer83 on Thu Oct 12, 2006 6:40 pm, edited 2 times in total.
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Yes, and you do this by using the events, that EG creates when you have the Task Switch/Create Plugin loaded. When it is loaded, make sure that the checkbox in the status-bar is unchecked. You then should see events created in the logger on the left side everytime you change the focus of any program. They look like this: Task.Activated.SageTV. This is the event you have to put in your switch to mode-macros. One for SageTV (Task.Activated.SageTV) and one for Zoomplayer (Task.Activated.zoomplayer) or similar.So I need to disable and enable context folders based on focus?
ahhhhhh that's the step I was missing I think. Thanks I'll try all this later today.drummer83 wrote:Yes, and you do this by using the events, that EG creates when you have the Task Switch/Create Plugin loaded. When it is loaded, make sure that the checkbox in the status-bar is unchecked. You then should see events created in the logger on the left side everytime you change the focus of any program. They look like this: Task.Activated.SageTV. This is the event you have to put in your switch to mode-macros. One for SageTV (Task.Activated.SageTV) and one for Zoomplayer (Task.Activated.zoomplayer) or similar.So I need to disable and enable context folders based on focus?