Thanks a lot, Robert. Yu
-----Original Message----- From: Robert May [mailto:[EMAIL PROTECTED] Sent: Friday, September 15, 2006 10:24 AM To: Wang, Yu Cc: 'perl-win32-gui-users@lists.sourceforge.net' Subject: Re: [win32-gui] [perl-win32-gui-users] Access the text content of a message box Wang, Yu wrote: > I am trying to automatically handle the exception dialogs (I believe they > are message boxes) thrown from micosoft offices (COM objects). The problem I > meet is how to get the text content of the exception dialog after I get the > handle of the window. Once I can have that information, I can build a map > bettween the text message and the action taken. > Does anyone know how to grab the text content of the exception dialog once > you have the window handle? Any suggestion will be appreciated! You'll need to search the child windows of the message box until you find the window with the text in it, and then get the text from that window. Try taking a look at this article that I posted to the list - it should contain everything you need. https://sourceforge.net/mailarchive/message.php?msg_id=12694363 Regards, Rob.