AlomWare Toolbox lets you find any image on the desktop, such for clicking as part of an automated action. It uses the step called "Image: Find on desktop" to do the search. You first need to snip the image that you want to find and save it to a folder, then assign that snippet to find it on the desktop later.
If the image is found, its location is stored in these variables (which will all be blank if not found):
- imagex$ = The image's left position on the desktop.
- imagey$ = The image's top position on the desktop.
- imagew$ = The image's width (in pixels).
- imageh$ = The image's height (in pixels).
Here's an action that searches the desktop for the image specified in step 1, and then puts the mouse over the center of it (the calculation in step 3):
(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 Image: Assign "c:\image\to\find.png"
0002 Image: Find on desktop ""
0003 Mouse: Move to desktop position "{=imagex$+(imagew$/2)},{=imagey$+(imageh$/2)}"
(End)As a test
without using an image file, you can snip part of the desktop with the Windows "Snipping Tool" and copy the snip to the clipboard. Then run the action below to find what you snipped on the desktop:
(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 Image: Assign "clip"
0002 Image: Find on desktop ""
0003 Mouse: Move to desktop position "{=imagex$+(imagew$/2)},{=imagey$+(imageh$/2)}"
(End)