Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual indicator of volume change #148

Open
cojoMan opened this issue Dec 23, 2021 · 1 comment · May be fixed by #149
Open

Visual indicator of volume change #148

cojoMan opened this issue Dec 23, 2021 · 1 comment · May be fixed by #149

Comments

@cojoMan
Copy link

cojoMan commented Dec 23, 2021

When I use my keyboard to change the volume I get an indicator on the current screen or near the sound icon with the volume level. Is there any way to trigger that when alt+scroll is set to change the volume, or something similar ?
I thought that appears automatically on volume change, seems like it's not.
Thanks.

@RamonUnch
Copy link

It would be actually quite simple, AltDrag could simply generate a the multimedia key sequence to increase/decrease the volume and the visual indicator would appear.
I am implementing this in my fork: RamonUnch/AltSnap#155

RamonUnch added a commit to RamonUnch/altdrag-1 that referenced this issue Jan 29, 2022
1) Create the Sned_Key(vkey) function to simply sned key up/down event to the system.
2) Simplify greatly the Volume action by using Sned_Key(VK_VOLUME_UP/VK_VOLUME_DOWN)
3) remove Windows Vista+check because the VK_VOLUME_* trick works also on Windows XP
4) Remove the CoInitializeEx() call because it is not needed anymore.
This removes any dependencies to `OLE32.DLL`...

Fixes: stefansundin#148
@RamonUnch RamonUnch linked a pull request Jan 29, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants