Thanks a lot, Robert.
From: Robert May [mailto:rmay@...]
Sent: Friday, September 15, 2006 10:24 AM
To: Wang, Yu
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
> meet is how to get the text content of the exception dialog after I get
> 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.