mIRC Home    About    Download    Register    News    Help

Print Thread
line is too long to var help please.? #101594 26/10/04 10:21 AM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline OP
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
Hey,
on the sockread event in my script the line
with the info is too long to use sockread %var
so i got told to use &binvars
i read somethings that i found when searching through
the forum and i found out
how to set them and stuff
but i tried to use $bvar().text
but the line was too long to check frown
heres the script event i tried next:

on *:sockread:name: {
if ($sockerr) {
echo -a Error
halt
}
else {
sockread &bvar
if (<html>*<html> iswm &bvar) {
echo -a $nohtml(&bvar)
}
}
}


when i used /var
it echoed the no html but had all the info mssing from
the end.
when i used it like this it didnt even
return true.

anyone know how i can do this
and is $sockbr important for this?

please help

thanks alot

Re: line is too long to var help please.? #101595 26/10/04 11:23 AM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

either parse your incoming data with $bfind, or write it to a file using /bwrite, and parse it later with the file handling commands, or whatever tool is best for the purpose. I don't know how your incoming data is organized, so I can't tell for sure.

Greets


Gone.
Re: line is too long to var help please.? #101596 26/10/04 01:26 PM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline OP
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
cool thanks
when i use the var its about 100 words away from what i need
and wouldnt $bfind do the same thing as $bvar
and say that the line is too long?
isnt there a way to just read that var
and is it ok to just
sockread &bvar
without setting it
and when i tried it like this
i had echo -a Reading at the top
when i matched the line with %var
it echoed loads of times and when i did it like this it
echoed like 10 times then stopped and didnt even match
anything?

writing it too a file would be ok if i could
match the line first because i dont really wanna make a
loop or anything its already really slow as it is frown
and the incoming data is just 1 really really long line
all the rest of the lines are readable from a reg %var
but this line is super long
Heres The Page


any ideas?

thanks alot for the help
:P

Last edited by whatsthedillio; 26/10/04 01:31 PM.
Re: line is too long to var help please.? #101597 26/10/04 04:36 PM
Joined: Jun 2004
Posts: 291
W
whatsthedillio Offline OP
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
nvm i got it
i used $bfind to match and
$bvar(&bvar,$v1,$calc($v1 + 100)) to get the info i needed

thanks alot for the help FiberOPtics
wink

Re: line is too long to var help please.? #101598 26/10/04 05:28 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Yep,

you got it, that's what I meant.

Greets


Gone.