﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1928	SoundPlay does not work after FileOpenDialog	jlmxp@…		"This following script reproduces an issue I’ve just come across with the SoundPlay() function after using the FileOpenDialog() function and selecting any file.  After selecting any file, SoundPlay() no longer produces audio.  There is no error, just no sound.  If the File Open Dialog is cancelled, SoundPlay() works properly.

You'll need a wav file named chord.wav, or change the name in the script.


(((
SoundPlay(""chord.wav"", 1)
MsgBox(4096, ""SoundPlay Issue after FileOpenDialog"", ""You should have heard a sound!"")
$sFilename = FileOpenDialog(""Click any file"", ""c:\"", ""All Files(*.*)"", 1, """")
SoundPlay(""chord.wav"", 1)
ConsoleWrite(@LF & ""@Error="" & @error & @LF)
MsgBox(4096, ""SoundPlay Issue after FileOpenDialog"", _
   ""Did you heard a sound after selecting a file?"" & @LF & @LF & _
     ""I don't hear sound, from the script, after selecting any"" & @LF & _
     ""file using the FileOpenDialog function, and the only"" & @LF & _
     ""way I know to fix it is to restart the script.  If, "" & @LF & _
     ""instead of clicking the OPEN button, CANCEL is clicked"" & @LF & _
     ""sounds play okay."")
Exit
)))
"	Bug	closed		AutoIt	3.3.6.1	None	No Bug		
