mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 31
D
DiMTRX Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Sep 2003
Posts: 31
Is there a way to let mIRC play ever .wav or .mp3 file in a directory. I know there is a way to play separate files but can't seem to find a method to play them all smile

I know some people have mp3 scripts but i don't want to install a whole script if its able to do it with one or two simple commands.

Thanks in advance smile

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
UNTESTED
Code:
alias playall {
  set %dir $$1
  set %filetype $$2
  set %files $findfile($$1,$+(*.,$$2),0,1)
  set %file 1
  .splay $findfile($$1,$+(*.,$$2),%file,1)
}
on *:mp3end:{ nextfile }
on *:midiend:{ nextfile }
on *:wavend:{ nextfile }
alias -l nextfile {
  if %file <= %files {
    inc %file
    .splay $findfile(%dir,$+(*.,%filetype),%file,1)
  }
}


Usage: /playall <directory> <filetype>



Link Copied to Clipboard