I want to know if there is some way to convert current volume level to an event, i have finded how to print the current volume level ("Change Master Volume: 0.00 %" + "print (int(round(eg.result,1)))") but i dont know how to transform that print to an event, i want to automatically mute the volume when it is at 0% because my system still have sound at 0% and i dont want to manually mute every time anymore
This is my current volume control:
Code: Select all
<Folder Name="Volume Control">
<Macro Name="Mute Volume">
<Event Name="Lirc.Sony_RM-V210_VCR_Code_8201:SonyVCR.Muting" />
<Event Name="PS3.Button.L1" />
<Action>
System.ToggleMute()
</Action>
<Action>
EventGhost.ShowOSD(u'Mute {("Off", "On")[eg.result]}', u'0;-32;0;0;0;700;0;0;0;0;3;2;1;34;BenguiatGot Bk BT', (0, 255, 0), (0, 0, 0), 5, (0, 35), 0, 3.0, False)
</Action>
</Macro>
<Macro Name="Increase Volume">
<Event Name="VolumeUp" />
<Event Name="Lirc.Sony_RM-V210_VCR_Code_8201:SonyVCR.Volume+" />
<Event Name="PS3.Button.Triangle" />
<Event Name="Keyboard.LCtrl+RAlt+Oem3" />
<Action>
System.MuteOff(0)
</Action>
<Action>
System.ChangeMasterVolumeBy(0.5, 0)
</Action>
<Action>
EventGhost.ShowOSD(u'Volume {int(round(eg.result))}%', u'0;-32;0;0;0;700;0;0;0;0;3;2;1;34;BenguiatGot Bk BT', (0, 255, 0), (0, 0, 0), 5, (0, 35), 0, 3.0, False)
</Action>
<Action>
EventGhost.AutoRepeat(0.0, 0.0, 0.01, 1.0)
</Action>
</Macro>
<Macro Name="Decrease Volume">
<Event Name="VolumeDown" />
<Event Name="Lirc.Sony_RM-V210_VCR_Code_8201:SonyVCR.Volume-" />
<Event Name="PS3.Button.Square" />
<Event Name="Keyboard.LCtrl+RAlt+P" />
<Action>
System.ChangeMasterVolumeBy(-0.5, 0)
</Action>
<Action>
EventGhost.ShowOSD(u'Volume {int(round(eg.result))}%', u'0;-32;0;0;0;700;0;0;0;0;3;2;1;34;BenguiatGot Bk BT', (0, 255, 0), (0, 0, 0), 5, (0, 35), 0, 3.0, False)
</Action>
<Action>
EventGhost.AutoRepeat(0.0, 0.0, 0.01, 0.0)
</Action>
</Macro>
</Folder>
Im into windows 7 x64 latest EventGhost
Thanks in advance