Dialog Text

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
adaml
Newbie
Posts: 1
Joined: Fri Sep 15, 2006 9:35 pm
Location: Southern California, USA

Dialog Text

Post by adaml » Fri Sep 15, 2006 9:42 pm

Does anyone know how to retreive the Text within a Microsoft Error dialog? For example, the text might say "Run-time error '440': Automation Error"

When I use the GetWindowText, it retrieves the dialog caption("Microsoft Visual Basic") and the caption of the command buttons ("Continue" "End" "Debug" and "Help")

Any help will be appreciated,

Adam

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Sat Sep 16, 2006 1:37 pm

When this error dialog is open, use View System Windows to see if the text is stored in an object you might be able to read.

There is usually a way to get at any object in the View System Windows results.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts