action:Find_Image_on_Screen
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:Find_Image_on_Screen [2016/03/12 19:35] – add link to action AlainLifchitz | action:Find_Image_on_Screen [2023/09/15 06:21] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | The //Find Image on Screen// action finds a specified image on the screen and stores the rectangle containing the match followed by the fuzz of the match (0-100), ie, (left, | + | ====== |
| - | The image location is stored in the variable may be referenced as a structure | + | The //Find Image on Screen// action finds a specified |
| - | * ImageLoc.x — Horizontal position of upper left corner. | + | {{ findimageonscreen.png? |
| - | * ImageLoc.y — Vertical position of upper left corner. | + | |
| - | * ImageLoc.width — the Width of the match (same as the source image). | + | |
| - | * ImageLoc.height — the Height of the match (same as the source image). | + | |
| - | * ImageLoc.fuzz — the Fuzz of the match. | + | |
| - | * ImageLoc.Midx — Horizontal position of center. | + | |
| - | * ImageLoc.Midy — Vertical position of center. | + | |
| - | You can require | + | You can specify |
| - | This action | + | * An image pasted in to the action. |
| + | * An image from the System Clipboard, Trigger Clipboard or a Named Clipboard (v9.0+). | ||
| + | * An image loaded from a file (v9.0+). | ||
| + | * An image from elsewhere on the screen (v9.0+). | ||
| + | |||
| + | You can also specify the fuzz allowed in the match, as well as whether | ||
| + | |||
| + | You can search the entire desktop, or you can restrict your search to a specific screen or window, or to a specific area on the screen. | ||
| + | |||
| + | There is an option in the action (gear) ⚙ menu to have the action wait until the image appears (v11.0+). | ||
| + | |||
| + | Suppose that the image location is stored in the [[manual: | ||
| + | |||
| + | * ImageLocation.x — Horizontal position of upper left corner. | ||
| + | * ImageLocation.y — Vertical position of upper left corner. | ||
| + | * ImageLocation.width — the Width of the match (same as the source image). | ||
| + | * ImageLocation.height — the Height of the match (same as the source image). | ||
| + | * ImageLocation.fuzz — the Fuzz of the match. | ||
| + | * ImageLocation.MidX — Horizontal position of center. | ||
| + | * ImageLocation.MidY — Vertical position of center. | ||
| + | |||
| + | If this action fails to find the image, | ||
| + | |||
| + | After an action like this is executed, and an image was found, then the [[token: | ||
| + | |||
| + | Please note that " | ||
| ===== How To Use ===== | ===== How To Use ===== | ||
| Line 21: | Line 40: | ||
| ===== Example ===== | ===== Example ===== | ||
| - | {{: | + | {{: |
| - | {{ : | + | |
| - | ===== See Also ===== | + | {{ find-image-on-screen2.png? |
| + | {{ find-image-on-screen3.png? | ||
| - | ---- | + | ===== See Also ===== |
| - | === Actions === | + | ==== Actions |
| * [[action: | * [[action: | ||
| Line 34: | Line 53: | ||
| * [[: | * [[: | ||
| - | === Conditions === | + | ==== Conditions |
| * [[condition: | * [[condition: | ||
| * [[: | * [[: | ||
| - | === Collections === | + | ==== Collections |
| * [[collection: | * [[collection: | ||
| * [[: | * [[: | ||
| - | ---- | ||
| ==== Forum ==== | ==== Forum ==== | ||
| - [[https:// | - [[https:// | ||
| - [[https:// | - [[https:// | ||
| + | - [[https:// | ||
| + | - [[https:// | ||
| - | - [[https://www.google.fr/search?q=site: | + | - [[https://forum.keyboardmaestro.com/ |
action/Find_Image_on_Screen.1457811303.txt.gz · Last modified: by AlainLifchitz
