Jump to content

Runing script as another process + Keyboard


Guest atzplzw
 Share

Recommended Posts

Guest atzplzw

Hello!

I want to run the autoit script as another process. That means that this user is not active and so I can't use e.g. Send("key")

Is there any way to send a program (actually the process) a Keyboard input which is not active and even running under a different user than the logged-in one?

thx

atzplzw

Link to comment
Share on other sites

If you mean that you want to run a script as another user, check the help file for RunAsSet. If you want your script to appear as another process than Autoit.exe, just compile the script and the process will be the name of the compiled script.

To send to keys to a process that will depend on the process. You can only send keys to a process that will accept input, eg Winword.exe, but not spoolsv.exe.

To send keys to inactive windows, search the helpfile for ControlSend.

Hope it helps

CheersNobby

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
 Share

  • Recently Browsing   0 members

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