Hi
I noticed (new feature?) that EG gets volume events when I change the volume via my keyboard hardware keys.
Is there a way to get the current master volume in order to show it as OSD in an action triggered by those events? that'd be cool.
Thanks.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
using event system.volumeup or system.volumedown for OSD
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: using event system.volumeup or system.volumedown for OSD
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1103">
<Macro Name="Change Master Volume: 0.0 %" Expanded="True">
<Action>
System.ChangeMasterVolumeBy(0.0)
</Action>
<Action>
EventGhost.ShowOSD(u'Volume: {int(eg.result)} %', None, (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0)
</Action>
</Macro>
</EventGhost>Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Re: using event system.volumeup or system.volumedown for OSD
I tried that and it didn't work (or at least it introduced another problem):
with this action, hitting the volume up or down always displays the same value, and the volume doesn't change anymore.
I might add I'm using Vista, maybe it's related.
with this action, hitting the volume up or down always displays the same value, and the volume doesn't change anymore.
I might add I'm using Vista, maybe it's related.
Re: using event system.volumeup or system.volumedown for OSD
Actually, I figured something else; it's not the action of setting the volume with a 0% change, it's the fact the Keyboard.VolumeDown & Keyboard.VolumeUp are assigned to this action that prevents the volume to be set anymore.
How come? the message is trapped by EventGhost and not forwarded to the system after that?
How come? the message is trapped by EventGhost and not forwarded to the system after that?
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
Re: using event system.volumeup or system.volumedown for OSD
EG blocks every key to the system, that is currently actively assigned to a macro. Otherwise remapping of keys won't work. The solution is quite simple: change the volume with EG if you trap the keys in EG.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Re: using event system.volumeup or system.volumedown for OSD
I see. Trouble is in my case I'm using the Logitech Edge keyboard, which has a tactile zone for volume setting, and I believe its "jumps" in volume level depends on how fast I slide my finger up or down on it.
But I'll try. Either I can live without the OSD or I can live with a fixed step up/down volume setting, it's no big deal.
But I'll try. Either I can live without the OSD or I can live with a fixed step up/down volume setting, it's no big deal.