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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
x1 | integer | Required | — | Left |
y1 | integer | Required | — | Top |
x2 | integer | Required | — | Right |
y2 | integer | Required | — | Bottom |
Return Values
| Type | Description |
|---|---|
| boolean | true |
Example
lua
screen.snap_region(0, 0, 750, 200)