#include #include void main() { HWND hwnd; hwnd = FindWindow("Notepad",0); printf("%i\n",hwnd); PostMessage(hwnd,WM_CHAR,66,0); system("pause"); }