PsaltyDS Posted January 4, 2006 Share Posted January 4, 2006 How do I turn off the 'Ding' when a button is clicked in a message box? Dim $Msg[3] $Msg[0] = "Pulled your hair out yet?" $Msg[1] = "No?" $Msg[2] = "Let's try again..." While(1) For $n = 0 to 2 MsgBox(0, "Ding!", $Msg[$n]) Next WEnd My sanity depends on YOUR answer! Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
seandisanti Posted January 4, 2006 Share Posted January 4, 2006 How do I turn off the 'Ding' when a button is clicked in a message box? Dim $Msg[3] $Msg[0] = "Pulled your hair out yet?" $Msg[1] = "No?" $Msg[2] = "Let's try again..." While(1) For $n = 0 to 2 MsgBox(0, "Ding!", $Msg[$n]) Next WEnd My sanity depends on YOUR answer! actually that's a windows setting. if you go to control panel, sounds and volume (i think), the second tab should have sounds for system events, you can unassign any sound you like. Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 4, 2006 Author Share Posted January 4, 2006 actually that's a windows setting. if you go to control panel, sounds and volume (i think), the second tab should have sounds for system events, you can unassign any sound you like.I understood that, and I guess unplugging the speakers would work too. But more specificaly, what kind of event is an AutoIT message button click that calls for a bell? The bell doesn't sound when the message pops up, but when the OK is clicked. Other Windows programs that pop up message boxes don't sound a bell when I click OK, just AutoIT script message boxes. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
GaryFrost Posted January 4, 2006 Share Posted January 4, 2006 It makes sound when the window pops up, not on the ok, put a sleep after the msgbox to better illistrate this. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 4, 2006 Share Posted January 4, 2006 for no sound, just make your own message box created using the gui functions. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 4, 2006 Author Share Posted January 4, 2006 It makes sound when the window pops up, not on the ok, put a sleep after the msgbox to better illistrate this. [sheepish embarassment at stupid mistake] :"> Oops. You were right. The next box popped up so fast I thought I was getting a bell on clicking OK. Somebody else also helpfully pointed out that you don't get a bell if you construct your own GUI. Thanks. [/sheepish embarassment] Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
seandisanti Posted January 4, 2006 Share Posted January 4, 2006 [sheepish embarassment at stupid mistake] :"> Oops. You were right. The next box popped up so fast I thought I was getting a bell on clicking OK. Somebody else also helpfully pointed out that you don't get a bell if you construct your own GUI. Thanks. [/sheepish embarassment]no worries man, it happens to everyone. Link to comment Share on other sites More sharing options...
Bert Posted January 4, 2006 Share Posted January 4, 2006 I remember seeing this somewhere, but I think you can set the volume via a registry setting. with saying that, you could make a registry change right before the message, and after the window pops up, you could then do a winwaitactive, and turn the volume back on. That would fix it. The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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