Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1568">
<Folder Name="Volume Control" Expanded="True">
<Macro Name="Volume Mute">
<Event Name="DXusbPCR.Mute" />
<Action>
System.ToggleMute(0)
</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), 6, (0, 60), 1, 3.0, True)
</Action>
</Macro>
<Macro Name="Volume Up">
<Event Name="DXusbPCR.Volume+" />
<Action>
System.ChangeMasterVolumeBy(1.0, 0)
</Action>
<Action>
EventGhost.ShowOSD(u'Master Volume {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), 6, (0, 60), 0, 3.0, True)
</Action>
<Action>
EventGhost.AutoRepeat(0.5, 0.20000000000000001, 0.029999999999999999, 0.0)
</Action>
</Macro>
<Macro Name="Volume Down">
<Event Name="DXusbPCR.Volume-" />
<Action>
System.ChangeMasterVolumeBy(-1.0, 0)
</Action>
<Action>
EventGhost.ShowOSD(u'Master Volume {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), 6, (0, 60), 0, 3.0, True)
</Action>
<Action>
EventGhost.AutoRepeat(0.5, 0.20000000000000001, 0.029999999999999999, 0.0)
</Action>
</Macro>
</Folder>
</EventGhost>