Guest Lynx Posted November 23, 2007 Report Share Posted November 23, 2007 how can I get some music into my script .. so when its opened it plays music on start up .. iv seen it in another scripts .. Two that I remember are i.e Ozzys Good Old Kenobi and Rumbaars Hybrid Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted November 23, 2007 Report Share Posted November 23, 2007 on *:START: { splay start.wav } Replace start.wav with what file you want to play when the scripts opened. Link to comment Share on other sites More sharing options...
Guest Lynx Posted November 23, 2007 Report Share Posted November 23, 2007 Thanks X-Fusion for that code .. I will go find myself a snippet of music and try that Link to comment Share on other sites More sharing options...
Guest Lynx Posted November 23, 2007 Report Share Posted November 23, 2007 put that code into remote .. got me a snippet of music and changed the name to start .. put it into the sound folder .. nothing happened ? what am I doing wrong Link to comment Share on other sites More sharing options...
takaharu_ Posted November 23, 2007 Report Share Posted November 23, 2007 (edited) 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. Edited November 23, 2007 by takaharu_ Link to comment Share on other sites More sharing options...
Tukero Posted November 24, 2007 Report Share Posted November 24, 2007 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. Link to comment Share on other sites More sharing options...
Guest Lynx Posted November 24, 2007 Report Share Posted November 24, 2007 (edited) 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 Edited November 24, 2007 by Lynx Link to comment Share on other sites More sharing options...
Guest Lynx Posted November 27, 2007 Report Share Posted November 27, 2007 (edited) 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 Edited November 27, 2007 by Lynx Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted November 27, 2007 Report Share Posted November 27, 2007 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 Link to comment Share on other sites More sharing options...
Guest Lynx Posted November 27, 2007 Report Share Posted November 27, 2007 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 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