05-21-2020, 11:33 PM
For myself solved this like this:
Click wasn't working on button itself, but click on FormItem where this button was located worked fine, though I had to define coordinates for the click - formitem has to be clicked in the place where button is located:
l_xBtn_prop = WpfWindow("").WpfButton("BtnName").GetROProperty("x")
l_widthBtn_prop = WpfWindow("").WpfButton("BtnName").GetROProperty("width")
l_xFrm_prop = WpfWindow("").WpfObject("FormItemName").GetROProperty("x")
l_heightFrm_prop = WpfWindow("").WpfObject("FormItemName").GetROProperty("height")
WpfWindow("").WpfObject("FormItemName").Click (l_xBtn_prop-l_xFrm_prop)+l_widthBtn_prop/2, l_heightFrm_prop/2
Click wasn't working on button itself, but click on FormItem where this button was located worked fine, though I had to define coordinates for the click - formitem has to be clicked in the place where button is located:
l_xBtn_prop = WpfWindow("").WpfButton("BtnName").GetROProperty("x")
l_widthBtn_prop = WpfWindow("").WpfButton("BtnName").GetROProperty("width")
l_xFrm_prop = WpfWindow("").WpfObject("FormItemName").GetROProperty("x")
l_heightFrm_prop = WpfWindow("").WpfObject("FormItemName").GetROProperty("height")
WpfWindow("").WpfObject("FormItemName").Click (l_xBtn_prop-l_xFrm_prop)+l_widthBtn_prop/2, l_heightFrm_prop/2