|
|
#1 |
|
Junior Member
Join Date: Jun 2007
Posts: 12
|
Execute program and wait for showing up
Dear Friends,
how can I execute an exe-File and pause the script then until the exe's program window is shown ? Thank you very much! With best regards MfG Inno |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jun 2007
Posts: 12
|
Is there no way to do that?
Really no way? Pls help! With best regards MfG Inno |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2006
Location: Dallas
Posts: 462
|
20 minutes and already you're begging for help??
There are a couple of solutions: the first thought is that you can have a loop with FindWindow and Sleep if it is not there yet. To FindWindow you will need the window title and should have the window class. This could fail if you're not careful if, for example, the program has another copy running, or you have another program with the same title and class (explorer window open to the folder, etc). A second solution is to wait for the process to appear (look for FindProcess in the wiki to see how to do that). Third, maybe you are simply asking how to wait for the process to appear and finish, in which case ExecWait would work. Don |
|
|
|
|
|
#5 | |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
ExecWait is not the solution
![]() Quote:
Stu |
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jun 2007
Posts: 12
|
Well, I know - it sounds rude - but could you make a primitive code example of the findwindow-loop?
Thank you very much for your help! With best regards MfG Inno |
|
|
|
|
|
#7 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Check out BOTH following threads,
http://forums.winamp.com/showthread....hreadid=268418 http://forums.winamp.com/showthread....hreadid=268665 Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|