Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 11, 2016, 07:53:24 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: IDEA: OnScreen Display for Mute Status  (Read 60655 times)

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
IDEA: OnScreen Display for Mute Status
« on: July 04, 2007, 06:27:16 PM »
Too many times I am interrupted and have to hit my mute button. Then I forget it's muted and wonder a little while later where my music went, or why I am not hearing alerts for incoming messages.

When I hit the mute button on my keyboard, there is an onscreen display, but it only lasts a second or 2:

mute.pngIDEA: OnScreen Display for Mute Status

What I would like is a utility that will show when the pc's volume is muted, only while it is muted, until it is not.

Whatever image or text is used, should show up well on both light & dark backgrounds.

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #1 on: July 04, 2007, 06:32:46 PM »
According to my poor AHK knowledge, i think it should be easily done with it. I can't give it a try right now cause i'm off to bed but i bet there are ahk experts here who will be able to do this in 5 minutes :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,435
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #2 on: July 04, 2007, 06:38:54 PM »
This is surely a good idea, and you could expand it to include something if your numlock or caps lock is on too.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #3 on: July 04, 2007, 09:11:32 PM »
i have something like that as a general script, i'll cut and paste the relevant part and make the display persistent.. :) i'll post in a short while..

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,435
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #4 on: July 04, 2007, 09:13:06 PM »
app, what is that fancy program you are using for your windows background -- are you sure it doesnt have the ability to show mute status?

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #5 on: July 04, 2007, 10:42:31 PM »
ok App, try this script and let me know if it works. btw, i didn't compile the script into an EXE since you already know the drill.. :)

OSD Mute
• monitor and display the system's Mute status.
• needs Autohotkey, if downloading the source (.ahk & .zip) files.

ws-OSD-Mute.png

New version: Vista-compatible
* OSD-mute-Vista.zip (27.04 kB - downloaded 657 times.)
* OSD-mute-Vista.exe (258.75 kB - downloaded 813 times.)

New version: v3
* OSD-mute-v3.zip (16.05 kB - downloaded 1396 times.)
* OSD-mute.exe (416.03 kB - downloaded 1642 times.)

'Lite' version
* OSD-mute.ahk (2.34 kB - downloaded 931 times.)
* OSD-mute.exe (197.35 kB - downloaded 992 times.)

Edit: added the compiled EXE.
Edit2: as per Nod5's suggestion, added code to remove flickering.
Edit3: added some minor updates.
Edit4: added option to change the positioning and the font properties of the OSD.
Edit5: two new options: notraymenu & noquitmenu in the INI file.
Edit6: Vista-compatibility plus new hotkey to toggle mute status (Win+m).
« Last Edit: July 05, 2009, 11:46:21 PM by lanux128 »

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #6 on: July 04, 2007, 10:54:58 PM »
app, what is that fancy program you are using for your windows background -- are you sure it doesnt have the ability to show mute status?

Those are Yahoo widgets. I haven't found one that will do what I want.

lanux: This is great! Just what I wanted.  :)
Thank you so much! (credits are on the way)

BigJim

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 178
  • I have seen the light!
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #7 on: July 05, 2007, 05:15:25 AM »
That looks really neat - and useful! Would you be willing to compile it for those of us  bozo's who don't know the drill?

Thanks
TruckerJim says "You can go down a hill too slow a thousand times. But too fast only once."

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #8 on: July 05, 2007, 09:26:15 AM »
BigJim: of course i can do that, will post it tomorrow, though.. :) now i'm heading to bed.. zzzzz

BigJim

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 178
  • I have seen the light!
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #9 on: July 05, 2007, 11:48:43 AM »
Thanks man! Snooze well and prosper. :P
TruckerJim says "You can go down a hill too slow a thousand times. But too fast only once."

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 858
    • View Profile
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #10 on: July 05, 2007, 01:50:37 PM »
Great script lanux128.

This can also be done without a script. Go to Sound and Audio Devices Properties > Volume > Device Volume: Place volume icon in the taskbar. The tray icon automatically changes when mute is on/off. For this to work the tray icon must be visible all the time so the script is more sophisticated.

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #11 on: July 05, 2007, 01:55:08 PM »
This can also be done without a script. Go to Sound and Audio Devices Properties > Volume > Device Volume: Place volume icon in the taskbar. The tray icon automatically changes when mute is on/off. For this to work the tray icon must be visible all the time so the script is more sophisticated.

I have the tray icon, but I keep my taskbar on autohide, so it's generally not visible. Even if it were visible, that icon is pretty small and the status easy to miss. This script makes it very obvious, like when you have your TV on mute.  :)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #12 on: July 05, 2007, 09:25:20 PM »
okay, i've uploaded the compiled EXE and btw, i suck at icons so those who are graphically-inclined feel free to add their own icons.. :)

Nod5: thanks for the tip, the systray icon is useful but WinXP always hides them and as App mentioned, it's easy to miss out.. :)

taichimaster

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 160
    • View Profile
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #13 on: July 06, 2007, 03:35:48 AM »
AWESOME script!!!!  Thanks!!

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 858
    • View Profile
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #14 on: July 08, 2007, 07:08:02 AM »
app103 & lanux128,
You can set some tray icons to always be shown (never autohidden). Right click Start > Taskbar tab > customize.. . Alternatively, Right click Start > Taskbar tab > untick Hide inactive icons for a more general solution.
But I agree with you that this neat script makes it much easier to see when mute is on.

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #15 on: July 08, 2007, 07:24:22 AM »
app103 & lanux128,
You can set some tray icons to always be shown (never autohidden). Right click Start > Taskbar tab > customize.. . Alternatively, Right click Start > Taskbar tab > untick Hide inactive icons for a more general solution.
But I agree with you that this neat script makes it much easier to see when mute is on.

I have all my icons showing...but I don't have my taskbar itself showing (that is what I have on autohide).

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 858
    • View Profile
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #16 on: July 08, 2007, 03:47:28 PM »
app103,
Ok I missed that earlier but I see now that's what you wrote.  :-[

lanux128,
a suggestion: the scripts flickers briefly due to the repeated "gui, destroy" & "gui, show". Add these lines (in red) to only destroy+rebuild the mute OSD text only if its not already present.

------------------
If CheckMute = On
If osd_is_on != 1
  {
  osd_is_on = 1
  Gui, Destroy ;
  Gui, Color, EEAA99
  Gui +AlwaysOnTop +ToolWindow -Caption +Lastfound
  WinSet, TransColor, EEAA99 105  ;105 - level of translucency (range: 0-255)
  Gui, Font, s30 Bold cYellow, Tahoma
  Gui, Add, Text,x3 y3 w175 h45 Center c000000 BackgroundTrans, Mute %CheckMute%
  Gui, Add,Text,x0 y0 w175 h45 Center cFFD300 BackgroundTrans, Mute %CheckMute%
  Gui,Show, NoActivate x70 y600 w175 h45 ; some crude positioning co-ordinates
  IfExist, %A_WinDir%\System32\sndvol32.exe
    Menu, tray, Icon, %A_WinDir%\System32\sndvol32.exe, 4 ; Mute icon
  Sleep 3000
  }
If CheckMute = Off
  {
  osd_is_on =
------------------
(is there some way to combine code block format with text coloring in forum posts?)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #17 on: July 09, 2007, 03:53:15 AM »
sorry hadn't noticed the flicker but thanks for the idea, Nod5.. :Thmbsup: i'll update the script soon. :)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #18 on: July 09, 2007, 10:40:15 PM »
ok, done.. :Thmbsup: hopefully no more ugly flickering.. :)

Grorgy

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 821
    • View Profile
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #19 on: July 09, 2007, 11:15:35 PM »
 :Thmbsup: works even better  :)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #20 on: September 04, 2007, 10:03:31 PM »
some minor feature updates:
• allow mouse-clicks to pass through the Gui
• stop Win+D from minimizing the Gui
• tray icon to emulate normal tray volume icon (now you can turn off the default one)

OSD-mute-turn-off-1.png

get the latest update <a href="http://www.donationc...94.msg67042#msg67042">here</a>. also use Win+q to exit the program.. :)


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,435
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #21 on: September 05, 2007, 06:11:01 PM »
lanux i think it's time to make a web page for your utils!

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #22 on: September 05, 2007, 07:34:59 PM »
but mouser, i've only made a handful of AHK scripts.. (lanux128 being ultra-modest) 8)

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #23 on: September 05, 2007, 08:16:44 PM »
Lanux> well, they work well and they're useful, so a small web page with all of them would be convenient. I'm thinking of making one myself (especially because i now use dcuhelper and i had to provide an url - i don't want it to be an empty space)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,435
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: OnScreen Display for Mute Status
« Reply #24 on: September 05, 2007, 08:29:03 PM »
im very very happy to create web space for dc members with freeware and/or donationware.
something like http://NAME.dcmembers.com or http://NAME.dcisv.com
message me for help.  :up: