Jump to content

Recommended Posts

Posted

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

Posted

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

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
×
×
  • Create New...