Jump to content

Msgbox - disable sound


pseakins
 Share

Recommended Posts

How can I prevent MsgBox() from making my speaker go "bonk"? There doesn't appear to be a silent option. Changing the Windoze systems sounds is not an option, what if I develop code for someone else's system - I don't want my application making annoying system sounds when all I want to do is pop up a message box - silently.

Phil Seakins

Link to comment
Share on other sites

How can I prevent MsgBox() from making my speaker go "bonk"? There doesn't appear to be a silent option. Changing the Windoze systems sounds is not an option, what if I develop code for someone else's system - I don't want my application making annoying system sounds when all I want to do is pop up a message box - silently.

You might also want to check out my MsgBoxSound UDF http://www.autoitscript.com/forum/index.ph...st&p=387023

It does change the Windows Sound, but then changes it back right after the message box is cleared. You can set custom sounds or no sounds.

You could also always make a custom GUI to use instead of the standard msgbox function.

There's a function like that included here: http://www.autoitscript.com/forum/index.ph...st&p=111189

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...