문제

How can I send key presses and mouse clicks to an application as if they were actually coming from the keyboard and mouse i.e. how can I fully simulate user input? I expect this will involve randomising the intervals that the keys are held down, raising events e.t.c. rather than using System.Windows.Forms.SendWait.

도움이 되었습니까?

해결책

Thanks to M.Babcock's suggestion I spent some more time searching on SO and eventually came across the Widows Input Simulator. This will do precisely what I need.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top