I have some code to parse the output of a pasted 'message'

But I still can't get setfocus to connect and I can't think of a way to read the text without pasting it to a text doc.

code:
 
$text = ReadFile($temp)
$header = split($text[3])
for $l = 5 to ubound($text) - 4
$body = $body + @crlf + $text[$l]
next
$from = $header[2]
$to = $header[4]
$date = $header[6]
$time = $header[7] + ' ' + $header[8]
$body = substr($body,2)

_________________________
How to ask questions the smart way <-----------> Before you ask