I am trying to get the text of an AIM conversation, It seems to get everything but the end is always </HTML missing the > part. What is wrong with this?

VB Code:
  1. Private Sub Command2_Click()
  2.     Dim hWndx As Long, kLENGTH As Long
  3.     Dim temp As String, ok As Long
  4.    
  5.     hWndx = 918780 '2360364
  6.     kLENGTH = SendMessage(hWndx, WM_GETTEXTLENGTH, ByVal 0&, ByVal 0&) + 1
  7.     temp = Space(kLENGTH)
  8.     ok = SendMessage(hWndx, WM_GETTEXT, ByVal kLENGTH, ByVal temp)
  9.     Text1.Text = temp
  10.     MsgBox "Length: " & kLENGTH & " But we got: " & Len(Text1.Text)
  11.    
  12.     'Open "C:\TEMP.html" For Output As #1
  13.         'Print #1, temp
  14.     'Close #1
  15. End Sub