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.

Volume OSD in Vista

If you have a question or need help, this is the place to be.
Post Reply
Tyborg
Posts: 26
Joined: Wed Sep 24, 2008 3:23 am

Volume OSD in Vista

Post by Tyborg »

when I run this python command in vista and report the result using the OSD it always gives me 100% regardless of what the actual system volume is.

Code: Select all

eg.WinApi.SoundMixer.GetMasterVolume()
I read some other threads on the forum that suggest the vista support for this plugin could be improved. Am I doing something wrong or is there another way to do this in vista.

Thanks

I should add some system info.

EG 0.3.6.1484
Vista Home Premium and Vista Ultimate pre SP1 on both
No A/V or software firewall
Last edited by Tyborg on Sat Jan 17, 2009 10:26 pm, edited 1 time in total.
Tyborg
Posts: 26
Joined: Wed Sep 24, 2008 3:23 am

Re: Soundmixer in Vista

Post by Tyborg »

Bump... Any options here or am I just out of luck for now with vista and this function.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Soundmixer in Vista

Post by Bitmonster »

Use:

Code: Select all

eg.plugins.System.ChangeMasterVolumeBy(0.0, 0)
or simply a "Change Master Volume: 0.00 %" action. It will return the current value.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Tyborg
Posts: 26
Joined: Wed Sep 24, 2008 3:23 am

Volume OSD in Vista

Post by Tyborg »

Thanks Bitmonster! That works perfect. Now searching the forum again I find the answer posted in a couple places. Just laziness I guess. While I was waiting I created a transparent Volume OSD in case anybody else wants to use it. It's just an exe that I run at startup and it can be exited from the system tray. It uses the Vista progress bar to emulate the current volume and mute status. Its semitransparent and will show at the bottom middle of your screen.

To call up the OSD you have to send Ctrl+F22 and it will display for a couple seconds. So I basically just added a the Ctrl-F22 keystroke emulation in EG after my volume changes.
Attachments
Volume OSD.zip
(205.09 KiB) Downloaded 335 times
User avatar
zian
Site Admin
Posts: 569
Joined: Wed Jun 24, 2009 3:54 pm

Re: Volume Bar OSD in Vista (& XP?)

Post by zian »

Tyborg wrote:It uses the Vista progress bar to emulate the current volume and mute status. Its semitransparent and will show at the bottom middle of your screen.

To call up the OSD you have to send Ctrl+F22 and it will display for a couple seconds. So I basically just added a the Ctrl-F22 keystroke emulation in EG after my volume changes.
Nice Tyborg,
Just what I have been looking for.
Now the great big question...Can it be made to work in XP? Right now it'll pop up On Screen in XP when I use EG & Ctrl-F22 keystroke but it will only show 100% on bar. It's like it isn't connected to the system and doesn't know what my volume level is.

Any help would be thanked.
I'll thank ya again anyways...Thanks.
eventghost.net
Be there or be square.
Post Reply