Modify

Opened 14 years ago

Closed 14 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 Changed 14 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

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.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.