Using OSD and display current volume level [SOLVED]

If you have a question or need help, this is the place to be.

Re: Using OSD and display current volume level

Postby InterlinkKnight » Wed Sep 29, 2010 3:32 am

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
User avatar
InterlinkKnight
 
Posts: 28
Joined: Mon Sep 13, 2010 1:17 am

Re: Using OSD and display current volume level

Postby ducati67 » Fri Dec 10, 2010 8:47 pm

It seems that the coding for the OSD do not work in windows 7. It always displays "Mute On", it doesnt change.
ducati67
 
Posts: 11
Joined: Fri Dec 10, 2010 8:44 pm

Re: Using OSD and display current volume level

Postby InterlinkKnight » Fri Dec 10, 2010 10:01 pm

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?
User avatar
InterlinkKnight
 
Posts: 28
Joined: Mon Sep 13, 2010 1:17 am

Re: Using OSD and display current volume level

Postby ducati67 » Sat Dec 11, 2010 2:20 am

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?
ducati67
 
Posts: 11
Joined: Fri Dec 10, 2010 8:44 pm

Re: Using OSD and display current volume level

Postby InterlinkKnight » Wed Dec 15, 2010 3:49 am

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...
User avatar
InterlinkKnight
 
Posts: 28
Joined: Mon Sep 13, 2010 1:17 am

Re: Using OSD and display current volume level

Postby jonib » Thu Dec 16, 2010 4:07 pm

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
ShowVol.png (11.89 KiB) Viewed 2370 times

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
jonib
Plugin Developer
 
Posts: 724
Joined: Thu Mar 26, 2009 9:33 pm

Re: Using OSD and display current volume level

Postby InterlinkKnight » Fri Dec 17, 2010 3:10 am

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.
User avatar
InterlinkKnight
 
Posts: 28
Joined: Mon Sep 13, 2010 1:17 am

Re: Using OSD and display current volume level

Postby jonib » Fri Dec 17, 2010 3:17 am

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
jonib
Plugin Developer
 
Posts: 724
Joined: Thu Mar 26, 2009 9:33 pm

Re: Using OSD and display current volume level

Postby ducati67 » Fri Dec 17, 2010 5:34 pm

Thanks. Works great in Win 7.
ducati67
 
Posts: 11
Joined: Fri Dec 10, 2010 8:44 pm

Re: Using OSD and display current volume level

Postby jonib » Sat Dec 18, 2010 1:56 am

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
jonib
Plugin Developer
 
Posts: 724
Joined: Thu Mar 26, 2009 9:33 pm

Re: Using OSD and display current volume level

Postby InterlinkKnight » Sat Dec 18, 2010 2:11 am

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
User avatar
InterlinkKnight
 
Posts: 28
Joined: Mon Sep 13, 2010 1:17 am

Re: Using OSD and display current volume level

Postby olurz » Mon Aug 15, 2011 9:07 pm

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
olurz
 
Posts: 4
Joined: Mon Aug 15, 2011 7:40 pm

Re: Using OSD and display current volume level

Postby InterlinkKnight » Tue Aug 16, 2011 7:49 pm

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
User avatar
InterlinkKnight
 
Posts: 28
Joined: Mon Sep 13, 2010 1:17 am

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

Postby bskchaos » Sat Oct 01, 2011 1:20 pm

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 1768 times

It lacks precision :P

Mute OSD

Sound ON:
Code: Select all

muteoff.png
muteoff.png (2.29 KiB) Viewed 1768 times


Sound OFF
Code: Select all
Xr

muteon.png
muteon.png (2.5 KiB) Viewed 1768 times
bskchaos
 
Posts: 42
Joined: Tue Mar 25, 2008 3:04 pm

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

Postby InterlinkKnight » Sat Oct 01, 2011 5:01 pm

@bskchaos

Thanks, but the MUTE code doesn't work. What is wrong?
User avatar
InterlinkKnight
 
Posts: 28
Joined: Mon Sep 13, 2010 1:17 am

PreviousNext

Return to General Support

Who is online

Users browsing this forum: Bing [Bot] and 5 guests