LMenard Posted September 17, 2015 Share Posted September 17, 2015 (edited) Folks, I'm brand new to AutoIt. I downloaded and installed the current version (I'm running on Windows 10 64-bit).I ran the "notepad" tutorial no problem. But when I change the Run() to point to any executable in the same directory as the script (including the AutoIt installer) it never launches.Run("autoit-v3-setup.exe")Nothing happens.I've also tried specifying the full path:Run("C:\Users\Me\Documents\autoit-v3-setup.exe")No difference.I even tried changing directory:FileChangeDir("C:\Users\Me\Documents")Run("autoit-v3-setup.exe")What am I missing?Thanks. Edited September 17, 2015 by LMenard Link to comment Share on other sites More sharing options...
Developers Jos Posted September 17, 2015 Developers Share Posted September 17, 2015 (edited) What returncode and errorcode are returned by run?jos Edited September 17, 2015 by 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. Link to comment Share on other sites More sharing options...
LMenard Posted September 17, 2015 Author Share Posted September 17, 2015 Sorry, but like I said, I'm brand new to AutoIt...How do I display the return code and error code? I couldn't find an example of that in the Tutorials.I added "@error" to my script and it didn't change anything. I get no output.I also tried adding "@exitCode" but got an error saying that was not valid.Thanks. Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted September 17, 2015 Share Posted September 17, 2015 ShellExecute() Link to comment Share on other sites More sharing options...
LMenard Posted September 17, 2015 Author Share Posted September 17, 2015 ShellExecute() didn't change anything either I'm afraid.But... I compiled it into an exe instead of just running it, then did "Run as Administrator" on the exe and it now works.My current account is an Administrator, so I'm not sure why I have to do this, but I'll continue digging into it.A suggestion... a few more tutorials would be nice.Thanks. 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