mIRC Homepage
Posted By: andymps Dialog help, again - 10/07/03 12:22 AM
Code:
 
dialog Mp3_dialog {
  size -1 -1 298 415
  title "Andys Mp3s"
  list 1,21 21 252 234,vsbar size 
  button "Play",2,31 314 60 30
  button "Stop",3,112 314 60 30
  box "Mp3 Dir",4,31 268 235 35
  button "Change Dir",5,191 315 60 30
  text "",6,36 282 28 13
  button "Shuffle",7,112 364 60 30
}
on *:DIALOG:Mp3_dialog:sclick:7: {
  /timerdialo 1 1 did -c Mp3_dialog 1 $nopath($insong.fname)
  return $findfile(%mp3dir,*.mp3,1,.splay $1-)
}

 

that should randomis in the dialog, but it doesnt, 1 it doesnt random the mp3, 2. it doesnt select from the list the mp3 thats playing? anyone help ?
Posted By: KingTomato Re: Dialog help, again - 10/07/03 12:30 AM
I think you mean this...

on *:DIALOG:Mp3_dialog:sclick:7: {
/timerdialo 1 1 did -c Mp3_dialog $1 $rand(1,$did(1).lines)
}
Posted By: andymps Re: Dialog help, again - 10/07/03 12:34 AM
ok did that and, * Timer dialo activated
-
* /did: 'Mp3_Dialog' invalid id '39'
-
* Timer dialo halted
-
and it didnt play anythin
Posted By: KingTomato Re: Dialog help, again - 10/07/03 12:36 AM
oops

on *:DIALOG:Mp3_dialog:sclick:7: {
/did -c Mp3_dialog $1 $rand(1,$did(1).lines)
/splay $findfile(%mp3dir, $+(*,$did(1).seltext), 1, 1)
}
Posted By: andymps Re: Dialog help, again - 10/07/03 12:38 AM
* /did: 'Mp3_Dialog' invalid id '39' (line 28, mp3.txt)
-
i get that now
Posted By: KingTomato Re: Dialog help, again - 10/07/03 12:43 AM
bah, i think i need another pepsi. My mind going to sleep on me--same error again..

on *:DIALOG:Mp3_dialog:sclick:7: {
/did -c Mp3_dialog 1 $rand(1,$did(1).lines)
/splay $findfile(%mp3dir, $+(*,$did(1).seltext), 1, 1)
}
Posted By: andymps Re: Dialog help, again - 10/07/03 12:44 AM
The pepsi works, grin i betta get 1, thanx KT
hmm well pepsi doesnt work when u spill it on yer keyboars mad
© mIRC Discussion Forums