mIRC Homepage
Posted By: genderchanger $sfile for multible files - 16/04/03 12:55 PM
there should definitly be a possibility to select multible files with $sfile or maybe a new identifier.

how about $sfile().multi
Posted By: Rich Re: $sfile for multible files - 16/04/03 09:25 PM
How about this:
$sfile(dir,title,oktext,command)
allows for multiple selected files.

command is executed on every file selected, like in $findfile.
in the command you could use '$numfile' to get the total number of selected files.
the return value would be the total number of selected files.

(note that you can only use this if you specify title and oktext)
Posted By: RoCk Re: $sfile for multible files - 18/04/03 07:45 PM
//echo $sfile(d:\,title,oktext,echo test)
* Invalid parameters: $sfile

This works for you eh ?
Posted By: zack Re: $sfile for multible files - 19/04/03 07:00 AM
I don't think it should be a property, but a parameter. $sfile(dir,title,oktext,N) where if N is 1 you can select multiple files.
Posted By: Rich Re: $sfile for multible files - 19/04/03 05:54 PM
No it doesn't, since $sfile doesn't support multiple files yet. It was just a suggestion on how the $sfile identifier could be modified to support multiple files.
Posted By: Online Re: $sfile for multible files - 21/04/03 01:41 AM
Since returning a bunch of selected files in one line could easily reach the limit of ~950 chars, qwerty suggested an interesting way of retrieving the files with something similar to $regml(N).

I don't remember the exact idea, but hopefully Khaled noticed that before the old board burnt...
Posted By: RoCk Re: $sfile for multible files - 22/04/03 01:20 PM
Rich I'm sorry lol .. I thought you meant it already worked that way .. my bad :-)

I did like your idea and have been waiting for multiple file selection for a long time .. although there is a dll for that, I had an issue with it .. it seperated the filenames by enclosing the filename in parentheses, which is allowed in filenames. It would be cool if it were to seperate the filenames with a character that's not allowed in filenames.
© mIRC Discussion Forums