procedure TForm1.Button2Click(Sender: TObject);
begin
WinExec('edit.com', SW_SHOW );
Sleep( 500 );
keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), 0, 0 );
keybd_event( VK_RETURN, MapVirtualKey( VK_RETURN, 0 ), 0, 0 );
keybd_event( VK_RETURN, MapVirtualKey( VK_RETURN, 0 ), KEYEVENTF_KEYUP, 0
);
keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), KEYEVENTF_KEYUP, 0 );
end;
Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
Note: Till Feb.2001 i will only visit the groups on weekends, so be patient
if i don't reply immediately.
If you are using CreateProcess to start the console app. then all you need
to do is set the STARTUPINFO.dwFlags to STARTF_RUNFULLSCREEN.
hth
--
Graham Pyne (mailto:graha...@hotmail.com)
'Perilous to us all are the devices of an
art deeper than we possess ourselves.'
...Gandalf - Tolkien
Note that this seems to be a recent addition to the flag set, will probably
require Win2K to work.