According to this question, I tried to use windows key inside my WPF application. But, it didn’t work! Here is my code
case "My Computer":
DeviceSpeak.Speak("Opening My Computer");
SendKeys.SendWait("{Key.LWin}E");
break;
My question is how to use windows key in C#. I want to open my computer(WindwosKey+E).
I don’t think there is a way to simulate
WINkey press usingSendKeys. Anyway, you can open special locations using their CLSIDs:Some more CLSIDs (some might not work):