mIRC Home    About    Download    Register    News    Help

Print Thread
#35743 11/07/03 06:24 PM
Joined: Jan 2003
Posts: 41
T
Thedude Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
Use something like /splay <filename> StartSound
Now, when the song is finished, it triggers
on *:endofsong:*:{ }
Then the user can use this
on *:endofsong:StartSound:{ echo The start song is now finished }

#35744 11/07/03 06:33 PM
Joined: Dec 2002
Posts: 843
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
Forgive me for asking the obvious - but won't you know that a song has finished due to the fact that you can't hear it any more? If I'm misunderstanding you here, my apologies. shocked


Never compare yourself to others - they're more screwed up than you think.
#35745 11/07/03 06:35 PM
Joined: Jan 2003
Posts: 41
T
Thedude Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
Hehe, i ment for a script to understand that its finished

#35746 11/07/03 06:40 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on *:MIDIEND
on *:WAVEND
on *:MP3END
these already exist.


new username: tidy_trax
#35747 11/07/03 06:44 PM
Joined: Jan 2003
Posts: 41
T
Thedude Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
Yeah but so you can know exacly what song that's finished..

If its the song from the mp3 player or the join-sound when you join a channel..

Lets say i'm playing a mp3, and then join a channel. When i join that channel another mp3 is played. Then it triggers the on mp3end, and the mp3song from the mp3player gets stopped and a new one starts.

#35748 11/07/03 06:50 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
just: whenever u use splay
.set %song yoursong
on *:MP3END %song has finished


new username: tidy_trax
#35749 11/07/03 07:42 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
No need to set a variable like that, $filename is valid in an ON MP3END. If he wants the title of the song, he can use $sound($filename).title

#35750 11/07/03 07:49 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i didnt know that thanx grin


new username: tidy_trax
#35751 11/07/03 07:53 PM
Joined: Jan 2003
Posts: 41
T
Thedude Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
well.. when the on *:endofsong:*:{ } you can check if its the start sound, the mp3 player, the "you've got mail"-sound or some other sound so it doesn't mix with the mp3 player.

Therefore, i think it would be easier with an implemented on endofsong

#35752 11/07/03 07:56 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
How does mIRC know what the difference between a simple wave file is and what a song is? There is no way to tell.

#35753 11/07/03 07:58 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
the name of the file?


new username: tidy_trax
#35754 11/07/03 08:01 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
well yeah _he_ can test like that, but I mean there couldn't be an ON ENDOFSONG that would allow mIRC to know whether it was a song or just a sound. Meaning, from what he is saying, ON ENDOFSONG would trigger for:
/splay someband-somesong.mp3
but not for:
/splay beep.wav

#35755 11/07/03 08:03 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
o i c, yeah thats true, also i dont see why he would need an on endofsong, when all the sound files that can be used in mirc without the use of dll's already have an on *:END


new username: tidy_trax
#35756 13/07/03 03:47 PM
Joined: Jan 2003
Posts: 41
T
Thedude Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
on *:endofsong:mp3player:{ playnexsong }
on *:endofsong:startsound:{ echo -s Welcome to my script }

It does trigger when a song or sound mIRC is playing stops, and if the song or sound is "marked" when the song/sound starts to play (/splay filename.wav startsound), i can see if that is the startsound or if its the mp3player.

Last edited by Thedude; 13/07/03 03:49 PM.
#35757 13/07/03 03:50 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Ok then set a variable to signal that it is a song. Making an event for that seems stupid. Use a variable and signals.


Link Copied to Clipboard