CmpPix
cmppix {slot} [t|f] [lines]Also searchable as: CmpPix · compare pixel · pixel colour
cmppix reads the pixel saved in a slot by savepix again and compares it with the
colour saved there. Depending on the result, it runs the next line or block, or skips it, like an
if.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
slot |
The slot savepix used, 0 to 1000. |
t / f |
Optional. t (the default): run the next line or block when the colour is the same. f: run it when the colour is different. |
lines |
Optional. Without a block, how many of the following lines are controlled. Default: 1. |
As with if, a block’s { has to be the very next line.
Pixels are read from the screen, so the client window has to be visible, not covered by another window.
Example
Section titled “Example”; wait until the colour at 580,13 changes, then press Alt+F4savepix 580 13 1check:cmppix 1 f{ key F4 alt halt}wait 5goto checkSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.