mIRC Home    About    Download    Register    News    Help

Print Thread
#19694 16/04/03 12:55 PM
Joined: Dec 2002
Posts: 20
G
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Dec 2002
Posts: 20
there should definitly be a possibility to select multible files with $sfile or maybe a new identifier.

how about $sfile().multi

Joined: Dec 2002
Posts: 117
R
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
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)


$input(Me like stars, You too?)
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
//echo $sfile(d:\,title,oktext,echo test)
* Invalid parameters: $sfile

This works for you eh ?

Joined: Dec 2002
Posts: 266
Z
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 266
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.


You won't like it when I get angry.
Joined: Dec 2002
Posts: 117
R
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
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.


$input(Me like stars, You too?)
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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...

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
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.


Link Copied to Clipboard