Jump to content

"Go" as administrator


Recommended Posts

I have a program that runs as an administrator by default. It's icon has that little administrator indicator even though "Run as administrator" is not checked and I do not know how to run it as a regular user.

So now when I try to Send() keys to this program they are not accepted because that program is ran as admin and AutoIt is not.

If I make AutoIt3.exe Run as administrator I get "The requested operation requires elevation" message in the console and the code won't run. So only way for me to test my script is to compile it and run as admin, which is rather time consuming.

What do I need to do to make the "Go" action (aka F5) to execute the code as an admin?

Link to comment
Share on other sites

Hi and Welcome to the forums!

If #RequireAdmin doesn't work for what you're doing, or if it's annoying to answer the constant stream of UAC questions when testing your script, just run SciTE as admin. When an app runs another the child run with the parents user (something like that). You can clearly see this if you kill Explorer and start it again as admin... (don't do that).

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...