OmarWM Posted May 15, 2020 Posted May 15, 2020 Hello everyone, I am totally new to AutoIt and just getting started, I tried some sample scripts for controlling notepad and I liked it, so i was trying to do this with a desktop executable, but whenever i am trying to run it, using either run() or ShellExecute(), it does not work, I am using SciTE to run my code and it does not give any error (Exit Code: 0) but when i run it, a new file will be generated in the same directory with the name (hs_err_pid35992.log), and this is error is shown there (this is not the full file content): # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005b071fa4, pid=35992, tid=0x000000000000b6d0 # # JRE version: Java(TM) SE Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.191-b12 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [awt.dll+0x91fa4] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # What i dont understand here, is what does Java have to do with this? I am not sure what programing language that exe was written with, but i suspect it is C++ and not Java. Even weirder, this sometimes actually work for whatever reason, but most of the times the above error file is generated. Appreciate your help with this, and sorry if my description is not informative as I am totally newbie with this. Regards, Omar
ripdad Posted May 15, 2020 Posted May 15, 2020 Did you try running your script with #RequireAdmin at the top of your script? "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward
Developers Jos Posted May 15, 2020 Developers Posted May 15, 2020 Try running yu script with the x64 version of Autoit3 instead of the regular AutoIt3.exe! Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
OmarWM Posted May 15, 2020 Author Posted May 15, 2020 Hello ripdad and Jos, Thank you both for putting the time and respond to me, I have already tried #RequireAdmin but it did not work, same result. I have compiled my code (which is basically just running this program) into 64bit exe but still same results To be honest, my first impression with autoit was great but now i feel like i reached a wall appreciate the help gents Regards, Omar
Moderators JLogan3o13 Posted May 15, 2020 Moderators Posted May 15, 2020 What is the application you are trying to run? Have you attempted to disable AV? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
OmarWM Posted May 15, 2020 Author Posted May 15, 2020 Hi JLogan3o13, It is not known application, but something customized to handle some encoding for .dat files. I have tried running the application from command line, even without any administrator privileges, by putting the full path in command line, and it is working fine, everytime i try it, it opens normally, but not from autoit. Regarding AV, sorry but i did not understand what you mean by it. Best Regards, Omar
Moderators JLogan3o13 Posted May 15, 2020 Moderators Posted May 15, 2020 Disable anti-virus to ensure it is not stepping on your script. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
OmarWM Posted May 17, 2020 Author Posted May 17, 2020 Hi JLogan3o13, So i have installed windows server 2016 on a VM without any AV, and still the issue is happening, I think it is a bug with Autoif, because when i tried it from autoit package within Python, there was no issue with the run command what so ever, but when i use Autoit directly from SciTE script editor, of it i compile the code into exe from that editor, i am facing this issue, this is weird !! Any advise gents ? Regards, Omar
Developers Jos Posted May 17, 2020 Developers Posted May 17, 2020 16 minutes ago, OmarWM said: I think it is a bug with Autoif That doesn't make much sense now does it? So what about you share the details about what you are exactly doing and the script you have? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
OmarWM Posted May 18, 2020 Author Posted May 18, 2020 Hi Jos, Thank you for your reply, I have imported autoit into python and I am using it from there, I am not facing any issue with it as of now. As of now, things are looking good, and I would appreciate if you can refer me to resources or sample python scripts for autoit in python, thanks. Regards, Omar
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