imagesearch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
imagesearch [2018/05/10 14:51] – thekojukinator | imagesearch [2018/05/10 15:09] (current) – thekojukinator | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== 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 |
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | <code autoit> | ||
+ | ; Include the ImageSearch library | ||
+ | #include " | ||
+ | ; 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], | ||
+ | </code> | ||
===== Download ===== | ===== Download ===== |
imagesearch.1525978261.txt.gz · Last modified: 2018/05/10 14:51 by thekojukinator