WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

Input

Edit

Question

Are there any limitations to what input simulation as described here can do?

Edit

Answer

Yes, and those limitations are not negligible!

Whether you simulate mouse or keyboard input, you must be aware that if the handler for the input event queries status directly to the device, the device will answer with its real status.

This is particularly true for the keyboard when asking the status of modifer keys such as Control, Shift, Alt, etc. For the mouse, if the mouse is queried directly for the button status, the device will respond with the real status, not the one simulated (e.g., MouseDownEvent for the left mouse button).

Refer to related link for details on an alternative method to simulate/generate input.

Edit

Related Links

Input: Alternative ways to simulate input

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.