Forum Discussion

NisHera's avatar
NisHera
Valued Contributor
7 years ago

Getting error text in message

I have an error message by application as follows

 

 

The full name of the object is

Sys.Process("My application").Window("#32770", "Error", 1).UIAObject("Error")

and WndClass is DirectUIHWND

 

In project properties/open Application/UI Automation , Have added class DirectUIHWND

still I can not access the text of message. though could click Ok button.

 

any help would be appreciated

  •  

    Do both of these entries in your project....

    In project properties/open Application/UI Automation , added class DirectUIHWND

    In project properties/open Application/MSAA , added class DirectUIHWND

     

    I originally placed some of my code in the response, but after reviewing it I had to withdraw it because it calls other custom code making this response unusable to you.

     

    Basically I look  -Using FindChildEx() - for a classname of  'Element' or 'Static'   and the static class has an index of 2.

     

    My apologies.

     

     

     

  •  

    Do both of these entries in your project....

    In project properties/open Application/UI Automation , added class DirectUIHWND

    In project properties/open Application/MSAA , added class DirectUIHWND

     

    I originally placed some of my code in the response, but after reviewing it I had to withdraw it because it calls other custom code making this response unusable to you.

     

    Basically I look  -Using FindChildEx() - for a classname of  'Element' or 'Static'   and the static class has an index of 2.

     

    My apologies.

     

     

     

  • SanderK's avatar
    SanderK
    Occasional Contributor

    Does the error dialog contain a child panel or label which in its turn contains the error message itself?