.Net 2.0
I've just upgraded to Ranorex 1.2
When I go to recompile I get an error for every instance of
"Control <control> = <Form>.GetFocus()"
Investigation shows that this method is missing from the latest release.
Cheers
Gryphyn
Investigation shows that this method is missing from the latest release.
for (int i = 0; i < 60; i++)
{
Control control = Form.GetFocus();
Console.WriteLine("Control = {0}", control.GetType());
Application.Sleep(1000);
}spot wrote:(Using Ranorex 2.2.3 - I can't find a GetFocus() method.)
spot wrote:So, the question again please: Do you know any method to get the MessageBox/form/control/name of or something else of the object with the focus?
//Search for the active foreground window and checks if "active" state is true
Ranorex.Form myActiveForm = Host.Local.FindSingle("/form[@active='True']");Users browsing this forum: No registered users and 0 guests