Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendKeys while NT WS is locked

Status
Not open for further replies.

bmclaws

Technical User
Nov 19, 2001
9
US
I'm having an issue with the SendKeys command. After opending the application, the script waits for the login window to open and become active, then uses the sendkeys command to fill out the UID and PW.

This works fine if the Workstation is unlocked, but running the script from Task Scheduler with the Workstation locked (its here at work) results in the application opening, but the login window never becomes active.

Any suggestions?

Thanks,

Barry
 
That's because, AFA the Sendkey method is concerned, the active window is defined as the window with keyboard focus.

Thus if the workstation is locked, the "workstation locked" window will ALWAYS be active in this context. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top