
Originally Posted by
lpxxfaintxx

Too late now, almost half done with the project. Also, would anyone teach me or give me a link to a tut?
At least use GetActiveWindow to make sure Sc is the window with focus...
Heres some verrry old, nasty code I used a while ago to write stuffs to its buffer...
Code:
Private Sub SendChatMsg(Message As String)
Dim i As Integer
Dim address As Long
Dim Character(1 To 100) As Byte
On Error Resume Next
For i = 1 To 72
Character(i) = Asc(Mid(Message, i, 1))
If Character(i) = 0 Then Exit For
address = ColorLoc + (i - 1)
WriteProcessMemory Sc.PHandle, address, Character(i), 1&, 1&
Next i
End Sub
ColorLoc being the address of the chat buffer thingeh.
And after that was called I would SendMessage Sc.hwnd,WM_CHAR,13,0 twice.