Causes the steps following this action to execute if the specified pixel(s) is(are) in the specified state. If not, execution follows the next Else or End If action, whichever comes first. Commonly used to check if a graphic or area of the screen matches (or stops matching) a "checksum" of pixel colors. Very useful for detecting subtle changes in a window's contents that cannot be measure by any other means. In visual mode, it is easy to create the checksum values, while in the properties of the action, move the mouse pointer around the target window while repeatedly pressing the INSERT key.
Declaration
<AMIF XPOS="number" YPOS="number" COLOR="number" RELATIVE="YES/NO">
See Also: If, If Compare Files, If Folder Exists, If Last Step, If Process Running, If Text Contains, If Windows Exists, End If, End Select/Case, Goto, Label, Select/Case, Else
Property |
Type |
Required |
Default |
Markup |
Description |
If |
Text (Options) |
Yes |
Pixel(s) Matches |
ACTION="differ" |
Specifies the type of pixel check to be performed. The available options are:
|
X Position |
Number |
Yes |
(Empty) |
XPOS="36" |
Specifies the X coordinate of the pixel(s) to watch for. To capture pixel coordinates, click Add, place the cursor over the desired area on the screen and press INSERT. Multiple pixels/color pairs may be specified. |
Y Position |
Number |
Yes |
(Empty) |
XPOS="360" |
Specifies the Y coordinate of the pixel(s) to watch for. To capture pixel coordinates, click Add, place the cursor over the desired area on the screen and press INSERT. Multiple pixels/color pairs may be specified. |
Color |
Number |
Yes |
(Empty) |
COLOR="13160660" |
Specifies the color(s) that the corresponding pixels specified in XPOS and YPOS should match. To capture pixel coordinates, click Add, place the cursor over the desired area on the screen and press INSERT. Multiple pixels/color pairs may be specified. |
Coordinates relative to foreground window |
Yes/No |
No |
Yes |
RELATIVE="NO" |
If enabled, pixel coordinates will be relative to the foreground window. If this parameter is selected, the Coordinates relative to screen parameter is ignored. This parameter is enabled by default. |
Coordinates relative to screen |
Yes/No |
No |
No |
RELATIVE="NO" |
If enabled, pixel coordinates will be relative to the size of the screen. If this parameter is selected, the Coordinates relative to foreground window parameter is ignored. |