Jump to content

Send() keys when desktop is locked


ska
 Share

Recommended Posts

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

Link to comment
Share on other sites

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().

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...