EditCategory
Input
EditQuestion
Are there any limitations to what input simulation as described here can do?
EditAnswer
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.
EditRelated Links
Input: Alternative ways to simulate input