mIRC Home    About    Download    Register    News    Help

Print Thread
a change to $sfile #241380 16/04/13 03:01 AM
Joined: Mar 2004
Posts: 526
HorseC Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Mar 2004
Posts: 526

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

Re: a change to $sfile [Re: HorseC] #241381 16/04/13 03:27 AM
Joined: Jul 2006
Posts: 3,827
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,827
/help $msfile wink
Code:
alias select_files {
  var %a $$msfile(C:\)
  while (%a) {
    echo -a $msfile(%a)
    dec %a
  }
}

Last edited by Wims; 16/04/13 03:30 AM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: a change to $sfile [Re: Wims] #241382 16/04/13 05:14 AM
Joined: Mar 2004
Posts: 526
HorseC Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
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.


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!