mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
hrm...odd I need to see if the same thing happens with the 6.1 version to see if its me or mIRC. Could be a buffer thing about selecting to many. Course it could be the dll thing i need to try to make it happen for me. heh, Anyways to hopefully answer your "writing the results to a text file" thing you could try these two means. You can change this however you like (aliases just standard for me).

-----Without the use of the $msfile identifier i provide---------
alias blah {
var %results = $dll(msfile.dll,msfile,Directory>Title)
if (%results != $false) && (%results != olimit) {
if ($count(%results,|) == 0) { write file.txt %results }
var %dir = $gettok(%results,1,124) $+ \
var %startnum = 2
var %endnum = $calc($count(%results,|,0,32) +1)
while (%startnum <= %endnum) {
write textfile.txt %dir $+ $gettok(%results,%startnum,124)
inc %startnum
}
}
}
----------------------------------------------------
-------With the use of the $msfile identifier I provide-----
alias blah2 {
var %results = $msfile(Directory,Title)
if (%results isnum) {
var %startnum = 1
while (%startnum <= %results) {
write textfile.txt $msfile(%startnum)
inc %startnum
}
}
}
----------------------------------------------------

Oops i got confused your talking about the dll itself heh

Last edited by Scorpwanna; 24/12/03 06:43 PM.

We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
ok thats working great laugh thanks, and i hope you get your dll working;)


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Errr rats, i spent all night trying different things to get this thing working just right. I stoped it from crashing when it selects however many files. But it returns olimit or $false and some results when it shouldnt. I might just give up frown.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
you can get it workin, you just have to keep trying wink


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Welp I can't figure it out, it's not making sense. So I've uploaded what sorta works but doesn't crash (least not for me) to the same place. It still will return olimit when it needs to, $false when it needs to, and $false when it doesnt need to if to many filenames are selected:(. And if like a lot of them are selected for some reason it returns part of the results. But I hope that who ever uses this isn't one to want to select 500 files that are about 50 characters each in length.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Page 2 of 2 1 2

Link Copied to Clipboard