Forum Discussion

Mephisto's avatar
Mephisto
New Contributor
7 years ago

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

  • cunderw's avatar
    cunderw
    7 years ago

    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. 

  • cunderw's avatar
    cunderw
    Community Hero

    Is the second screen the same resolution and DPI? 

    • cunderw's avatar
      cunderw
      Community Hero

      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.