12-10-2007, 02:56 PM
Don't know why you call IntGetFile for url2 repeatedly, and why use clipboard. My version is:
out
str Src Src2 message zipcode url url2 s a
zipcode="48183"
ARRAY(str) High Low
url.from("http://www.weather.com/weather/tenday/" zipcode "?dp=htempdp")
url2.from("http://www.weather.com/weather/tenday/" zipcode "?dp=ltempdp")
int MatchSuccess i
IntGetFile url Src
IntGetFile url2 Src2
if(findrx(Src ">(\d+)°F</B>" 0 1|4 High)=0) ret
if(findrx(Src2 ">(\d+)°F</B>" 0 1|4 Low)=0) ret
for i 0 High.len
,message.formata("%s %s[]" Low[1 i] High[1 i])
mes message