Srecko Posted August 5, 2018 Share Posted August 5, 2018 Hi, I have a problem with MsgBox sounds. No sound is heard when a message appears regardless of which flag I use. I just installed the latest version of autoit and SciTE, but the problem still exists. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 5, 2018 Moderators Share Posted August 5, 2018 Srecko, Welcome to the AutoIt forums. There is nothing in the AutoIt function to affect/change the sound - have you checked your Windows sound settings? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Srecko Posted August 5, 2018 Author Share Posted August 5, 2018 M23, Yes, I checked everything. In the volume mixer does not appear autoit. Link to comment Share on other sites More sharing options...
benched42 Posted August 7, 2018 Share Posted August 7, 2018 MsgBox does not affect sound in one way or another. If you want a sound to be played, when you call MsgBox you will have to make a separate sound event. Who lied and told you life would EVER be fair? Link to comment Share on other sites More sharing options...
AutoBert Posted August 7, 2018 Share Posted August 7, 2018 (edited) 1 hour ago, benched42 said: MsgBox does not affect sound in one way or another. If you want a sound to be played, when you call MsgBox you will have to make a separate sound event. Oh, but why get i some sound testing this example: #include <MsgBoxConstants.au3> Local $iTimeout = 10 ; Display a message box with a nested variable in its text. MsgBox($MB_SYSTEMMODAL + $MB_ICONWARNING, "Title", "This message box will timeout after " & $iTimeout & " seconds or select the OK button.", $iTimeout) Edited August 7, 2018 by AutoBert Link to comment Share on other sites More sharing options...
LisHawj Posted August 8, 2018 Share Posted August 8, 2018 (edited) 15 hours ago, AutoBert said: Oh, but why get i some sound testing this example: #include <MsgBoxConstants.au3> Local $iTimeout = 10 ; Display a message box with a nested variable in its text. MsgBox($MB_SYSTEMMODAL + $MB_ICONWARNING, "Title", "This message box will timeout after " & $iTimeout & " seconds or select the OK button.", $iTimeout) That is because you are calling $MB_ICONWARNING. Flag 48 produces a warning icon and plays the sound. Also take note that flag 16 and 64 also plays a sound. The other flags do not but you can combine the flags to produce the sound. See examples below. ; Script Start - Add your code below here MsgBox(65,"","Hello World!") ; Flag 1 (Ok and Cancel) + 64 (Information icon) MsgBox(20,"","Hello World!") ; Flag 4 (Yes and No) + 16(stop icon) Edited August 8, 2018 by LisHawj Code correction Link to comment Share on other sites More sharing options...
AutoBert Posted August 8, 2018 Share Posted August 8, 2018 4 hours ago, LisHawj said: That is because you are calling $MB_ICONWARNING. and which of these ways: 21 hours ago, benched42 said: MsgBox does not affect sound in one way or another. i used? I get sounds on all $MB_ICON* flags. Link to comment Share on other sites More sharing options...
LisHawj Posted August 8, 2018 Share Posted August 8, 2018 (edited) 30 minutes ago, AutoBert said: and which of these ways: i used? I get sounds on all $MB_ICON* flags. I apologize, but I am not sure I understand what is being asked here. Please clarify your question or statement. Edited August 8, 2018 by LisHawj Link to comment Share on other sites More sharing options...
Srecko Posted August 8, 2018 Author Share Posted August 8, 2018 I apologize to everyone, it's not a problem in the autoit. The problem is in my operating system. I tested on multiple computers and worked on everyone. Link to comment Share on other sites More sharing options...
AutoBert Posted August 9, 2018 Share Posted August 9, 2018 (edited) 12 hours ago, Srecko said: The problem is in my operating system. Then let us know, which system and build version. And can you confirm, that other winapps have same problem with MsgBox? Edited August 9, 2018 by AutoBert 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