Strange Behaviour with SimulateModifiedKeyStroke

Mar 29, 2012 at 9:19 AM
Edited Mar 29, 2012 at 9:46 AM


I want to do a "ctrl + c" with your input simulator class.

To do that I use this line :

InputSimulator.SimulateModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_C);

The copy seems to work but after, when I click in a window my keyboards seems to be blocked with the ctrl key pressed.

For exemple if I just press "P" after, it open the print dialog...

Could you explain me why this behaviour occurs ?