Highlighted tdbgrid will return double values with gettextat

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
tacquire
Newbie
Posts: 6
Joined: Fri Oct 08, 2010 5:24 pm

Highlighted tdbgrid will return double values with gettextat

Post by tacquire » Wed Oct 20, 2010 5:02 pm

The application I happen to be automating is written in Delphi as is apparently macro scheduler. At any rate if you receive a row of text from a tdbgrid in the application using gettextatpoint it will work fine if it's normal black on white background style text. If however, as is the case with this other app,, the background is red and the text is white you end up with everything duplicated.

If the row said:

1 2 3 4 5
You get 1 1 2 2 3 3 4 4 5 5
On a black text on white background you get what you expect ie:
1 2 3 4 5

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts