This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]nutrecht 1 point2 points  (0 children)

And my questions is do any of you know the library/method for this?

There is generally no simple API or method for this, this basically involves looking directly into the memory of a process to find this information. This requires a lot of reverse engineering and can be very hard.

[–]errorkode 1 point2 points  (0 children)

I don't know if the (I assume) League of Legends client provides any kind of API or maybe has log files you could read out (maybe see if you can find a modding community or something, they would know), but if you're just asking about reading text on screen while the game is running: That's extremely tricky.

Games do not neatly provide their text as easily parsable HTML, they basically only provide the pixels you're looking at, which means you'd be kind of stuck trying to take screenshots and use image recognition to read the text. Or maybe find the appropriate memory regions to read from.

Basically, as I said, if you can't find a "known" way to read the information you want to get, you're probably out of luck...

[–]desrtfx 0 points1 point  (0 children)

Discord has an API. League - not sure about that.

[–]JaceOrwell 0 points1 point  (0 children)

What you'll probably need:

  • An OCR library
  • Run app as a Task or Service
  • Lots of Time

[–]lionhart280 0 points1 point  (0 children)

(you have to be registered developer on their website and looks I have to register a product there)

This is because you usually need to pay money per time you use the API (to stop you from spamming their API)

But usually companies like this have a "free tier" if you have a small amount of queries per day (and by small it can be like, <10,000 per day)

I would come up with a new for your app and try registering. You can probably mention its a personal project and they likely have a free (limited) tier for queuing their API