imagesearch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
imagesearch [2018/04/05 14:01] – thekojukinator | imagesearch [2018/05/10 15:09] (current) – thekojukinator | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
===== Overview ===== | ===== Overview ===== | ||
- | I came across | + | I needed |
- | I found a solution in [[https:// | + | I found a solution in [[https:// |
- | I took the //UDF// library and made the following improvements to it: | + | I took the **UDF** library and made the following improvements to it: |
- | * Updated relevant functions to return an array of //[x,y]// coordinates on success, and //False// on failure. Original search functions returned | + | * Updated relevant functions to return an array of '' |
* Updated relevant functions with an extra parameter for a window handle, making it possible to limit the search area to the boundaries of a specified window. | * Updated relevant functions with an extra parameter for a window handle, making it possible to limit the search area to the boundaries of a specified window. | ||
- | * Added the ability to handle multi-monitor desktops by re-defining desktop boundaries in to new // | + | * Added the ability to handle multi-monitor desktops by re-defining desktop boundaries in to new global |
- | ===== Syntax | + | ===== Example |
- | Coming soon™... | + | <code autoit> |
+ | ; Include the ImageSearch library | ||
+ | #include ".\ImageSearch\ImageSearch.au3" | ||
+ | ; This will be the target image file to search for | ||
+ | Local $target = " | ||
+ | ; Declare an init a variable to hold the search result | ||
+ | Local $result = False | ||
+ | ; Find the image across the entire desktop | ||
+ | $result = _ImageSearch($target, | ||
+ | ; If found, move the mouse to it | ||
+ | If IsArray($result) Then MouseMove($result[0], | ||
+ | </ | ||
===== Download ===== | ===== Download ===== | ||
- | {{:imagesearch.7z|ImageSearch}} is my updated package. It includes the original | + | I've put it up on [[https://github.com/TheKojukinator/ |
{{tag> | {{tag> |
imagesearch.1522951297.txt.gz · Last modified: 2018/04/05 14:01 by thekojukinator