Hey all, I'm new to this AHK scripting thing.. but here is what I am trying to do.
I currently have a script to mute/unmute and change volume to a specific application if it is found within volume mixer, which works great, but i want to read the current state of the mute so i can put an OSD overlay whilst I'm gaming.
For the current volume level, I parse "SendMessage, 0x0400,,,msctls_trackbar%msctls_trackbarNumber%, ahk_class #32770" which works great, as it returns a number between 0 and 100. 100 being full volume on the trackbar/slider.
As for the state of whether the application is muted or not... I have absolutely no idea how to do it... I've spent hours and hours researching, testing, failing, repeat.
What I need is to be able to get/read the current state of the mute button (at the bottom of the volume mixer, underneath the trackbar/slider) for a specific application. I can set mute, set unmute no problem, but actually reading the mute state is not happening for me. I press NumpadMult to mute/unmute the specific application, but I want to read the state for use with an OSD.
I hope that makes sense in what I'm trying to achieve, thanks in advance.