How to send an “ENTER” key press to another application?

前端 未结 4 1457
一整个雨季
一整个雨季 2021-01-06 08:07

I have code that launches an external application and automatically fills in a password prompt.

I want to automate the pressing of the \"ENTER\" key, so that the use

4条回答
  •  旧巷少年郎
    2021-01-06 08:37

    Quick answer. Duplicate your final SendMessage call using the WM_KEYUP event. Some systems only trigger when the key is released not when it is pushed.

    Something to try until the real programmers respond. (:-)

提交回复
热议问题