Is there a .NET library for sending keystrokes, mouse clicks, mouse movements and other input? Similar to AutoHotKey but for .NET library use?
I'开发者_如何学Cm looking to essentially write code similar to what I can do with AutoHotKey, only in .NET and C#, because it's a much more robust environment. I didn't know if there was a wrapper library available for these sorts of hooks or not.
Does anyone know of a library that does this for .NET?
This actually looks pretty promising, I haven't tested it yet, but it's at least a good starting point. Not too bad considering it's on CodeProject. lol.
For sending keys you can use System.Windows.Forms.SendKeys.
For mouse and other input you have to wrap the SendMessage API.
精彩评论