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