[FIXED] Change master volume eg.result

Found a bug in EventGhost? Report it here.

[FIXED] Change master volume eg.result

Postby HaTe » Fri Jun 01, 2012 8:39 pm

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.
Last edited by HaTe on Fri Sep 07, 2012 5:31 pm, edited 1 time in total.
User avatar
HaTe
 
Posts: 5
Joined: Thu Jul 08, 2010 1:44 pm

Re: Change master volume eg.result

Postby HaTe » Wed Aug 01, 2012 2:32 pm

kick
User avatar
HaTe
 
Posts: 5
Joined: Thu Jul 08, 2010 1:44 pm

Re: Change master volume eg.result

Postby scissors » Fri Aug 03, 2012 4:13 pm

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.
scissors
 
Posts: 21
Joined: Mon Oct 17, 2011 1:41 pm

Re: Change master volume eg.result

Postby bskchaos » Fri Aug 03, 2012 4:55 pm

Same here, System.Volume shows the right value. I'm struggling to use this to handle my OSD.
bskchaos
 
Posts: 42
Joined: Tue Mar 25, 2008 3:04 pm

Re: Change master volume eg.result

Postby scissors » Fri Aug 03, 2012 5:12 pm

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>
scissors
 
Posts: 21
Joined: Mon Oct 17, 2011 1:41 pm

Re: Change master volume eg.result

Postby gechu » Sun Aug 19, 2012 8:09 am

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>
gechu
 
Posts: 40
Joined: Sat Jan 07, 2012 10:35 am

Re: Change master volume eg.result

Postby gechu » Sun Aug 19, 2012 8:19 am

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'
gechu
 
Posts: 40
Joined: Sat Jan 07, 2012 10:35 am

Re: Change master volume eg.result

Postby bskchaos » Tue Aug 21, 2012 3:13 pm

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.

Image
ImageImage


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>
bskchaos
 
Posts: 42
Joined: Tue Mar 25, 2008 3:04 pm

Re: Change master volume eg.result

Postby HaTe » Fri Sep 07, 2012 5:31 pm

Yes, it's fixed. Thanks bros!

@bckchaos, that is exactly the version I use :)
User avatar
HaTe
 
Posts: 5
Joined: Thu Jul 08, 2010 1:44 pm


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest