December 22nd, 2004, 06:15 AM
|
#1 (permalink)
|
| Member
Join Date: Aug 2003 Location: Germany
Posts: 98
| Wait till Application has opened
Hey there, me again
I have the following: PHP Code: ShellExecute(form1.Handle, 'open', PChar('c:\windows\notepad.exe'), nil, nil, SW_SHOW);
sleep(1000);
ShellExecute(form1.Handle, 'open', PChar('c:\windows\calc.exe'), nil, nil, SW_SHOW);
Ok at the moment my app waits 1 Sec. before it continues opening calculator. As you might imagine not every application is opened in 1 sec.
I'd like to have it that it opens notepad - waits till notepad has opened and then continues opening calculator. How do I do that?
I googled something about handles and stuff but that didn't help me much...
__________________
Do you also hear those voices?
|
| |