Guest atzplzw Posted December 1, 2004 Share Posted December 1, 2004 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 More sharing options...
nobby Posted December 1, 2004 Share Posted December 1, 2004 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 More sharing options...
Guest atzplzw Posted December 1, 2004 Share Posted December 1, 2004 Thanks! ControlSend is just what I needed. atzplzw 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