Skip to content
General Chat Talk

Start Up Music

A TG007 community discussion started by Johnson.

Discussion 11 posts
Page 1 of 1
Open
Topic #9223 · 11 published posts · 2,399 views
:lmaojump: 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 :D

on *:START: {
  splay start.wav
}

Replace start.wav with what file you want to play when the scripts opened.

:lmaojump: Thanks X-Fusion for that code .. I will go find myself a snippet of music and try that :D
:lmaojump: put that code into remote .. got me a snippet of music and changed the name to start .. put it into the sound folder .. :oops: nothing happened ? what am I doing wrong :D

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 Nov 23, 2007 11:27 PM by takaharu_

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.

Tukero Blog

Manager

:lmaojump: got it working :D

 

 

:oops: 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 :D

 

 

takaharu_ its has X-Fusion sed change the spray start.wav to the name of the music snippet :D I would like to say thankyou to you also for your help :D

 

 

We learn something new every day

 

 

 

 

 

Edited Nov 24, 2007 12:24 PM by Lynx

:oops: 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 :D

Edited Nov 27, 2007 8:22 PM by Lynx

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

:lmaojump: 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 :D

 

splay -p start.mp3

No problem.