Simulate atl + tab

May 18, 2014 at 3:58 PM
Hi,

I try to simulate alt + tab combinaison to switch between apps but I don't find a way.

I try with :
var sim = new InputSimulator();
sim.Keyboard.KeyDown(VirtualKeyCode.MENU);
sim.Keyboard.KeyPress(VirtualKeyCode.TAB);

with :
sim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.MENU, VirtualKeyCode.TAB);

but nothing work.
I'm on wpf 4.5 application.

Thank you,
Nasser
May 21, 2014 at 10:51 AM
Hi!

Try to use LMENU or RMENU instead of MENU then it should work.

Majti