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 followingSendKeysChild("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: W13832Filename: Sending Keystrokes to Locked Workstations.txt