Board index » delphi » Executing a windows application from a DOS prompt
elja...@ameritech.net (Mike McWhinney)
![]() Delphi Developer |
Mon, 28 Nov 2005 08:03:25 GMT
|
elja...@ameritech.net (Mike McWhinney)
![]() Delphi Developer |
Mon, 28 Nov 2005 08:03:25 GMT
Executing a windows application from a DOS prompt
Hello,
I am developing a Windows application in the Delphi 5 programming Thanks Mike McWhinney |
Maarten Wiltin
![]() Delphi Developer |
Mon, 28 Nov 2005 21:11:31 GMT
Re:Executing a windows application from a DOS promptQuoteMike McWhinney wrote in message Quote>I am developing a Windows application in the Delphi 5 programming Otherwise, add some extra code somewhere so that when one random program terminates, focus is set to some other random program. You may find it quite difficult to achieve this, because as far as Windows is concerned, both _are_ random programs. Groetjes, |
Kelly Leah
![]() Delphi Developer |
Mon, 28 Nov 2005 22:36:17 GMT
Re:Executing a windows application from a DOS promptQuote> Easiest solution: don't run your console programs full-screen. console app? If it's a console app, it can call windows api functions like CreateProcess Kelly |
Mike McWhinn
![]() Delphi Developer |
Tue, 29 Nov 2005 04:29:06 GMT
Re:Executing a windows application from a DOS promptQuote"Kelly Leahy" <kellyle...@swbell.net> wrote in message <news:Bd0Ga.1813$3q.109@newssvr32.news.prodigy.com>... console application which calls the graphical interface program also written in Delphi. It still does not return control to the DOS text mode. If I run it in "windowed" mode instead of full screen, then it works correctly. Maybe there is a way to stuff the keyboard buffer with a VK_ENTER so Any other ideas? Mike |
Maarten Wiltin
![]() Delphi Developer |
Tue, 29 Nov 2005 05:04:07 GMT
Re:Executing a windows application from a DOS promptQuoteMike McWhinney wrote in message [...] Quote>My DOS program is a real mode DOS program. Quote> I tried writing a Delphi but Windows doesn't want the latter program to know how it was started. And Windows most certainly does not want to go to full-screen mode by anything else than explicit user request, so it simply won't. Quote>Maybe there is a way to stuff the keyboard buffer with a VK_ENTER so not against it. The other is more succinct. Don't pee into the wind. It's just not how Windows works. You can fix it one way (from the Groetjes, |
Terry Russel
![]() Delphi Developer |
Tue, 29 Nov 2005 13:31:08 GMT
Re:Executing a windows application from a DOS promptQuote"Mike McWhinney" <elja...@ameritech.net> wrote in message Quote
try and pretend neither exists. Is it really necessary? Redirecting focus and foreground is also a problem, users will find any It is always annoying when you type or click and some app pops up This seems to work fairly reliably, for me, on friday 13th, with a full program NEWSTART; {$R *.RES} // Run program and wait for it to finish, return exitcode procedure help; end; var s:string; |
1. Executing a dos prog in Win 95 and forcing the dos prompt to close after
2. Can a Delphi Application starts from DOS prompt???
3. How to create a Dos Window within a windows application
4. executing DOS batch files from a BPW application
5. Executing a DOS application from within Delphi
7. Q: Execute DOS application minimized
8. Executing DOS command in window
9. Porting 16 bit DOS Application to 32 bit DOS Application using BC++ 5.0