dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

[Missing API]keybd_event, mouse_event #287

Closed h82258652 closed 7 years ago

h82258652 commented 8 years ago

These two api is very useful for simulate the user input.

vbfox commented 8 years ago

Hi,

Both are obsolete and were replaced by SendInput (That is already there : https://github.com/AArnott/pinvoke/blob/b597a865739ec0a5223deab913e87a1614f302fb/src/User32.Desktop/User32.cs#L683 )

But you can do a PR to add them if you want, even if obsolete it'll fill the gap in User32 export coverage.

h82258652 commented 7 years ago

Thanks for response, finally I found Windows Input Simulator: https://www.nuget.org/packages/InputSimulator/ It is easy to use, I think I can close this issue now.