Jump to content

Disable Sound


Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...