For your b) question, here's how: HWND hwnd = ::FindWindow(NULL,"PCTV Vision"); Then you can call PostMessage using hwnd For alt+f4, you could just use ::PostQuitMessage(0); I am not sure at all on how to send (i.e: CTRL+M), but if PostMessage(hwnd, WM_CHAR, WPARAM('^'), LPARAM(M)); works, then PostMessage(hwnd, WM_CHAR, WPARAM('!'), LPARAM(R)); would do the job. One more thing. If you are coding an MFC application, you will need to add ' :: ' in front of your PostMessage's and FindWindow's, since you want to play with HWND values, and not CWnd Michael