• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

LUA Script To Detect Colors On Screen (1 Viewer)

Bakhrom

Newcomer
Joined
May 24, 2020
Messages
1
Reaction score
0
Age
21
Location
United States of America
Is it possible to make a Lua script that can detect a specific color on a specific part of your screen and then trigger an event, kind of like Auto Hotkey scripting?
 

shelvacu

Newcomer
Joined
Jan 9, 2020
Messages
5
Reaction score
8
Age
22
Location
Earth
You'd need a library to interface with the OS to grab (effectively) a screenshot, and to send a click event or whatever you're hoping to trigger. You might be able to hack something together with a screenshot binary that spits out a file that you parse... but I'd recommend just learning AutoHotkey's scripting language and using that instead.
 
Top