on *:SOCKREAD:ebay: {
if ($sockerr) {
echo -s SockError $sockname $sockerr
return
}
else {
var %temptext
sockread %temptext
if (
*viewitem* iswm %temptext) { echo -a $gettok(%temptext,2-,62) }
}
}
var s
ViewItemUrl = 'http://cgi.ebay.com/ws/eBayISAPI.dll?
ViewItem';
cfg.aAlertInfo = [ ["h:h:alt:2","You've been outbid!","icon/iconOutbid_16x16.gif",s
ViewItemUrl,["item"]],
["h:h:alt:3","Watched Item ending soon!","icon/iconWatchB_16x16.gif",s
ViewItemUrl,["item"]],
["h:h:alt:4","You've been outbid!","icon/iconOutbid_16x16.gif",s
ViewItemUrl,["item"]],
["h:h:alt:5","You've received a Second Chance Offer","icon/iconchanceBlu_16x16.gif",s
ViewItemUrl,["item"]]
var view_item_path = "http://cgi.ebay.com/ws/eBayISAPI.dll?
ViewItem&item=";
ebay.oUtils.oPrefetch.load("http://include.ebaystatic.com/js/e459/us/features/
viewitem/
viewitem_e4594us.js");
It echo's those lines because that is what you told it to do.
Try changing your sockread event like this to see exactly what the page looks like:
on *:SOCKREAD:ebay: {
if ($sockerr) {
echo -s SockError $sockname $sockerr
return
}
var %temptext
sockread %temptext
echo 7 -s > %temptext
}
When you find the exact line you are looking for, you can make your if-statement more precise.
-genius_at_work