How can I fire a key press or mouse click event without touching any input device at system level?

后端 未结 4 2350
小鲜肉
小鲜肉 2020-12-14 05:15

How can I fire an automatic key press or mouse click event when a color appears on the screen on other application or browser?

4条回答
  •  猫巷女王i
    2020-12-14 05:23

    You can use the .NET SendKeys class to send keystrokes. Emulating mouse clicks requires P/Invoke. I don't know how to detect colors on the screen.

提交回复
热议问题