pseakins Posted September 6, 2007 Share Posted September 6, 2007 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 More sharing options...
Gif Posted September 6, 2007 Share Posted September 6, 2007 either this:SoundSetWaveVolume(0) MsgBox(16, '', '') SoundSetWaveVolume(100) Link to comment Share on other sites More sharing options...
ResNullius Posted September 6, 2007 Share Posted September 6, 2007 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=387023It 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now