我正在开发一个Java应用程序,需要以编程方式打开Windows的"开始"菜单。
我搜索了cmd命令,但没有找到解决方案。
您可以尝试使用Robot
类来模拟Win键上的按键。
一种方法是通过Windows外壳。
尝试这样做:
set wShell=wscript.createobject("wscript.shell")
wShell.sendkeys "^{ESC}"
Set WshShell = Nothing
使用此处概述的方法->http://www.javaquery.com/2011/02/how-to-execute-microsft-windowss-shell.html