mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
im making some script so it will
open the socket and search for what i want
and on the sockread event
when it finds the correct line i want it to
set the link variable
and do another alias (only once)
and halt the script completely
but it keeps doing the alias
over and over till it finishes the sockread
anyway i can get an alias to trigger once
when it finds the first result
and halt it
-
on *:sockread:NFO: {
echo -a Reading
if ($sockerr) {
echo -a Error Connecting To Site.
echo -a Please Try Again Later Tx
}
else {
var %i
sockread %i
if (Year</font></td></tr><tr><td bgcolor='#E0E0E0'><a href=' isin %i) {
var %2 = $gettok(%i,3,38)
var %3 = $gettok(%2,10,35)
set %NfoLink $gettok(%3,3,39)
echo -a %nfolink

domyalias
halt

}
}
}


as you can see i put
an echo reading at the top to see if the script stops but
it never does

anyone that can help

thanks alot

Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
You're still receiving data, because the socket is still open. Close the socket with "/sockclose NFO" just before the /halt, and you should be fine.


Saturn, QuakeNet staff
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
aha
cool

thanks alot
smile


Link Copied to Clipboard