This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
action:Find_Image_on_Screen [2019/07/08 00:26] peternlewis |
action:Find_Image_on_Screen [2023/09/15 02:21] peternlewis |
||
---|---|---|---|
Line 15: | Line 15: | ||
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. | 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:Variables|Variable]] `ImageLocation` (chosen by you in the action). Then parts of the image data (properties) may be referenced in other actions like [[action:Move_or_Click_Mouse|Move and Click Mouse]] using the following notation: | Suppose that the image location is stored in the [[manual:Variables|Variable]] `ImageLocation` (chosen by you in the action). Then parts of the image data (properties) may be referenced in other actions like [[action:Move_or_Click_Mouse|Move and Click Mouse]] using the following notation: | ||
Line 30: | Line 32: | ||
After an action like this is executed, and an image was found, then the [[token:FoundImage|%FoundImage%]] token (v8+) will return the data of the last found image. | After an action like this is executed, and an image was found, then the [[token:FoundImage|%FoundImage%]] token (v8+) will return the data of the last found image. | ||
- | Please note that "ImageLocation" is just an example Variable (which you the use can set), whereas [[token:FoundImage|%FoundImage%]] is a token provided by the Keyboard Maestro Engine. | + | Please note that "ImageLocation" is just an example Variable (which you the user can set), whereas [[token:FoundImage|%FoundImage%]] is a token provided by the Keyboard Maestro Engine. |
===== How To Use ===== | ===== How To Use ===== | ||
Line 40: | Line 42: | ||
{{:action:find.image.on.screen2.kmmacros|Find Image on Screen.kmmacros}} | {{:action:find.image.on.screen2.kmmacros|Find Image on Screen.kmmacros}} | ||
- | {{:action:find.image.on.screen2.jpg?673&nolink|}} | + | {{ find-image-on-screen2.png?nolink&503x591 | Find Image Example }} |
- | {{:action:find.image.on.screen3.jpg?659&nolink|}} | + | {{ find-image-on-screen3.png?nolink&452x456 | Find Image Results }} |
===== See Also ===== | ===== See Also ===== | ||
Line 61: | Line 63: | ||
* [[:Collections|See all Collections]] | * [[:Collections|See all Collections]] | ||
- | ===== Forum ===== | + | ==== Forum ==== |
- [[https://forum.keyboardmaestro.com/t/can-i-zoom-the-picture-i-have-saved-in-click-at-found-image-action/2103/2|Can I zoom the picture I have saved in "Click at found image" action?]] | - [[https://forum.keyboardmaestro.com/t/can-i-zoom-the-picture-i-have-saved-in-click-at-found-image-action/2103/2|Can I zoom the picture I have saved in "Click at found image" action?]] |