Text recognition fails on secondary display
Whenever I use text recognition( ex : WaitTextObject("exwndclass", "exwndcaption", "exindex")) on my secondary screen, TestComplete is not able to return the correct coordinates of the given object. It just points towards another area. This happens on multiple machines.
So text recognition correctly returns the coordinates of the wanted object, on the primary screen, yet on the secondary screen, it just returns the wrong coordinates.
Is this a known issue? How could I fix this?
Example that will click an incorrect area on the secondary display :
randomWindow.WaitTextObject("desiredButton", 2, 5000).Click();
Solved! Go to Solution.
I'm not seeing anything the documentation specific to TextObjects, but I know DPIs that are not standard can cause issues. You might need work with support directly on this.
Click the Accept as Solution button if my answer has helped