1

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?

Elmo
  • 6,409
  • 16
  • 72
  • 140
  • 1
    This link looks like it might be helpful: http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/4b6dbc43-a026-4957-9178-91d2001e2d0d/windows-8-block-alttab-simulation – davidsbro Aug 10 '13 at 21:33

2 Answers2

1

You can use SendKeys class and it’s Send method

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
  • `SendKeys.Send("%{Tab}")`, right? Doesn't work for me in Windows 8.1. Does it work for you? – Elmo Aug 10 '13 at 19:02
  • there is problem in passing Alt+Tab in Win 8. See a workaround http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/4b6dbc43-a026-4957-9178-91d2001e2d0d/windows-8-block-alttab-simulation#291eb5b4-f6d2-49b6-83db-658bd832f2c9 – Vivek Raj Dec 31 '13 at 06:02
1

Here is a link that looks like it may be helpful and useful: http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/4b6dbc43-a026-4957-9178-91d2001e2d0d/windows-8-block-alttab-simulation

davidsbro
  • 2,761
  • 4
  • 23
  • 33