Jump to content
Sign in to follow this  
AreS

Disable Sound

Recommended Posts

AreS

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
buzz44

Could use.

SoundSetWaveVolume (0)

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

While 1
   $msg = GUIGetMsg()
   If $msg = $GUI_EVENT_PRIMARYDOWN Then 
      SoundSetWaveVolume (0)
   Else
      SoundSetWaveVolume (100)
   EndIf
Wend

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

Edited by Burrup

qq

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  

×