Frage

Does the user have to be always logged in to the PC for SendKeys.Send() to work? Can the user running that particular application have the machine in locked state?

War es hilfreich?

Lösung

the SendKeys.Send(string keys) sends keystrokes to the active application. when the user is not logged, there is not active application. the locked state is not considered as an active application. so no, the SendKeys won't work for you.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top