Stuart, For your suggestion on item 5, where would I get the window handle from? By using Win32::Process to start the process? The program in question is a third-party vendor's provided program, so how would I go about determining the ID of the control or menu item? Note that this application does not have a menu, just four buttons.
-----Original Message----- From: stuart arnold [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 10:38 To: Dirk Bremer; Perl-Win32-Users@listserv.ActiveState.com Subject: RE: Windows Tasks For item #3: since you have the window handle (from FindWindow), just do a SendMessage() with WM_CLOSE. For item #5: You probably have the window handle to the started process. You can do a SendMessage on that for the command, ie, "Start" button. You'll need the ID of the control or menu item to do that. HTH -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Bremer Sent: Wednesday, April 13, 2005 10:44 AM To: Perl-Win32-Users@listserv.ActiveState.com Subject: Windows Tasks I have the requirement to write a Perl program that will accomplish the following tasks: 1. Identify if process X is running. 2. If process X is not running, check if Acrobat is running. 3. If Acrobat is running, kill it. 4. Start a new instance of process X. 5. Once the instance of process X starts, press the Start button on the process X window. I can perform item 1 using Win32::GUI to search for the window title. I could use the same technique for item 2. I do not know how to perform item 3. I can perform item 4. I do not know how to perform item 5. The window title for process X is static and known ahead of time. I also know the actual program executable name. The same is also know from Acrobat. Your suggestions will be appreciated. Dirk Bremer - Systems Programmer II - ESS/AMS - NISC St. Peters USA Central Time Zone 636-922-9158 ext. 8652 fax 636-447-4471 [EMAIL PROTECTED] www.nisc.cc _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs