About This File
UDF comes with the source code of the DLL!
Edited by Trong
What's New in Version 2025.5.25.1
Released
🌟 Advanced Search Capabilities
Two particularly powerful features of the ImageSearch
function are its ability to find scaled images and to handle transparency:
Scaled Image Search
The function can search for images even if they appear on the screen at a different size than the source image file. This is controlled by three parameters:
-
fMinScale
: The minimum scaling factor to test (e.g., 0.5 for 50% of original size). -
fMaxScale
: The maximum scaling factor (e.g., 1.5 for 150% of original size). -
fScaleStep
: The increment used to iterate through scales betweenfMinScale
andfMaxScale
.
The DLL will systematically resize the search image according to these parameters and attempt to find a match. If a scaled version is found, the fScaleSuccess
value in the debug information will indicate the scale at which the match occurred.
Transparent Background Search
The iTransparent
parameter allows specifying a color (in COLORREF
format) that should be treated as transparent during the search. Any pixels in the source image that match this transparent color will be ignored when comparing against the screen. This is invaluable for finding irregularly shaped images or icons that are displayed over varying backgrounds. The default value (-1) CLR_NONE
(0xFFFFFFFF) indicates no transparency.