mIRC Homepage
Posted By: Hdaen Sound scripting - 01/05/04 05:39 AM
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.
Posted By: slartibartfast Re: Sound scripting - 01/05/04 08:14 AM
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.
Posted By: Hdaen Re: Sound scripting - 01/05/04 08:19 AM
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.
Posted By: Iori Re: Sound scripting - 01/05/04 10:49 AM
alias soundplay sound $+(",$$sfile($wavedir),") $input(Type an action (optional),e)
© mIRC Discussion Forums