Simulating Alt + Tab Key Press

12.1k Views Asked by At

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?

2

There are 2 best solutions below

1
On BEST ANSWER
2
On

You can use SendKeys class and it’s Send method