2

I want to simulate pressing WinKey + digit to switch between to application in taskbar.

Is there a way to do this with managed code or I have to use win32 API? I tried to use SendKeys.SendWait with something like "^{TAB}2" but this writes 1 in the field of Start Menu. Nor does "(^{TAB})1" works.

How can I pass WinKey to SendKeys?

hts
  • 23
  • 2

1 Answers1

0

My research showed that without the use of third party tools like AutoHotKey you can't really simulate the windows key combination shortcuts without the use of the win32 API.

This post showed a very easy implementation of the win32 API though. Just create a class and call on it when you need to. Best part is that it works using any key you want by passing in a Keys enum value

Community
  • 1
  • 1
SpartanDonut
  • 365
  • 1
  • 8