Same issue with vulcan4d
Tried these things below
Make sure you use my UDF and dll. => Using version updated January 31, 2020
Have you tried disabling your antivirus before running? => Yes
Did you test the example script? => Testing "_ImageSearch_Sample.au3"
Have you set Screen Scale and layout = 100%? => Yes, scale 100% at 1920*1080
Have you installed the display driver? => Yes, using latest driver for rx570
Image capture and save successfully then failed at function DllCall(), result return = 0
Below is console log
>"D:\auto\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\auto\AutoIT_ImageSearch\_ImageSearch_Sample.au3"
--\\ ImageSearch by TRONG.LIVE //-- OSArch : X64 // AutoIT ver: 3.3.14.5 x86
-- WorkingDir : D:\auto\AutoIT_ImageSearch
-- ScriptFullPath : D:\auto\AutoIT_ImageSearch\_ImageSearch_Sample.au3
-- ImageSearchDLL : D:\auto\AutoIT_ImageSearch\_ImageSearch_DLL\_ImageSearch.dll (17kb)
-- ScreenCapture : X1=1042 Y1=342 X2=1095 Y2=383
! Search for images: D:\auto\AutoIT_ImageSearch\example.bmp
! Searching on the screen ...
! Dll not found or Call Dll error !
! Dll not found or Call Dll error !
! Dll not found or Call Dll error !
! Dll not found or Call Dll error !
! Dll not found or Call Dll error !
! Dll not found or Call Dll error !
>Process failed to respond; forcing abrupt termination...
>Exit code: 1 Time: 8.064
Please ask if you need further information.
========
Edit: VIP helped me figure out that VC++ is required for using ImageSearch.dll
make sure you have it or install with link below https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/