VB.NET SimulateModifiedKeyStroke Chords

Jun 18, 2013 at 1:26 AM
Hi All,

I want to send CTRL-ALT-END to a Remote Desktop. I do not have enough experience to convert the below to work in VB. I have successfully simulated single keys or even two key combos but not chords. VB says too many arguments when I do InputSimulator.SimulateKeyPress(VirtualKeyCode.CONTROL, VirtualKeyCode.MENU, VirtualKeyCode.END)

Thanks for your help!

// You can simulate complex chords with multiple modifiers and key presses
// For example CTRL-ALT-SHIFT-ESC-K which is simulated as
// CTRL-down, ALT-down, SHIFT-down, press ESC, press K, SHIFT-up, ALT-up, CTRL-up
new[] { VirtualKeyCode.CONTROL, VirtualKeyCode.MENU, VirtualKeyCode.SHIFT },
new[] { VirtualKeyCode.ESCAPE, VirtualKeyCode.VK_K });