My windows application starts an old DOS application (the kind that you can tab around in and use various keys - psuedo windows looking). Anyway, I need to tab to each field, enter values, and exit the program. I can do all this while the DOS Command Window is minimized using:
::PostMessage(hDOS, WM_CHAR, Ch, NULL);
where hDOS is the handle to the DOS Command Window, and Ch is a key (e.g. VK_TAB).
I can not get the VK_F1 key to work though (the program needs F1 to exit the app). Any ideas how I can do this? Is it being eaten and not sent to the DOS program?