我正在编写Windows窗体应用程序,我需要以编程方式返回到桌面.
我尝试了这段代码,但它没有用:
using System;
using System.Windows.Forms;
private void ToggleDesktop() {
SendKeys.Send("^({ESC}D)"); //<-- Semantic error, Should simulate: WIN+D
}
Run Code Online (Sandbox Code Playgroud)
有可能这样做吗?