Jump to content
Sign in to follow this  
Guest atzplzw

Runing script as another process + Keyboard

Recommended Posts

Guest atzplzw


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?



Share this post

Link to post
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


Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.