Page 1 of 1
[FIXED] Change master volume eg.result
Posted: Fri Jun 01, 2012 8:39 pm
by HaTe
With the latest release (5 April 2012) of EventGhost, does not return the correct volume (to eg.result) after changing it. It is delayed till the next volume change. I have a macro with a volume change action and after that a show osd action.
No problems with previous release.
by the way, is it normal that the master volume can't be 0? I think it did work with v1540, but when I install that, it still does not work.
Re: Change master volume eg.result
Posted: Wed Aug 01, 2012 2:32 pm
by HaTe
kick
Re: Change master volume eg.result
Posted: Fri Aug 03, 2012 4:13 pm
by scissors
Hello,
Maybe this will help... This is what I use:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1572">
<Macro Name="Down" Expanded="True">
<Event Name="ARW.VolumeDown" />
<Event Name="PS3.Button.Green" />
<Action>
System.ChangeMasterVolumeBy(-2.0, 0)
</Action>
<Action>
EventGhost.ShowOSD(u'\u25a0 {int(eg.result)}', u'0;-96;0;0;0;900;0;0;0;0;3;2;1;34;Arial Black', (0, 255, 0), (0, 128, 128), 1, (20, 20), 0, 1.5, False)
</Action>
<Action>
EventGhost.AutoRepeat(0.59999999999999998, 0.29999999999999999, 0.01, 4.0)
</Action>
<Action>
EventGhost.FlushEvents()
</Action>
</Macro>
</EventGhost>
This works fine for me in r1572, and it also goes all the way down to 0%.
If you're trying to do something different, post the code you're using and maybe someone can find the problem.
Re: Change master volume eg.result
Posted: Fri Aug 03, 2012 4:55 pm
by bskchaos
Same here, System.Volume shows the right value. I'm struggling to use this to handle my OSD.
Re: Change master volume eg.result
Posted: Fri Aug 03, 2012 5:12 pm
by scissors
bskchaos wrote:Same here, System.Volume shows the right value. I'm struggling to use this to handle my OSD.
On System.Volume events, what works for me is using eg.event.payload:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1572">
<Macro Name="Changed" Expanded="True">
<Event Name="System.Volume" />
<Event Name="System.UnMute" />
<Action>
EventGhost.ShowOSD(u'\u25a0 {int(float(eg.event.payload))}', u'0;-96;0;0;0;900;0;0;0;0;3;2;1;34;Arial Black', (0, 255, 0), (0, 128, 128), 1, (20, 20), 0, 1.0, False)
</Action>
</Macro>
</EventGhost>
Re: Change master volume eg.result
Posted: Sun Aug 19, 2012 8:09 am
by gechu
Had problems with the type casting using scissors code. Solved it by changing it to:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1580">
<Action>
EventGhost.ShowOSD(u'\u25a0 {str(eg.event.payload)}', u'0;-96;0;0;0;900;0;0;0;0;3;2;1;34;Arial Black', (0, 255, 0), (0, 128, 128), 1, (20, 20), 0, 1.0, False)
</Action>
</EventGhost>
Re: Change master volume eg.result
Posted: Sun Aug 19, 2012 8:19 am
by gechu
I want the display to update for each changed volume, and not when the auto-repeat procedure is completely done. Is is possible to do that?
Example, all these get executed
10:17:32 Change Master Volume: -2.00 %
10:17:32 Autorepeat current macro: 0.6
10:17:32 Change Master Volume: -2.00 %
10:17:33 Autorepeat current macro: 0.6
10:17:33 Change Master Volume: -2.00 %
and then:
10:17:34 System.Volume '90,00'
Re: Change master volume eg.result
Posted: Tue Aug 21, 2012 3:13 pm
by bskchaos
gechu wrote:I want the display to update for each changed volume, and not when the auto-repeat procedure is completely done. Is is possible to do that?
eg.result for Change Master Volume has been fixed in the lastest version (1582), we don't need eg.event.payload anymore.
This is my Volume control folder, it uses a 20 step OSD and icons triggered by System.Mute and System.Unmute events
It should work with Growl Meter too.

Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1582">
<Folder Name="Volume" Expanded="True">
<Macro Name="Increase Volume">
<Event Name="X10.VolumeUp" />
<Event Name="HID.Button.232" />
<Action>
System.ChangeMasterVolumeBy(5.0, 0)
</Action>
<Action>
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.25, 0.050000000000000003, 0.01, 0.20000000000000001)
</Action>
</Macro>
<Macro Name="Decrease Volume">
<Event Name="X10.VolumeDown" />
<Event Name="HID.Button.233" />
<Action>
System.ChangeMasterVolumeBy(-5.0, 0)
</Action>
<Action>
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.25, 0.050000000000000003, 0.01, 0.20000000000000001)
</Action>
</Macro>
<Macro Name="Mute Sound Card">
<Event Name="X10.Mute" />
<Event Name="HID.Button.225" />
<Action>
System.ToggleMute(0)
</Action>
</Macro>
<Macro Name="Show OSD: Mute ON">
<Event Name="System.UnMute" />
<Action>
EventGhost.ShowOSD(u'X\xf0', u'0;-96;0;0;0;400;0;0;0;2;3;2;1;18;Webdings', (255, 255, 255), (0, 0, 0), 3, (32, 32), 0, 2.0, True)
</Action>
</Macro>
<Macro Name="Show OSD: Mute ON">
<Event Name="System.Mute" />
<Action>
EventGhost.ShowOSD(u'Xr', u'0;-96;0;0;0;400;0;0;0;2;3;2;1;18;Webdings', (255, 255, 255), (0, 0, 0), 3, (32, 32), 0, 0.0, True)
</Action>
</Macro>
</Folder>
</EventGhost>
Re: Change master volume eg.result
Posted: Fri Sep 07, 2012 5:31 pm
by HaTe
Yes, it's fixed. Thanks bros!
@bckchaos, that is exactly the version I use
