Simulating Alt + Tab Key Press

Elmo picture Elmo · Aug 10, 2013 · Viewed 11.2k times · Source

I have tried to simulate Alt + Tab key press using SendInput, keybd_event, SendMessage and SendKeys.Send but none of them work. All other key presses work but only Alt + Tab doesn't work.

Can anyone tell me how do I open the Alt + Tab Task Switcher programatically?

Answer

Rahul Tripathi picture Rahul Tripathi · Aug 10, 2013

You can use SendKeys class and it’s Send method