screen

screen.screen.snap_region

Declaration
lua
screen.snap_region(x1, y1, x2, y2)
Description
Take a snapshot of screen region into internal buffer for later comparison with screen.diff_percent().
Parameters
NameTypeRequiredDefaultDescription
x1integerRequired—Left
y1integerRequired—Top
x2integerRequired—Right
y2integerRequired—Bottom
Return Values
TypeDescription
booleantrue
Example
lua
screen.snap_region(0, 0, 750, 200)