Skip to main content

I am working on shortcuts in C#. I succeed implementing Ctrl, Alt and Shift with SendKeys.

Like this;

CtrlCtrl + CC:

System.Windows.Forms.SendKeys.SendWait("^c");

System.Windows.Forms.SendKeys.SendWait("^c");

or AltAlt + F4F4:

System.Windows.Forms.SendKeys.SendWait("%{F4}");

System.Windows.Forms.SendKeys.SendWait("%{F4}");

But I can't send "Windows Key" with SendKeys. I tried ex: WinWin + EE : .SendWait("#e").SendWait("#e") but it's not working. What should I use instead of "#"?

Thanks.

I am working on shortcuts in C#. I succeed implementing Ctrl, Alt and Shift with SendKeys.

Like this;

Ctrl + C:

System.Windows.Forms.SendKeys.SendWait("^c");

or Alt + F4:

System.Windows.Forms.SendKeys.SendWait("%{F4}");

But I can't send "Windows Key" with SendKeys. I tried ex: Win + E : .SendWait("#e") but it's not working. What should I use instead of "#"?

Thanks.

I am working on shortcuts in C#. I succeed implementing Ctrl, Alt and Shift with SendKeys.

Like this;

Ctrl + C:

System.Windows.Forms.SendKeys.SendWait("^c");

or Alt + F4:

System.Windows.Forms.SendKeys.SendWait("%{F4}");

But I can't send "Windows Key" with SendKeys. I tried ex: Win + E : .SendWait("#e") but it's not working. What should I use instead of "#"?

Thanks.

edited title
Link
yamen
  • 15.7k
  • 3
  • 44
  • 53

SendKey Sending Windows key using with ex : {Win + E}SendKeys

edited title
Link
Raj Ranjhan
  • 3.9k
  • 2
  • 21
  • 29

c# - SendKey using with ex : {Win + E}

Source Link
nuriaycan
  • 483
  • 1
  • 4
  • 5
Loading