Jump to content
Sign in to follow this  
Nabu

Initial question - out of focus applications

Recommended Posts

Nabu

Hello all.

I'm attempting to make a script for installing software on my computers at work. I've been trying to do it using Powershell, but I've been having problems with sending keystrokes to applications that don't have command line options.

I can do it with sendkeys (in fact, I've done it before with sendkeys in vbscript), but the application has to be in focus - so someone has to be logged on. And one of my goals is to have the installer run in the background when no one is logged on.

As part of my searches, I came across a recommendation for AutoIT. So, before I start digging too much, would I be able to do this through AutoIT, or am I just trying to fight against a windows thing?

Thanks,

Bill

Share this post


Link to post
Share on other sites
Nahuel

Look in the help file for ControlSend() and ControlClick() <_<

Share this post


Link to post
Share on other sites
Das Ami

Look in the help file for ControlSend() and ControlClick() <_<

But he wants to do it without beeing logged in, I don't think that's possible.

Share this post


Link to post
Share on other sites
ScriptFanatic

But he wants to do it without beeing logged in, I don't think that's possible.

Hi

Can you exlain why it's not possible to send click or keystrokes when no user is logged on?

If I schedule a task, the task runs under the context of a certain user credentials.

Thanks,

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.