mIRC Home    About    Download    Register    News    Help

Print Thread
Sound scripting #81474 01/05/04 05:39 AM
Joined: May 2004
Posts: 2
H
Hdaen Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
H
Joined: May 2004
Posts: 2
I used to have a script that when you typed /play , you would get a popup dialog with your sounds/music and you could point and click to have it play in mIRC... almost like in MSChat with the megaphone button, and you could type a message after selecting your music file. If anyone could help me in writing this script I would be greatful.

Re: Sound scripting #81475 01/05/04 08:14 AM
Joined: Apr 2004
Posts: 9
S
slartibartfast Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2004
Posts: 9
I'd suggest another command then /play cause /play is a mIRC command alreaddy.

Anyways ... you want others in the channel to play the sound if they have it ?

If yes, the command is
Code:
/sound #CHANNEL "filename" message


Filename can be anything mirc can play, wav mp3.
If a user sees this sound request (and have it ON) and have the correct file in their SOUND directory (in mIRC) it will play for them aswell. (the "" if for any spaces in the file)

It will look something like ths....
Code:
/sound #CHANNEL "beat.wav" hums to the beat

* slartibartfast hums to the beat


So just call the /sound from an alias, it that is what you want.

Re: Sound scripting #81476 01/05/04 08:19 AM
Joined: May 2004
Posts: 2
H
Hdaen Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
H
Joined: May 2004
Posts: 2
I want to make a script that will call up a selection box (ie: File --- Open.. then you get a box to select the file you want to open) But I want it to open the mIRC Sound folder so I can select a sound file and have it play.

Re: Sound scripting #81477 01/05/04 10:49 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
alias soundplay sound $+(",$$sfile($wavedir),") $input(Type an action (optional),e)