This action allows to get the color of a window pixel according to the specified coordinates and save it into a variable. The color of a pixel is a number. It can be compared with a sample like an ordinary number or with another color using a tolerance.
Window Selection Mode
The action allows to use three selection modes of a window to take a screenshot:
•Use Window Parameters – the search of a window according parameters (Window Caption, Window class);
•Use Window Handle – according the Window Handle. Each window in a system has the unique Handle. It can be got in the loop Window Loop. For example, the following task can be made: to take all screenshots, which have the word Notepad in their captions.
•Use Current window – use the current active window.
Use alternate method of Snapshot
Generally, getting a window image works correctly. But, unfortunately, not always. Some applications do not allow you to take a picture directly from the window. For example, Google Chrome or applications with the Metro user interface. To get the image, you must use an alternative method in this case.
An alternative method is that the application cuts a window image from a desktop snapshot.
But please note that this method cannot get the correct image if the desired window (or part of the window) is covered by another window or goes beyond the desktop.
You need to ensure the visibility of the window before taking a snapshot.
Switch on this checkbox if you want to use the Window Caption for a search of a window. Then, fill in the field for the search of the Window Caption. The field can be filled in automatically when you select the window from the window list. You need to click the button to the right of the entry field. The usage of variables is allowed.
Window caption must match exactly
If it is necessary the Window Caption to be match exactly with the entry string, switch on this checkbox.
Switch on this checkbox if you want to use the Window Class for a search of a window. Then, fill in the field for the search of the Window Class. The field can be filled in automatically when you select the window from the window list. You need to click the button to the right of the entry field. The usage of variables is allowed.
Window class must match exactly
If it is necessary the Window Class to be match exactly with the entry string, switch on this checkbox.
Select Window on the screen
Using this button you can select any window in a screen and fill in fields automatically. Just direct the mouse cursor on the necessary window and click Ctrl to select the window or Esc to cancel the operation. When moving the mouse cursor, the active window is highlighted in a red frame. You can use the mouse to manipulate with windows.
When using of the mode Use Window Handle, this parameter is available to the user. The Window Handle identifies the window explicitly. It is convenient to use this mode in the Window Loop. The loop allows to perform the selection of windows according to necessary criteria and save the window handle into a variable. By means of the window handle it is possible to take a snapshot
Specify the coordinates of a pixel from the top left corner of a window snapshot. The usage of variables in the expression is allowed. You can specify the coordinates interactive clicking the button Select Point.
Save Color To Variable
Specify the name of the variable in which it is necessary to save the color. The color of a pixel is a number. For the convenience of sensing, the action saves color in a hexadecimal look.
For example, $FFFF00, $800000