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?
You can use SendKeys class and it’s Send
method