Sign in to follow this  
Followers 0
Guest atzplzw

Runing script as another process + Keyboard

3 posts in this topic

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

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


CheersNobby

Share this post


Link to post
Share on other sites

Thanks! ControlSend is just what I needed.

atzplzw

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  
Followers 0