mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 57
V
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2003
Posts: 57
Sorry i got it working know

but i got a different question so instead of making a new thread ill just use this.

OK is it possible to display a list of files on a menu on the chanel list
for example if i right click on channel and goto files then there would be a list of files from "C:/my shared folder/"

Last edited by very_confused; 16/06/03 10:40 PM.
#30317 16/06/03 10:36 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
the format of your on text is incorrect and don't use say in on text event use msg
for example
on *:TEXT:*<censored>*:#: { msg # you should swear here!!! GRRR }
that would msg when he say "<censored>" in a channel



#30318 16/06/03 11:20 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Code:
menu channel {
  My MP3s
  .Song - $iif($insong, $nopath($insong.fname), Nothing Playing) :/halt
  .Position - $mp3pos :/halt
  .-
  .Stop Playing: /splay stop
  .Pause Song: /splay pause
  .Resume Playing: /splay resume
  .-
  .$submenu($mp3list($$1))
}

alias mp3list {
  var %mp3dir = $shortfn([color:Red]C:\Music[/color])
  if ($$1 == begin) return -
  else if ($$1 == end) return -
  else if ($findfile(%mp3dir, *.mp3, $$1, 0))  return $nopath($ifmatch) : /splay -p $ifmatch
}

alias mp3pos {
  var %barlength = 15
  if ($insong) {
    var %length = $sound($insong.fname).length, %pos = $insong.pos, %left = $int($calc((%pos / %length) * %barlength))
    var %pos = $remove($replace($duration($calc($insong.pos / 1000)), mins, m, min, m, secs, s, sec, s), $chr(32))
    var %len = $remove($replace($duration($calc($sound($insong.fname).length / 1000)), mins, m, min, m, secs, s, sec, s), $chr(32))
    var %time = ( $+ %pos $+ / $+ %len $+ )
  }
  else var %left = 0
  return [[ $+ $str($chr(124), %left) $+ $str(-, $calc(%barlength - %left)) $+ ]] %time
}


-KingTomato
#30319 16/06/03 11:30 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
wtf?
i think he edited his msg smirk

#30320 16/06/03 11:31 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Quote:

Edited by very_confused (17/06/2003 00:40)



Really? You think he did?


-KingTomato
#30321 16/06/03 11:33 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
?

#30322 17/06/03 12:02 AM
Joined: Apr 2003
Posts: 57
V
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2003
Posts: 57
kingtomato where should i put that. i tried putting it in the alias part and i also tried to put it in the remote part and then i tried to put it under popups --> channel.

yaeh i did edit it. sorry scatman. I fixed it. then started to edit it you must have posted while i was editing.
i thought i would be better to edit this post instead of creating a new thread.
sorry

#30323 17/06/03 12:24 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
remotes.. All in remotes..

Btw, if you copy that, paste to wordpad (Start>>run -- type wordpad) then re-select it (Actually deselect, then reselect) copy and paste from there into mirc all the lines will stay intact. Just FYI >:D


-KingTomato
#30324 17/06/03 12:30 AM
Joined: Apr 2003
Posts: 57
V
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2003
Posts: 57
thx

also would it be possible to have a continuse play in it

#30325 18/06/03 12:59 AM
Joined: Apr 2003
Posts: 57
V
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2003
Posts: 57
would it be possible to have this play continuesly
and play down all of them one after the other


Link Copied to Clipboard