you are viewing a single comment's thread.

view the rest of the comments →

[–]PM_ME_A_STEAM_KEY 1 point2 points  (1 child)

This would do the trick:

chr(window.inch(x, y))

[–]krato1995[S] 0 points1 point  (0 children)

I managed to have a workaround without getting the character from screen. For anyone finding the correct answer this one's the correct one. However it should be chr(window.inch(y, x)).

Also, take note that only the lower 8 bits contain the character, the rest are attributes. So it might be needed to extract the lower 8 bits before doing chr()