on *:START: {
splay start.wav
}
Replace start.wav with what file you want to play when the scripts opened.
You don't have to use exactly "start.wav" but you do need to make sure that the directory, filename and file extension are correct. To make things simple, use //run $mircdir and place the file there then use on *:start:{ splay $mircdirstart.wav }
As for what you said, did you use splay sounds/start.wav or just copy what X put? If you did the latter, you'll need to change the code.
I don't get paid to know the answer, therefore I'm far more likely to give you a straight and honest answer.
If you use mIRC 6.3x, use this code:
on *:start:{
splay $qt($nofile($mircexe) $+ sounds\start.wav)
}
For test purposes, type this code on the inputbox of mIRC:
//echo -s $isfile($qt($nofile($mircexe) $+ sounds\start.wav))
If you see $true, all is ok, but, if you see $false then the filename isn't correct, check it!
Well, if you see an error message, post it here.
Manager
got it working ![]()
Tukero .. im using mirc 6.21 but thanks for the reply and code and if I upgrade to mirc 6.3x I will keep that in mind ![]()
takaharu_ its has X-Fusion sed change the spray start.wav to the name of the music snippet
I would like to say thankyou to you also for your help ![]()
We learn something new every day
ok I need somemore help on this topic .. iv got a snippet of music that is wav as in the code X-Fusion gave me and it works.
on *:START: {
splay start.wav
}
Now I have found some better music but its MP3 Format Sound but it didnt work with that code .. so what I tried was I modifidy the code to this
on *:START: {
splay start.MP3 Format Sound
}
The reason I did this was that it wouldnt play with the spray start.wav .. anyone tell me what im doing wrong please ![]()
You didnt include the words FORMAT SOUND with it, did you? if you did, remove it, otherwise
splay -p start.mp3
The -p identifier tells mIRC that your trying to play an MP3 file instead of a standard wav. If that still doesn't work, try
splay -pq start.mp3
X-Fusion mate thankyou very much for that help .. the code worked great .. again I would like to thankyou for your reply and your help ![]()
splay -p start.mp3
No problem.
Sign in to reply or start a new topic where your account has permission.