Code: Select all
Ranorex.LoggerInfo("User", "Find child by control id '1195'.")
control = Ranorex.FormFindChildControlId(form, 1195);
if control == 0:
return 1
Ranorex.ControlSetFocus(control);
Ranorex.LoggerInfo("User", "Get the accessibility element of the control.")
controlElement = Ranorex.ControlGetElement(control);
if controlElement == None:
return 1
Ranorex.LoggerInfo("User", "Find child element in control by Role='Graphic', Name='Knoten' and Location=(66,136).")
element = Ranorex.ElementFindChildLocation(controlElement, 40, "Knoten", "", 66, 136);
if element == None:
return 1
Ranorex.LoggerInfo("User", "Click element 1 time(s) with left mouse button at offset=(47,11).")
if Ranorex.MouseClickElement(element, Ranorex.MOUSE_LEFT_BUTTON, 47, 11, 1, 5187*timeScale) != 0:
return 1
Code: Select all
Ranorex.LoggerInfo("User", "Find child by control id '1195'.")
control = Ranorex.FormFindChildControlId(form, 1195);
if control == 0:
return 1
Ranorex.LoggerInfo("User", "Click control 1 time(s) with left mouse button at offset=(47,11).")
if Ranorex.MouseClickControl(control, Ranorex.MOUSE_LEFT_BUTTON, 47, 11, 1, 2000*timeScale) != 0:
return 1