VCB Posted June 22, 2023 Share Posted June 22, 2023 Hello, Using AutoItX with c# on Visual Studio 2019, .Net Framework 4.7.2, Windows 10. Got this error message while trying to run: System.DllNotFoundException HResult=0x80131524 Message=Unable to load DLL 'AutoItX3.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Source=AutoItX3.Assembly The dll files 'AutoItX3.Assembly.dll' and 'AutoItX3.Assembly.xml' are added in the project. What could be going wrong ? Link to comment Share on other sites More sharing options...
Solution TheXman Posted June 22, 2023 Solution Share Posted June 22, 2023 (edited) 6 hours ago, VCB said: Message=Unable to load DLL 'AutoItX3.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) The error message is telling you exactly what the problem is, your application cannot find "AutoItX3.dll". You appear to have overlooked/omitted the last bullet in the "AutoItX > .Net Interface > Using the .NET Interface" topic in the Help File. It clearly states that you need to distribute those files with your executable. Adding the reference to the AutoItX3 assembly, and "using" it, automatically includes that file in the output folder. To automatically include the other 2 DLL files in the output folder, you can add them to your project as "existing items" and set their properties to have them copied to the output folder. Otherwise, you can just manually copy the files the output folder. Output (bin\debug) Folder: Edited June 22, 2023 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
VCB Posted June 23, 2023 Author Share Posted June 23, 2023 Hello, Thanks @TheXman, however, nothing is being exported, the error happens while running it from within VisualStudio. The full screenshot is attached. Link to comment Share on other sites More sharing options...
VCB Posted June 23, 2023 Author Share Posted June 23, 2023 Hello, @TheXman, OK, copied the AutoItX3.dll and AutoItX3_x64.dll files in the output folder, now things are working ! Seems that the AutoItX3.dll and AutoItX3_x64.dll files need to be in the output folder, just to run the code. Thanks for the heads-up ! 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