Simba Code:
function getUpText(): string;
const
col = $0066ff;
var
bmp, w, h, oldT, newT: integer;
b: TBox;
tpa: TPointArray;
begin
if findColors(tpa, 16777215, 12, 52, 520, 68) then
begin
oldT := getImageTarget();
b := getTPABounds(tpa);
bmp := bitmapFromClient(b.x1, b.y1, b.x2+1, b.y2+1);
//you probably don't need all of these colors
fastReplaceColor(bmp, 16777215, col); //pure white
fastReplaceColor(bmp, 4231423, col); //light orange item text
fastReplaceColor(bmp, 65280, col);
fastReplaceColor(bmp, 255, col); //red
fastReplaceColor(bmp, 65535, col); //yellow?
fastReplaceColor(bmp, 16776960, col);
fastReplaceColor(bmp, 16744447, col);
fastReplaceColor(bmp, 28927, col);
fastReplaceColor(bmp, 25800, col);
getBitmapSize(bmp, w, h);
try
setTargetBitmap(bmp);
result := getTextAtEx(0, 0, w-1, h-1, 0, 4, 4, col, 0, 'upChars07');
finally
newT := getImageTarget();
setImageTarget(oldT);
freeTarget(newT);
if bitmapExists(bmp) then freeBitmap(bmp);
end;
end;
end;
If you tell us which this RSPS you're talking about, someone might be able to help you further.