mIRC Home    About    Download    Register    News    Help

Topic Options
#35133 - 09/07/03 09:49 AM dialog problems
andymps Offline
Fjord artisan

Registered: 11/04/03
Posts: 300
Loc: England,Uk
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
}
on *:dialog:Mp3_dialog:init:*:{
$findfile(%mp3dir,*.mp3,0,didtok Mp3_dialog 1 32 $nopath($1-))
}
in that dialog with every space and - in the mp3's listed it goes to the next line, how do i stop that
_________________________
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Top
#35134 - 09/07/03 10:47 AM Re: dialog problems
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Try
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
}

on *:dialog:Mp3_dialog:init:*:{
  $findfile(%mp3dir,*.mp3,0,did -a Mp3_dialog 1 $nopath($1-))
}

Top
#35135 - 09/07/03 10:52 AM Re: dialog problems
andymps Offline
Fjord artisan

Registered: 11/04/03
Posts: 300
Loc: England,Uk
Hey it works, thanx, also
on *:dialog:Mp3_dialog:sclick:2:{
.splay $did(Mp3_dialog,1).sel
}
that doesnt work,* /splay: invalid parameters (line 14, mp3.txt)
do u know why?
_________________________
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Top
#35136 - 09/07/03 11:00 AM Re: dialog problems
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
$did(1,$did(1).sel)

Top
#35137 - 09/07/03 11:01 AM Re: dialog problems
andymps Offline
Fjord artisan

Registered: 11/04/03
Posts: 300
Loc: England,Uk

Thanx again smile
_________________________
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Top
#35138 - 09/07/03 11:02 AM Re: dialog problems
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
You're welcome. grin

Top
#35139 - 09/07/03 11:13 AM Re: dialog problems
andymps Offline
Fjord artisan

Registered: 11/04/03
Posts: 300
Loc: England,Uk
how do u get it to write into a box, when i try it it just writes the title from mp3 Dir to what even i tell it to, instead of it going in the box
_________________________
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Top
#35140 - 09/07/03 11:19 AM Re: dialog problems
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
I am not following you.
Do you mean /did -a Mp3_Dialog [id] [whatever] ?

Top
#35141 - 09/07/03 11:40 AM Re: dialog problems
andymps Offline
Fjord artisan

Registered: 11/04/03
Posts: 300
Loc: England,Uk
box "Mp3 Dir",4,31 268 235 35
i did with that:
/did -a Mp3_dialog 4 %mp3dir
and it wont display it
_________________________
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Top
#35142 - 09/07/03 11:44 AM Re: dialog problems
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Try
Code:
on *:dialog:mp3_dialog:init:*: {
  if (%mp3dir == $null) { did -a mp3_dialog 4 Mp3 Directory }
  else { did -a mp3_dialog 4 %mp3dir }
}

Top
#35143 - 09/07/03 11:56 AM Re: dialog problems
andymps Offline
Fjord artisan

Registered: 11/04/03
Posts: 300
Loc: England,Uk
its is this:
Code:
on *:dialog:Mp3_dialog:init:*:{
  return $findfile(%mp3dir,*.mp3,0,did -a Mp3_dialog 1 $nopath($1-))
  did -a Mp3_dialog 4 %mp3dir
}
_________________________
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Top
#35144 - 09/07/03 12:10 PM Re: dialog problems
ScatMan Offline
Hoopy frood

Registered: 06/05/03
Posts: 730
on *:dialog:Mp3_dialog:init:*:{
var %x = $findfile(%mp3dir,*.mp3,0,did -a Mp3_dialog 1 $nopath($1-))
did -a Mp3_dialog 4 %mp3dir
}

since return halts the command

Top
#35145 - 09/07/03 12:19 PM Re: dialog problems
andymps Offline
Fjord artisan

Registered: 11/04/03
Posts: 300
Loc: England,Uk
ok but now it has the bit at the top, not in the box, like
----somethin here--------
and then the rest of the box
that somethin here shoudl be Mp3 Dir and the dir in the box
_________________________
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Top
#35146 - 09/07/03 12:23 PM Re: dialog problems
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
It is a box therefore it would show "something here" at the top. If you want to have the dir in the middle of the box just use a text label.


Edited by SladeKraven (09/07/03 12:25 PM)

Top
#35147 - 09/07/03 12:26 PM Re: dialog problems
andymps Offline
Fjord artisan

Registered: 11/04/03
Posts: 300
Loc: England,Uk
how do i do that?
_________________________
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Top
#35148 - 09/07/03 01:11 PM Re: dialog problems
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
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 191 11
}

on *:dialog:Mp3_dialog:init:*: { 
 $findfile(%mp3dir,*.mp3,0,did -a Mp3_dialog 1 $nopath($1-)) 
 did -a Mp3_dialog 6 %mp3dir
}

Try that.

Top