here's something i think can help you:
code:
void SendTextToNotepad(char *theString){
HWND hNotepad = FindWindow("Notepad", NULL);
if(hNotepad){
HWND hEditBox = GetDlgItem(hNotepad, 15);
for(int i = 0; i < strlen(theString); i++){
PostMessage(hEditBox, WM_CHAR, (WPARAM)theString[i], 0);
}
}
}
It's c++, but i think you'll manage to translate it to vb...
It sends a string to notepad...