Modify

Opened 15 years ago

Closed 15 years ago

#1928 closed Bug (No Bug)

SoundPlay does not work after FileOpenDialog

Reported by: jlmxp@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: Cc:

Description

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

Attachments (0)

Change History (1)

comment:1 by Valik, 15 years ago

Resolution: No Bug
Status: newclosed

Congratulations on not reading the documentation for FileOpenDialog(), not searching the forum, not searching the issue tracker and not the least of all, not writing good good that avoids this "problem" in the first place.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.