mIRC Home    About    Download    Register    News    Help

Print Thread
#9811 05/02/03 03:37 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
How would you get a directory of mp3's (C:\Program Files\Kazaa Lite\My Shared Folder) to list in a listbox of this dialog?
Code:
 dialog mp3 {
  title "Mp3's"
  size -1 -1 113 134
  option dbu
  list 1, 12 11 88 95, size vsbar
  box "Mp3's", 2, 4 1 105 113
  button "Close", 3, 4 117 105 12, ok
}
 

and when you dclick on a mp3 it /splay's it?

#9812 05/02/03 03:52 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
To answer your question, these are the remote events you need:
Code:

on *:dialog:mp3:init:0:{
  !.echo -q $findfile(c:\program files\kazaa lite\my shared folder\,*,0,did -a mp3 1 $1-)
}
on *:dialog:mp3:dclick:1:{
  splay $did(1).seltext
}

Now, if you want to learn how to make it yourself, read the "Introduction to dialogs" and "Next step" here.

#9813 05/02/03 04:35 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
Thanks Online, it works! i will read those tutorials thank you grin


Link Copied to Clipboard