How can I send a text message to a dos program... program 'edit' for example... i just cant seem to send anything to it... no sendkeys doesnt do what i want...

so far i got this:

Code:
Dim zatacka As Long, editx As Long
zatacka = FindWindow(vbNullString, "Opdrachtprompt - edit")
'editx = FindWindowEx(notepad, 0&, "edit", vbNullString)
'Call SendMessageByString(editx, WM_SETTEXT, 0, Text1)
Debug.Print zatacka
Call PostMessage(zatacka, WM_KEYDOWN, &H61, 0)
Call PostMessage(zatacka, WM_KEYUP, &H61, 0)
it can find the hwnd but no text appears