FindClick() - ImageSearch, Clicking, & More [Newest Version]
Posted: 06 Jun 2016, 20:52
Updated March 15, 2019 (fixed bug with "am" option, i.e. search near mouse cursor pos, and changed controlclick to use the window named with "r")
Updated February 17, 2017 (fixed bug with e/d/w options found by Vizzy)
Updated July 23, 2016 (per suggestions of Remonell)
Updated July 20, 2016 (fixed GDI+ image creation problem)
Updated June 6, 2016 (fixed 1-pixel offset with "a" option, tweaked debugger)
Note: This is not a new function but the old post got archived meaning no one can reply, so now you can reply here if you need help.
A script that combines many uses of the AutoHotkey ImageSearch command into one powerful and easy-to-use function.
GitHub: https://github.com/berban/FindClick
Script: https://github.com/berban/FindClick/blob/master/FindClick.ahk
Documentation: https://github.com/berban/FindClick/blob/master/FindClick.pdf
FindClick is standard library compatible and works with AutoHotkey Basic or _L
Some of this function's uses in no particular order:
Image of the screenshot creator gui:
Image of the debugger gui:
Image of the function in my standard library:
(Sure it's huge but it has lots of features! And it fits nicely into your library if you set SciTE to condense labels like I do.)
I apologize, the documentation trails off in a few parts, I never got around to finishing it. But just ask here if you have any questions!
Updated February 17, 2017 (fixed bug with e/d/w options found by Vizzy)
Updated July 23, 2016 (per suggestions of Remonell)
Updated July 20, 2016 (fixed GDI+ image creation problem)
Updated June 6, 2016 (fixed 1-pixel offset with "a" option, tweaked debugger)
Note: This is not a new function but the old post got archived meaning no one can reply, so now you can reply here if you need help.
A script that combines many uses of the AutoHotkey ImageSearch command into one powerful and easy-to-use function.
GitHub: https://github.com/berban/FindClick
Script: https://github.com/berban/FindClick/blob/master/FindClick.ahk
Documentation: https://github.com/berban/FindClick/blob/master/FindClick.pdf
FindClick is standard library compatible and works with AutoHotkey Basic or _L
Some of this function's uses in no particular order:
- Click on an image (find on-screen image, find picture, imagesearch, click on picture)
- Click on a color (find color, search for color, PixelSearch replacement, pixelsearch windows 7, pixelsearch windows 8)
- Search all monitors for an image (imagesearch multi-monitor support)
- Find all instances of an image (count images, imagesearch multiple image)
- Create an image for ImageSearch (imagesearch help, imagesearch macro, imagesearch library, simple imagesearch script, easy imagesearch)
Image of the debugger gui:
Image of the function in my standard library:
(Sure it's huge but it has lots of features! And it fits nicely into your library if you set SciTE to condense labels like I do.)
I apologize, the documentation trails off in a few parts, I never got around to finishing it. But just ask here if you have any questions!