Command will search the pattern on the image currently displayd on all screen devices. With this command you may check if the given pattern currently occurs on the device and make ny action (i.e. wait).
Parameters:- Expression of pattern image - Image expression - The evaluated image will be searched,
- Inversion - Checkbox - If inverion is turned on, the command will wait until the pattern will disappear from screen. If unchecked, command waits until the pattern occurs on the screen,
- Find all - Checkbox - If turned on, as the result will be returned the array of points - the coordinates of all matches of the pattern on image. If tuned off, the returned value will be single Point object - the coordinate of single match of the pattern,
- Name of the variable, to store the result(s) position - Variable name - Name of the variable to store the point of the screen, where pattern was found on screen. The upper left point position will be saved. The assigment takes place every time, just after the pattern was found. Leave empty, if no variable should be assigned. If command ends working and pattern was not found, variable will not be assigned. If ''Find all'' checkbox checked, the array of points will be stored.,
- Level of comparison - Scroll - How much the found image should be similar to the pattern (leave zero to 100
- Timeout - Integer expression - After how many miliseconds the searching should be stopped - no matter image was found or not,
- Area/Point where the iamge should appear - Point/area expression - Place where the pattern should be searched (area or the point of top left corner of the image). Leave empty if full screen/full image should be searched,
- Source of image - Image expression - Image where the patten will be searched. Leave empty to search on the image (screenshot will be created)..
Subprocedures:- FoundProcedure - Executed after image was found, just before the end of command. It will be executed on image found (if inversion is off) or on timeout (if inversion is on),
- NotFoundProcedure - Executed every time if pattern was not found, just before leaving the command. It will be executed if image was not found (if inverion is on) or on timeout (if inversion is off),
- OnSearching - Will execute if pattern was not found (or pattern was found if inversion is turned on). If only it was possible, the coordinates of pattern are stored in variable. This subprocedure is executed only between searching - if image was being searched and not found, and it will be searched again in a moment.
Every time, after image was being searched one, and only one procedure is executed.krzys2014-11-23