c# - Simulate Mouse/Keyboard Input In WPF -


WPF has many questions related to emulating mouse / keyboard input (and for that matter, Windows) I have a general Something different than the question, I think, and I need your input. The posts I have seen have a specific high level action: I want to click it, I want to move the mouse here, etc. To emulate these, a bus can use the root event. However, I'm hoping to operate a mouse with a remote app and want to input mouse events at low-level: the position of the current mouse is x, y and the button position is such that my goal frame is WPF , But if something like a normal virtual mouse driver is to go, I am also good with it. I do not have security concerns: the applications receiving messages will be coded at high level, so I do not need crazy hacks. I'm ready to use managed or unmanaged code and want to take the rabbit hole deeper because this work needs to be done, but I do not want to change the wheel again.

Thoughts?

WPF has some built-in automation capabilities. It's a bit complicated, and I have not really tried to do it myself, but I have recently been reading about it - it's worth checking:

Or search for Google "WPF Automation"

Comments