Old 24th June 2007, 22:11   #1
Innocentus
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
Innocentus is offline   Reply With Quote
Old 24th June 2007, 22:35   #2
Innocentus
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
Innocentus is offline   Reply With Quote
Old 24th June 2007, 22:43   #3
demiller9
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
demiller9 is offline   Reply With Quote
Old 25th June 2007, 00:10   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
My money is on ExecWait.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 25th June 2007, 09:59   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
ExecWait is not the solution
Quote:
pause the script until the exe's program window is shown
FindWindow in a loop is the best bet.

Stu
Afrow UK is offline   Reply With Quote
Old 25th June 2007, 17:33   #6
Innocentus
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
Innocentus is offline   Reply With Quote
Old 25th June 2007, 18:44   #7
Red Wine
Forum King
 
Red Wine's Avatar
 
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
Red Wine is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump