spiele über soundplay verschiedene .mp3s ab, damit der script sich nicht vor beendigung des abspielens beendet oder den nächsten titel startet, verwende ich ein sleep, da ich allerdings nicht für jeden titel ein spezielles sleep mit der spiellänge des titels machen möchte (zu aufwändig) suche ich eine möglichkeit die spiellänge einer .mp3 auszulesen...google hat noch nicht wirklich geholfen...
an. Außerdem kansnt du ja bei _soundplay/soundplay das Parameter setzen
PHP Code:
SoundPlay ( "filename" [, wait] )
wait [optional] This flag determines if the script should wait for the sound to finish before continuing: 1 = wait until sound has finished 0 = continue script while sound is playing (default)
an. Außerdem kansnt du ja bei _soundplay/soundplay das Parameter setzen
PHP Code:
SoundPlay ( "filename" [, wait] )
wait [optional] This flag determines if the script should wait for the sound to finish before continuing: 1 = wait until sound has finished 0 = continue script while sound is playing (default)
Relativ einfach, wenn man weiß, wie man mit der AutoIT Hilfe umzugehen hat
Code:
#RequireAdmin
#include <Sound.au3>
Local $hFile = "Song.mp3"
_SoundOpen ($hFile)
if not @error Then
Local $hFileLenght = _SoundLength($hFile,1)
if not @error Then
_SoundPlay ($hFile, 1)
EndIf
EndIf
Relativ einfach, wenn man weiß, wie man mit der AutoIT Hilfe umzugehen hat
Code:
#RequireAdmin
#include <Sound.au3>
Local $hFile = "Song.mp3"
_SoundOpen ($hFile)
if not @error Then
Local $hFileLenght = _SoundLength($hFile,1)
if not @error Then
_SoundPlay ($hFile, 1)
EndIf
EndIf
Ja, so hast du ihm aber alles vorgesagt. Ich hab ihm nur gesagt welchen Befehl man benutzt. Da ist doch der Lerneffekt viel höher.