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.

Using OSD and display current volume level [SOLVED]

If you have a question or need help, this is the place to be.
User avatar
InterlinkKnight
Posts: 29
Joined: Mon Sep 13, 2010 1:17 am
Contact:

Re: Using OSD and display current volume level

Post by InterlinkKnight »

jonib wrote:Nice :D

You could put these instructions in your first post in this thread, so anybody searching would find them directly.

jonib
Done. Thanks again.

BTW here's the video tutorial I make showing how to configure EventGhost, including how to make display the current volume: http://www.youtube.com/watch?v=xnMzu1h1gxc
ducati67
Posts: 11
Joined: Fri Dec 10, 2010 8:44 pm

Re: Using OSD and display current volume level

Post by ducati67 »

It seems that the coding for the OSD do not work in windows 7. It always displays "Mute On", it doesnt change.
User avatar
InterlinkKnight
Posts: 29
Joined: Mon Sep 13, 2010 1:17 am
Contact:

Re: Using OSD and display current volume level

Post by InterlinkKnight »

ducati67 wrote:It seems that the coding for the OSD do not work in windows 7. It always displays "Mute On", it doesnt change.
Is a shame. Try another computer with Win7 to see if the problem is your computer or is really Win7.

At least the volume display works?
ducati67
Posts: 11
Joined: Fri Dec 10, 2010 8:44 pm

Re: Using OSD and display current volume level

Post by ducati67 »

InterlinkKnight wrote:
ducati67 wrote:It seems that the coding for the OSD do not work in windows 7. It always displays "Mute On", it doesnt change.
Is a shame. Try another computer with Win7 to see if the problem is your computer or is really Win7.

At least the volume display works?
No that doesnt work either, it always shows 100. I dont have any other Win7 machines.
Do you have any other codes that I may try out?
User avatar
InterlinkKnight
Posts: 29
Joined: Mon Sep 13, 2010 1:17 am
Contact:

Re: Using OSD and display current volume level

Post by InterlinkKnight »

ducati67 wrote:No that doesnt work either, it always shows 100. I dont have any other Win7 machines.
Do you have any other codes that I may try out?
Ok. I try eventghost with the OSD code for volume and mute in Windows 7 and you are right, it doesnÔÇÖt work. Is the same, the volume always shows 100% and the mute always shows ÔÇ£Mute ONÔÇØ. I donÔÇÖt know why.

I contact ÔÇ£jonibÔÇØ asking for help. He knows a lot about this and may help us. Wait for the response...
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Using OSD and display current volume level

Post by jonib »

Finally I had a chance to look into the Win7 problem.

The short answer is: Run EventGhost in Windows XP sp3 compatibility mode, and it should work in Windows 7. See below for an alternative.

I found an alternative way to get the master volume and mute status:

To show the current master volume: Create a macro, add Change Master Volume action (from System\Sound card) change it to 0.0% then add a ShowOSD action with Volume {int(round(eg.result))}%

To show the current Mute status: Create a macro, add "two" Toggle Mute actions (only one Toggle Mute action will change the toggle status) then add a ShowOSD action with Mute {("Off", "On")[eg.result]}

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
InterlinkKnight
Posts: 29
Joined: Mon Sep 13, 2010 1:17 am
Contact:

Re: Using OSD and display current volume level

Post by InterlinkKnight »

jonib wrote:Finally I had a chance to look into the Win7 problem.

The short answer is: Run EventGhost in Windows XP sp3 compatibility mode, and it should work in Windows 7. See below for an alternative.

I found an alternative way to get the master volume and mute status:

To show the current master volume: Create a macro, add Change Master Volume action (from System\Sound card) change it to 0.0% then add a ShowOSD action with Volume {int(round(eg.result))}%

To show the current Mute status: Create a macro, add "two" Toggle Mute actions (only one Toggle Mute action will change the toggle status) then add a ShowOSD action with Mute {("Off", "On")[eg.result]}
ShowVol.png
jonib
You are the best, jonib. It works on Windows 7, even without using the compatibility mode for Windows XP.

I will add this new code in my tutorial-post.

The only thing that I donÔÇÖt know is if it works on vista, and which code we most use. For the moment I canÔÇÖt test this on vista.

If someone can test these codes on windows vista, please report which code works. Is not for me, is for the users that use Vista.

Thanks.
Last edited by InterlinkKnight on Fri Dec 17, 2010 3:28 am, edited 1 time in total.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Using OSD and display current volume level

Post by jonib »

InterlinkKnight wrote:It works on Windows 7, even without using the compatibility mode for Windows XP.
Yes it's only the old code that needed the compatibility mode.
The only thing that I donÔÇÖt know is if it works on vista, and which code we most use. For the moment I canÔÇÖt test this on vista.
This should work in Vista too. I just happen to have a Vista installation too 8) , I can test tomorrow.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
ducati67
Posts: 11
Joined: Fri Dec 10, 2010 8:44 pm

Re: Using OSD and display current volume level

Post by ducati67 »

Thanks. Works great in Win 7.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Using OSD and display current volume level

Post by jonib »

InterlinkKnight, I think you can remove the Windows XP specific commands from your guide as the other ones should work in XP,Vista and 7.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
InterlinkKnight
Posts: 29
Joined: Mon Sep 13, 2010 1:17 am
Contact:

Re: Using OSD and display current volume level

Post by InterlinkKnight »

jonib wrote:InterlinkKnight, I think you can remove the Windows XP specific commands from your guide as the other ones should work in XP,Vista and 7.

jonib
You are right! The new codes works on Windows XP too. I will edit the tutorial giving the new codes only.

Thanks
olurz
Posts: 5
Joined: Mon Aug 15, 2011 7:40 pm

Re: Using OSD and display current volume level

Post by olurz »

Volume OSD bar.
Insert after "Change Master Volume" action "Show OSD". Paste in "Text to display" this code:

Code: Select all

Volume {'|'*int(round(eg.result))+'.'*(100-int(round(eg.result)))} {int(round(eg.result))}%
Attachments
volumeBar.jpg
User avatar
InterlinkKnight
Posts: 29
Joined: Mon Sep 13, 2010 1:17 am
Contact:

Re: Using OSD and display current volume level

Post by InterlinkKnight »

olurz wrote:Volume OSD bar.
Insert after "Change Master Volume" action "Show OSD". Paste in "Text to display" this code:

Code: Select all

Volume {'|'*int(round(eg.result))+'.'*(100-int(round(eg.result)))} {int(round(eg.result))}%
That is amazing. I will place that code in the first post.

Thank you
bskchaos
Experienced User
Posts: 56
Joined: Tue Mar 25, 2008 3:04 pm

Re: Using OSD and display current volume level [SOLVED]

Post by bskchaos »

I have been using a similar solution for years.

OSD Plugin option:
Font, Webdings
Enable Use skin

Volume Level OSD Code:

Code: Select all

{"c" *int(round(eg.result) * 0.20) + "g" *int(round(100-(eg.result)) * 0.20)}
vol.png
vol.png (1.4 KiB) Viewed 11634 times
It lacks precision :P

Mute OSD

Sound ON:

Code: Select all

X├░
muteoff.png
muteoff.png (2.29 KiB) Viewed 11634 times
Sound OFF

Code: Select all

Xr
muteon.png
muteon.png (2.5 KiB) Viewed 11634 times
User avatar
InterlinkKnight
Posts: 29
Joined: Mon Sep 13, 2010 1:17 am
Contact:

Re: Using OSD and display current volume level [SOLVED]

Post by InterlinkKnight »

@bskchaos

Thanks, but the MUTE code doesn't work. What is wrong?
Post Reply