This module is pretty old, and it is entirely possible that it does not work with WinXP, although it's highly unlikely, since it works fine with Win2k. Does this work for you?
use Win32::Setupsup; use strict; my $handle = ''; system("start Notepad"); if(Win32::Setupsup::WaitForAnyWindow("notepad",\$handle,100000,100)){ print "Notepad is open.\n"; } #(Close the Notepad Window) if(Win32::Setupsup::WaitForWindowClose($handle,100000,100)){ print "Notepad is closed.\n"; } -----Original Message----- From: Cacialli, Doug [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 1:11 PM To: '[EMAIL PROTECTED]' Subject: Win32::SetupSup module problems? Has anybody had any problems with the Win32::SetupSup module? Specifically, whenever I try to use it, my system crashes. It's pretty weird. I'm running WinXP Pro, using the latest ActiveState build of Perl. And like I said in my last post, this is my first program; I am extremely new to this. Any input would be great. Thanks. Doug out. --------------------------------------------------- Douglas Cacialli - Data Manager / Data Analyst Sleep and Depression Research Laboratory University of Rochester Medical Center 300 Crittenden Blvd. - Box PSYCH Rochester, New York 14642 Phone: (585)273-3309 Fax: (585)506-0287 **** NOTE NEW FAX NUMBER **** --------------------------------------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]