Jump to content

1 Screenshot

About This File

UDF has 2 versions:
- Integrated version: dll is already integrated into UDF without any hassle of copying additional dll.
- Separate version: UDF and dll file are provided separately

 

Edited by Trong


What's New in Version 1.19.05.2025

Released

Speed optimization and code fixes


User Feedback

Recommended Comments

Turranius

Posted (edited)

Works nicely. Never got it to work in vmware for some reason. Wrote my script on my own machine which worked fine. As soon as I try it on vmware workstation 15, I just get "! Dll not found or Call Dll error !".

I've verified the location of the dll. Also tried compiling as a x86 exe to try that dll. Strange. Guess it checks video memory or something which differs from a physical computer.

Adding a consolewrite on @error after the dllcall just gives me code 1, which according to dllcall help is

  1 = unable to use the DLL file,
Edited by Turranius
Trong

Posted

On 1/30/2020 at 1:29 AM, Turranius said:

Works nicely. Never got it to work in vmware for some reason. Wrote my script on my own machine which worked fine. As soon as I try it on vmware workstation 15, I just get "! Dll not found or Call Dll error !".

I've verified the location of the dll. Also tried compiling as a x86 exe to try that dll. Strange. Guess it checks video memory or something which differs from a physical computer.

Adding a consolewrite on @error after the dllcall just gives me code 1, which according to dllcall help is

  1 = unable to use the DLL file,

- The problem has been corrected!

Trong

Posted

reDownload new version!

vulcan4d

Posted (edited)

Same issue with error but only on a fresh Win10 machine.

! Dll not found or Call Dll error !

The script works just fine on an existing Win10 computer but if you run this on a fresh installed Win10 machine 32 or 64bit this is the error you get.  Same script, same files, same locations.  There is clearly some kind of pre-requisite to use the DLL Call.  If there is any debug method I can provide this information.

Edited by vulcan4d
nklight

Posted (edited)

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/

Edited by nklight
tellme

Posted (edited)

when i add

#include <GuiListView.au3> 

i get error as so i have to use GuiListView.au3 but cant so have to delete from #include one of them to run script, any solve for this one? thank you.

C:\Program Files (x86)\AutoIt3\Include\SecurityConstants.au3"(63,30) : error: $TOKENPRIMARY previously declared as a 'Const'

 

Edited by tellme
Zoric

Posted

No DLL found in the ZIP file

Trong

Posted

6 hours ago, Zoric said:

No DLL found in the ZIP file

The dll is already integrated in the UDF, you don't need to copy the dll!

kctvt

Posted

Hello, I have position (X,Y) already, I dont want to use mouse click to take ScreenCapture. How to do that ? 

 Could you give me some Example ? 

Trong

Posted

16 hours ago, kctvt said:

Hello, I have position (X,Y) already, I dont want to use mouse click to take ScreenCapture. How to do that ? 

 Could you give me some Example ? 

Script yourself to take pictures at that coordinate with your dimensions and store them for use with Image Search UDF

primetime

Posted

I'm testing this now in mid 2023 on Windows 11, and the script partially works. It appears as though it's finding the correct image location on screen, but what's actually happening is that the image that's being saved is offset, usually by ~100px in the y direction, and then it finds that location and re-applies the offset, so the cursor goes to the correct location but the image it's searching for is really the wrong image. This causes some other issues as you might imagine, when attempting to build programs, so I'm wondering if I'm missing some obvious fix or if anyone else has encountered this behaviour? Still, pretty amazing code, but I'd love to figure out this offset issue. Thanks!

×
×
  • Create New...