Ask a Question

Text recognition fails on secondary display

SOLVED
Mephisto
New Contributor

Text recognition fails on secondary display

Hello!

 

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();

3 REPLIES 3
cunderw
Community Hero

Is the second screen the same resolution and DPI? 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Mephisto
New Contributor

No and no. Should it be so?

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. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
cancel
Showing results for 
Search instead for 
Did you mean: