igmeou Posted March 14, 2005 Share Posted March 14, 2005 Hi, Is there a way for me to play sound continously using Soundplay or how will I detect when a song is finish playing? Anyone any clue? [font="Arial"]Thanks[/font]If @error = me Then $sorry Else Do $clarifyMe Until $meClear EndIF MsgBox(0,"Special Message!","Special Thanks to " & $allHadReplied,$Forever) Link to comment Share on other sites More sharing options...
Blue_Drache Posted March 14, 2005 Share Posted March 14, 2005 Hi,Is there a way for me to play sound continously using Soundplay or how will I detect when a song is finish playing?Anyone any clue? <{POST_SNAPBACK}>DLLCall? Probably something in kernel32.dll (just guessing here) Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
zeroZshadow Posted March 14, 2005 Share Posted March 14, 2005 (edited) not the kernel32.dll i'll look it up for ya. do u use mcicommands to play the sound?? there allot better EDIT: MM... i haven't really found a way to see this, but you might just use the check speed command. if its higher then 0 then it plays Edited March 14, 2005 by zeroZshadow *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
igmeou Posted March 15, 2005 Author Share Posted March 15, 2005 MM... i haven't really found a way to see this, but you might just use the check speed command.if its higher then 0 then it playsYa, I have downloaded your media player source but there is no functions/example that allows me to check the speed. Do you mind guiding me where and how to get the reference for the mcisendstring functions for winmm and how you actually but it into use with autoit.Func mciSendString($string) Local $ret $ret = DllCall("winmm.dll","int","mciSendString","str",$string,"str","","int",65534,"hwnd",0) If Not @error Then Return $ret[2] EndFunc Func _Exit() mciSendString("Close myvideo") Exit EndFuncI suppose that the $string you send to DLLCall is the command for your media player but what I don't understand is that how that command string being pass to the mcisendstring function and get something to be done and what are the options of command strings available for us to use. [font="Arial"]Thanks[/font]If @error = me Then $sorry Else Do $clarifyMe Until $meClear EndIF MsgBox(0,"Special Message!","Special Thanks to " & $allHadReplied,$Forever) Link to comment Share on other sites More sharing options...
zeroZshadow Posted March 15, 2005 Share Posted March 15, 2005 http://msdn.microsoft.com/library/default....and_strings.asphere are ALL the commands you can send.if you still don't get it pm me, mail me, or msn me EXAMPLE:mciSendString(status mymusic forward)"Returns TRUE if the play direction is forward or if the device is not playing." *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now