mIRC Homepage
Posted By: HorseC a change to $sfile - 16/04/13 03:01 AM

I would love to see an option on Sfile so you could select multiple files (or a $sfiles function).

With the ability to select multiple files (like you can in windows when selecting files).
The results of the new function would be passed back as a comma separated list.
The list returned could then be tokenized and used it to add songs to the /splay queue.

note:
KeiroD has an example of how to get around this issue in his music player script.
But it involves using a hashtable, adding to it, writing the hash table , and reloadeding the hash table to generate the playlist queue.
I feel a way to tag multiple files via $sfile, would be easier to work with.

Thoughts?,

HorseC
Posted By: Wims Re: a change to $sfile - 16/04/13 03:27 AM
/help $msfile wink
Code:
alias select_files {
  var %a $$msfile(C:\)
  while (%a) {
    echo -a $msfile(%a)
    dec %a
  }
}
Posted By: HorseC Re: a change to $sfile - 16/04/13 05:14 AM
Thanks! I searched in the help chm file, looking at file handling etc. but did not go through $command by $command, you have made my day.
© mIRC Discussion Forums