Rick Posted February 4, 2009 Share Posted February 4, 2009 (edited) Hi , have a small query, if the script is set to #RequireAdmin and the user account then runs as the user account and not admin then an Autoit error pops up with "unable to open the script file". Is there a way to stop this error message should #RequireAdmin fail, maybe say something like requires admin credentials or something? I'm using v.3.2.13.11 Thanks Edited February 4, 2009 by Rick Who needs puzzles when we have AutoIt!! Link to comment Share on other sites More sharing options...
rudi Posted February 4, 2009 Share Posted February 4, 2009 (edited) Hi.Hi , have a small query, if the script is set to #RequireAdmin and the user account then runs as the user account and not admin then an Autoit error pops up with "unable to open the script file". Is there a way to stop this error message should #RequireAdmin fail, maybe say something like requires admin credentials or something?use IsAdmin() and exit, if the user isn't admin equiv.I'm using v.3.2.13.11The latest version is 3.3.0.0Regards, Rudi. Edited February 4, 2009 by rudi Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Rick Posted February 5, 2009 Author Share Posted February 5, 2009 Hi.use IsAdmin() and exit, if the user isn't admin equiv.Regards, Rudi.Yes thats fine, providing i dont use #RequireAdmin in the script which is what i'd prefer to do, the Autoit error occurs because it cant open the script, so all i was suggesting was the error be less an error of the program than the conditions its being run in if that makes sense!? Who needs puzzles when we have AutoIt!! 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