r/lua • u/Future_Growth_1022 • Apr 06 '26
Lua see screen
What tools exist so that Lua can read text from the user’s screen and respond to it? Any methods are needed
2
Upvotes
r/lua • u/Future_Growth_1022 • Apr 06 '26
What tools exist so that Lua can read text from the user’s screen and respond to it? Any methods are needed
7
u/butwhyorwhere Apr 06 '26
So what exactly do you want to do? What text? You want to create an UI? Your question is too broad, please be more specific. io.read() reads from stdin, but I think thats not what you want.
Also I would suggest to describe the whole problem you want to solve so somebody can help you, instead of one sentence without context.
3
u/topchetoeuwastaken Apr 06 '26
you need an opencv (or another computer vision library) wrapper for lua. you either do that yourself (most easily done with luajit's ffi) or if some good soul has already done it for you, use what is already done.
from there on, you use the API as you would in C. in general however, for such a task, python by far has better support, even if lua is an objectively better language
1
u/HeavyCaffeinate Apr 06 '26
Found this https://github.com/Nixola/screentool.lua