Jump to content
Sign in to follow this  
ska

Send() keys when desktop is locked

Recommended Posts

ska

Hi,

is there a way to Send() keys to a window, when the desktop is locked?

I'm trying to automate a NSIS (Null Soft Installer) exe, there I have the problem that I need to select a number of checkboxes, but it does not work:

OK:

ControlTreeView("GNU Octave", "Choose Components", "SysTreeView321", "Select", "Octave Forge");

Send(" ");

Fails:

ControlTreeView("GNU Octave", "Choose Components", "SysTreeView321", "Check", "Octave Forge");

The time, the installer is running, the desktop is locked. It looks like that the installation pauses until an admin re-logins.

Do I have to go this route:

?? There are some posts about a function to send keys to non-active windows, but I cannot find it in AutoIt 3.3.6.1.

I also tried, but failed:

ControlSend("GNU Octave", "Choose Install Location", WinGethandle("GNU Octave", "Choose Install Location"), $CmdLine[2]);

Regards, ska

Share this post


Link to post
Share on other sites
ska

I also tried, but failed:

ControlSend("GNU Octave", "Choose Install Location", WinGethandle("GNU Octave", "Choose Install Location"), $CmdLine[2]);

This example was from another problem I had, before I discovered that the NSIS installers honor the /D= option even without /S.

I also cannot replace Send(" "); of the problem noted in the parent post by ControlSend().

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.