Add string to Dictionary (multi pairs)

I have an activity (GetVisibleText) that give me the word info back. That’s al working correctly and I can loop through it, but I need the info from the rectangle.

This is what I got:

  TextInfo 
  {
    Color=0,
    Region=Region 
    {
      Rectangle=
      [{
        X=656,Y=515,Width=16,Height=18
      }] 
    },
    Text="ID" 
  },

With a For Each I can get the rectangle to a string (with item.region.Rectangle.Value.ToString), but how to proceed? I need the X, Y, Width and Height separated. The idee was to use a dictionary, so that can easy use Example(“X”).tostring to get the value of X.

@Eppo
we can access the different properties by API. Have a look below

grafik

Slider1(0) is corresponding to your variable item from the for each loop

Thanks, that was the solution I was looking for! Didn’t know (and didn’t try) to put an X, Y, etc after the value.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.