1. Go to one of your volume macros (example: UP) and add "Show OSD" action (right-click -> Add Action... -> EventGhost -> Show OSD) and introduce this code (where it say: "Text to display"):
Code: Select all
Volume {int(round(eg.result))}%Code: Select all
Volume {'|'*int(round(eg.result))+'.'*(100-int(round(eg.result)))} {int(round(eg.result))}%2. Repeat the process for the other volume macro (example: DOWN) or just copy that previous action to the other macro.
3. The last thing you should want to do is to display the Mute condition. For that, go to your Mute macro (Toggle Mute) and add "Show OSD" action (right-click -> Add Action... -> EventGhost -> Show OSD) and introduce this code:
Code: Select all
Mute {("Off", "On")[eg.result]}Code: Select all
Sound {("On", "Off")[eg.result]}I attach a screenshot of my settings. Yours should be looking something like this:
I make a video tutorial showing how to use EventGhost, including how to make display the current volume. Here's the video: http://www.youtube.com/watch?v=xnMzu1h1gxc
P.S. English is not my primary language so be understandable about my bad english.
If you are lost (or lazy), here is the entire code of the configuration file
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1544" Guid="{93CA3DF2-7148-4B9C-9F06-FB3D578935B9}" Time="1327405609.27">
<Autostart Name="Autostart" Expanded="True">
<Plugin Identifier="Lirc" Guid="{17A77662-BB69-4C37-AA43-71213958C5C4}" File="Lirc">
gAIoWAkAAAAxMjcuMC4wLjFxAE09IomJiUsAS8iIS0BLCnRxAS4=
</Plugin>
</Autostart>
<Folder Name="Change Volume">
<Macro Name="Volume Up">
<Event Name="Lirc.vol+" />
<Action>
System.ChangeMasterVolumeBy(1.0, 0)
</Action>
<Action>
EventGhost.ShowOSD(u'Volumen {int(round(eg.result))}%', u'0;-64;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 5, (0, 100), 0, 3.0, True)
</Action>
<Action>
EventGhost.AutoRepeat(0.5, 0.20000000000000001, 0.029999999999999999, 0.0)
</Action>
</Macro>
<Macro Name="Volume Down">
<Event Name="Lirc.vol-" />
<Action>
System.ChangeMasterVolumeBy(-1.0, 0)
</Action>
<Action>
EventGhost.ShowOSD(u'Volumen {int(round(eg.result))}%', u'0;-64;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 5, (0, 100), 0, 3.0, True)
</Action>
<Action>
EventGhost.AutoRepeat(0.5, 0.20000000000000001, 0.029999999999999999, 0.0)
</Action>
</Macro>
<Macro Name="Mute" Expanded="True">
<Event Name="Lirc.mute" />
<Action>
System.ToggleMute()
</Action>
<Action>
EventGhost.ShowOSD(u'Mute {("Off", "On")[eg.result]}', u'0;-64;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (255, 255, 255), (0, 0, 0), 5, (0, 100), 0, 3.0, True)
</Action>
</Macro>
</Folder>
</EventGhost>
The user bskchaos submit another way to show a volume bar and mute.
Is more complicated to setup, so I better publish the entire code of the settings:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1540">
<Folder Name="Volume Control" Expanded="True">
<Macro Name="Decrease Volume" Expanded="True">
<Event Name="X10.VolumeDown" />
<Event Name="ErgoMouse.Button.234" />
<Event Name="HID.Button.3" />
<Action>
System.ChangeMasterVolumeBy(-5.0, 0)
</Action>
<Action id="762">
EventGhost.ShowOSD(u'{"c" *int(round(eg.result) * 0.20) + "g" *int(round(100-(eg.result)) * 0.20)}', u'0;-12;0;0;0;400;0;0;0;2;3;2;1;18;Webdings', (255, 255, 255), (0, 0, 0), 3, (8, 48), 0, 2.0, True)
</Action>
<Action>
EventGhost.AutoRepeat(0.40000000000000002, 0.050000000000000003, 0.01, 0.40000000000000002)
</Action>
</Macro>
<Macro Name="Increase Volume" Expanded="True">
<Event Name="X10.VolumeUp" />
<Event Name="ErgoMouse.Button.233" />
<Event Name="HID.Button.4" />
<Action>
System.ChangeMasterVolumeBy(5.0, 0)
</Action>
<Action id="770">
EventGhost.ShowOSD(u'{"c" *int(round(eg.result) * 0.20) + "g" *int(round(100-(eg.result)) * 0.20)}', u'0;-12;0;0;0;400;0;0;0;2;3;2;1;18;Webdings', (255, 255, 255), (0, 0, 0), 3, (8, 48), 0, 2.0, True)
</Action>
<Action>
EventGhost.AutoRepeat(0.40000000000000002, 0.050000000000000003, 0.01, 0.40000000000000002)
</Action>
</Macro>
<Macro Name="Mute Sound Card" Expanded="True">
<Event Name="X10.Mute" />
<Action>
System.ToggleMute(0)
</Action>
<Action>
EventGhost.NewJumpIf(XmlIdLink(777), 0, False)
</Action>
<Action>
EventGhost.ShowOSD(u'X\xf0', u'0;-64;0;0;0;400;0;0;0;2;3;2;1;18;Webdings', (255, 255, 255), (0, 0, 0), 3, (16, 56), 0, 2.0, True)
</Action>
</Macro>
<Macro Name="Show OSD: Mute ON" id="777" Expanded="True">
<Action>
EventGhost.ShowOSD(u'Xr', u'0;-64;0;0;0;400;0;0;0;2;3;2;1;18;Webdings', (255, 255, 255), (0, 0, 0), 3, (16, 56), 0, 0.0, True)
</Action>
</Macro>
</Folder>
</EventGhost>*************************************************************************************************************
******************************This is my original post asking for help*********************************
*************************************************************************************************************
I am new with EventGhost but I've manage to get it working great.
I try many kind of applications to control the computer with my remote control using WinLIRC. EventGhost is the best because is easy to understand and setup. But the only thing I find horrible about EventGhost is that is too difficult to make the simple thing of displaying the volume (OSD).
In Girder is easy to make it work; in uICE can't be easier; in EventGhost, well I've been learning a lot about the program and I didn't know it was even possible to show the current volume. I don't even know how to show anything (like when I press a button, display for 2 seconds the name of the button).
I read some post on this forums and everything looks so complicated, using lines of text that I don't understand.
What I want is a simple instructions (from scratch) to make display:
- The name of the button is press it, for 2 seconds
- The current volume when the volume state change
How to do it? How to customize?
Why is not a simple way to do this things on EventGhost?
Please help. All the post I've read explain things like everyone already know what are you talking about. Is like you need to understand a millions things before you can get this simple thing to work. Like this post: http://www.eventghost.org/forum/viewtopic.php?f=2&t=685
Can anyone help me?
BTW I am going to make a video showing how to use EventGhost (a tutorial) and upload it on youtube, so if you help me I will also show this part on the video. I want to everyone be able to learn this things easily.
*************************************************************************************************************
*************************************************************************************************************
*************************************************************************************************************
