Sending events

It is preferred that events are sent not as Win32 messages to applications, but as input events that will be converted
to the messages. This will move the mouse pointer and look (almost indistinguishably) like a real person on the keyboard and mouse.

Mouse and Keyboard Events

Mouse and keyboards events are internally sent using the SendInput Win32 API procedure, using the complex INPUT structure. The source code wraps this interface with Send() methods for Mouse and Keyboard event messages

To prevent problems, Mouse events are constrained a region of the screen. Usually this a rectangle (as a RECT structure) for selected window. This prevents horrible things like dragging desktop items to the trash, launching other applications, or shutting down the application.

Application Events

Not supported yet

Additional Reading

Last edited Oct 17, 2009 at 12:33 AM by randym, version 5


No comments yet.