I've found a problem working with a window belonging an application of mine written in C++.NET; so I'm using RanorexNet.dll
I got the element of the window this way:
Code: Select all
pSubWindow = pForm->Element->FindChild( Ranorex::Role::Client, "XXX" );
pButtonEl = pSubWindow->FindChild( Ranorex::Role::PushButton, "Save" );
First time I enter this piece of code everything works ok and the pSubWindow->State is set to Focusable. Then I hide this window, show it and I got pSubWindow->State set to Invisible and the pSubWindow->GetChildCount is set to zero, the pButtonEl results undefined.
What's wrong? Please help