Skip to content

SavePix

CommandClientNeeds client
savepix {x} {y} {slot} [colour]
Sets
#PixCol
uo.dll
GetPix

Also searchable as: SavePix · pixel · read pixel

savepix reads the colour of the pixel at x, y in the client window. It stores it in #PixCol and in a numbered slot, together with the position, for cmppix to compare later.

Parameter Meaning
x, y Position in the client window.
slot Slot number, 0 to 1000.
colour Optional. Store this colour instead of reading the screen; #PixCol is not changed.

Pixels are read from the screen, so the client window has to be visible, not covered by another window.

; remember the colour under the mouse in slot 1
savepix #CursorX #CursorY 1
display ok Colour #PixCol saved
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.