kctvt Posted June 22, 2022 Share Posted June 22, 2022 (edited) Hi everybody , this is my code : #include <MsgBoxConstants.au3> #include <String.au3> #include <Array.au3> #include <Excel.au3> #include <FileConstants.au3> #include <GUIConstantsEx.au3> #include <File.au3> #include <IE.au3> #include <Inet.au3> #include <FTPEx.au3> #include <Misc.au3> #include <StringConstants.au3> #include <Date.au3> #include <ImageSearch.au3> #include <WinAPIProc.au3> #include <Constants.au3> #RequireAdmin While 1 $x_IMG1 = 0 $y_IMG1 = 0 $x_IMG2 = 0 $y_IMG2 = 0 Local $search1 = _ImageSearch('LGL-Logo.png', 0, $x_IMG1, $y_IMG1, 0) if($search1 = 1) then MsgBox($MB_SYSTEMMODAL, 'ERROR - 34', "ERROR - 34"&"_") ExitLoop EndIf WEnd This code is still work if I use SciTE.exe to run . And when I use Aut2exe_x64.exe to Destination (.Exe) file, this code dont work and we have error "subscript used on non-accessible variable". How to fix this ? ImageSearch.au3 Edited June 22, 2022 by kctvt update code Link to comment Share on other sites More sharing options...
bogQ Posted June 22, 2022 Share Posted June 22, 2022 (edited) Error line You can debug from that line but in my head question is can included au3 file call his dll as x64 compiled... Edited June 22, 2022 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
Zedna Posted August 13, 2022 Share Posted August 13, 2022 Just to clarify: If your external DLL (which is called by DllCall) is 32bit then your script must be compiled as 32bit too. Alternatively: If your external DLL (which is called by DllCall) is 64bit then your script must be compiled as 64bit too. See here for details and syntax for explicit 32/64bit compile directives... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now