mIRC Homepage
Posted By: ST3V3 Mp3 Directory Listing - 05/02/03 03:37 PM
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?
Posted By: Online Re: Mp3 Directory Listing - 05/02/03 03:52 PM
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.
Posted By: ST3V3 Re: Mp3 Directory Listing - 05/02/03 04:35 PM
Thanks Online, it works! i will read those tutorials thank you grin
© mIRC Discussion Forums