mIRC Home    About    Download    Register    News    Help

Print Thread
#44326 27/08/03 01:24 AM
Joined: Feb 2003
Posts: 79
A
Ancyker Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Feb 2003
Posts: 79
Heres what im trying to do, i want a button, say i want it to be labled MP3, instead of it reading:
MP3
i want
M
P
3
but to do this with spacing isnt aligned, any thoughts?

#44327 27/08/03 02:53 AM
Joined: Feb 2003
Posts: 309
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Feb 2003
Posts: 309
If push comes to shove and you can't do it with a button; there's always the option of fakin it with icons.

Whack printscreen, find a button, open paint, paste and save, and wham-bam-thankyou-mam you have a completgely customisable button - you can even record up and down states for it.

Not an IDEAL solution, but a workable one

#44328 27/08/03 03:09 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
button "", 3, 268 12 14 128, default multi
did -a $dname 3 $+(M,$cr,P,$cr,3)


What follows is an example in a very basic MP3 player that uses mIRC. See the red lines to see how you might use it. This code does limited formatting, but the formatting is put on several lines to let you switch stuff around more easily to suit yourself.
Code:
dialog tdefmp3Play {
  option dbu
  size -1 -1 286 146

  text "MP3s:", 1,   4  4  22   6
  list          2,   4 12 258 128, size sort
  button "",    3, 268 12  14 128, default multi
}
on *:DIALOG:mp3Play:init:*: mp3Play.init
alias -l mp3Play.init {
  dialog -t mp3Play Basic MP3 Player - $&
    $findfile($mp3dir, $iif(%žmp3.mask,%žmp3.mask,*.mp3), 0,1, $&
    did -a mp3Play 2 $left($nopath($1-),-4)) MP3s found.
  did -a mp3Play 3 $+( $&
    P, $cr, $cr, $&
    l, $cr, $cr, $&
    a, $cr, $cr, $&
    y, $cr, $cr, $&
    $cr, $&
    M, $cr, $cr, $&
    P, $cr, $cr, $&
    3)
}
on *:DIALOG:mp3Play:*click:2,3:{
  if ($devent == sclick && $did == 3) || ($devent == dclick && $did == 2) {
    .splay $+(",$mp3dir,$$did(2).seltext,.mp3")
    echo $color(action) -ati $+( $&
      * $&
      $bytes($file($insong.fname).size,3).suf, $&
      /, $&
      $gmt($round($calc($insong.length / 1000),0),n:ss)) $&
      * $&
      $replace($left($nopath($insong.fname),-4),_,$chr(32)) $&
    }
}
alias PlayMP3s {
  if $1 { set -u2 %žmp3.mask $+(*,$replace($1-,$chr(32),*),*.mp3) }
  if $dialog(mp3Play) { did -r mp3Play 2 | mp3Play.init }
  else { dialog -m mp3Play tdefmp3Play }
}


/PlayMP3s
/PlayMP3s Josh Groban
/PlayMP3s Nickel Creek


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard