Sign in to follow this  
Followers 0

Disable Sound

2 posts in this topic

#1 ·  Posted (edited)

I have a script that disables the desktop/taskbar

opt('WinTitleMatchMode', 4)

WinSetState('classname=Shell_TrayWnd', '', @SW_DISABLE);Disabling Taskbar/Tray
WinSetState('classname=Progman', '', @SW_DISABLE);Disabling Desktop

But when I click the desktop while it's locked, it makes that "bing" sound...-,-

Is there any way to have that sound automatically disabled?

Also, if the mouse were disabled, would it still make the sound if I tried to click?

Edited by AreS

Share this post

Link to post
Share on other sites

#2 ·  Posted (edited)

Could use.

SoundSetWaveVolume (0)

Edit: Actaully instead of just setting the volume to zero no matter what you could use.

While 1
   $msg = GUIGetMsg()
      SoundSetWaveVolume (0)
      SoundSetWaveVolume (100)

I'm not sure if it would turn the sound down before the sound is played or not.

Edited by Burrup

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0