相关疑难解决方法(0)

使用SendKeys发送Windows密钥

我正在研究C#中的快捷方式.我成功使用SendKeys实现了Ctrl,Alt和Shift.

像这样;

Ctrl+ C:

System.Windows.Forms.SendKeys.SendWait("^c");
Run Code Online (Sandbox Code Playgroud)

Alt+ F4:

System.Windows.Forms.SendKeys.SendWait("%{F4}");
Run Code Online (Sandbox Code Playgroud)

但是我不能用SendKeys发送"Windows Key".我试过ex:Win+ E:.SendWait("#e")但它没有用.我应该使用什么而不是"#"?

谢谢.

c# keyboard-shortcuts sendkeys

29
推荐指数
3
解决办法
9万
查看次数

标签 统计

c# ×1

keyboard-shortcuts ×1

sendkeys ×1