WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Sending Keystrokes

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Sending Keystrokes to a Locked Workstation

Keywords:     sendkeys sendkeysto  sendkeyschild

Question:

I'm having a problem sending keystrokes to a MS Access 2.0 database app but only when my NT 3.51 workstation is locked (either manually or via p'worded screen saver). The code works when not locked. What happens is I do the following
	SendKeysChild("Radiology Management Reporting Facility", "Form: MainRadiology", "!d")
which is of course an Alt-d to the app. This works fine when the workstation is not locked. But if locked, the Alt-d just doesn't get sent. I tried putting a WinActivChild in front but no luck (this should be redundant anyway).

I'd like to keep the workstation locked. Should I be sending something to unlock the workstation first??

Answer:

The SendKey code emulates the keyboard. If the workstation locked then WB cannot use SendKeys.

Try using SendMenusTo to pull down menu items and select them.

Use the Control manager extender to fill data in dialogs, etc.


Article ID:   W13832
Filename:   Sending Keystrokes to Locked Workstations.txt
File Created: 1999:04:15:16:56:40
Last Updated: 1999:04:15:16:56:40