提示,请不要用于非法的用途,如游戏外挂、键盘监控、广告自动点击等等恶意程序,否则后果自负。
This article explains how to use the mouse and keyboard library that I have created. This library consists of two things: global mouse and keyboard hooks, and global mouse and keyboard simulators.
The global hooks contain a set of events that follow the .NET event model, so they should be very simple to use if you've done anything with events before.
The simulators will actually simulate mouse movements, clicks, keyboard presses, etc. This can be useful for macro recording (which is one of sample projects), and of course, messing with your friends. :)