Reputation: 453
I'm familiar with the command Keyboard.Instance.HoldKey(KeyboardInput.SpecialKeys.CONTROL);
as well as Keyboard.Instance.Enter("Z");
, but I don't seem to be able to find a way to hold down alphanumeric keys using this. Am I missing something? HoldKey seems to only take SpecialKeys.
I'm wanting to hold down both CTRL and Z at the same time. I don't want to merely press the Z key.
Upvotes: 1
Views: 1185
Reputation: 547
This so far as I can see is not possible with White.
Instead, you could use Input Simulator to do this, which has a SimulateKeyDown and SimulateKeyUp method available for every key.
Upvotes: 0