| View previous topic :: View next topic |
| Author |
Message |
BoBo Guest
|
Posted: Wed Oct 27, 2004 6:19 pm Post subject: SoundPlay ... |
|
|
Any known issue with SoundPlay ?
If I run a downloaded sound file it will be executed with its assigned MS mediaplayer:
If I use AHK's SoundPlay command there's just a short "click" and that's it.
| Code: | | SoundPlay, bumblebee.wav |
W2K/Sp4/AHK1.0.22 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
Posted: Wed Oct 27, 2004 6:37 pm Post subject: |
|
|
Because if the script is terminated, any currently-playing file that it started will stop: Use this if your script terminates right afterward:
SoundPlay, bumblebee.wav, wait |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Wed Oct 27, 2004 8:34 pm Post subject: |
|
|
When I've checked the syntax I've interpreted the 1 at the wait parameters description as a timing (secs) value. Heck, should take some more secs to read the man page.
Thx, Chris.
 |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Wed May 04, 2005 8:40 pm Post subject: |
|
|
From the help file "If a file is playing and the current script or a different script plays a second file, the first file will be stopped so that the second one can play."
I got two sound to play at the same time using 2 differnt scripts. One was compiled, the other was not. I just think this should be documented _________________ my lame sig  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
Posted: Thu May 05, 2005 10:43 am Post subject: |
|
|
You're right. It also works even if neither of the scripts is compiled. Maybe the sound stopping issue happens only on Win9x. I've changed the documentation to:
If a file is playing and the current script plays a second file, the first file will be stopped so that the second one can play. On some systems, certain file types might stop playing even when an entirely separate script plays a new file.
Thanks. |
|
| Back to top |
|
 |
|