I've not used it myself, but I'd take a look at Win32::Process (standard
with ActiveState Perl), which has a Wait() method to allow you to wait
for a process to finish.
As an aside: ShellExecute() always returns once the process it is
launching has started. ShellExecuteEx() can give you a handle to the
started process, that you can then use to determine when it finishes.
But ShellExecuteEx() isn't implemented in Win32::GUI, so I think you'd
be looking at Win32::API to get this functionality.
Rob.
Scott Spearman wrote:
Thanks for the idea! That seems to be more responsive, except that the
ShellExecute command doesn't block until Acquire exits. Is there a way
to make this block?
Scott
----- Original Message ----- From: "Jeremy White" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>;
<perl-win32-gui-users@lists.sourceforge.net>
Sent: Thursday, December 01, 2005 9:17 AM
Subject: RE: [perl-win32-gui-users] system call delayed?
I'll include the handler and the scan function below, as both are
relatively short. Note that in the DoSCAN function, the scan button
(called $scan) is disabled right before the system call. When I
click the button, it is immediately disabled. So I know it's getting
to that point. But then it doesn't do the acquire call until I do
SOMETHING, ANYTHING else.
It might be worth trying the ShellExecute method rather than the perl
system command. See
http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?doc=reference-methods
This method is in Win32-GUI 1.02 and above I believe. Although it is
more "fiddly" than system, it's a direct interface into the win32 API
ShellExecute, and has most of the functionality. As ShellExecute is
associated with your window, it might solve your issue.
Cheers,
jez.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/