[英]Creating a desktop shortcut out of a key combination?
I need a little desktop shortcut that I could click with a mouse. 我需要一个可以用鼠标单击的桌面快捷方式。 It needs to perform the action WINDOWS + D .
它需要执行WINDOWS + D操作 。
I was told that I could build a .VBS file to create a desktop shortcut but I have absolutely no idea how to do so. 有人告诉我可以建立一个.VBS文件来创建桌面快捷方式,但是我绝对不知道该怎么做。 I'm clueless about coding and this sort of tech stuff.
我对编码和这类技术一无所知。
All I could find was this: 我只能找到的是:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^+{ESCAPE}"
Theoretically I could just replace those values for WINDOWS + D , but I don't know their correspondent strings. 从理论上讲,我可以将那些值替换为WINDOWS + D ,但是我不知道它们的对应字符串。
So, how can I accomplish that? 那么,我该怎么做呢?
Thanks! 谢谢!
Instead of that, why not try: 相反,为什么不尝试:
Set shell = wscript.CreateObject("Shell.Application")
Shell.MinimizeAll
Set Shell = nothing
Or maybe: 或者可能:
set Shell = wscript.CreateObject("Shell.Application")
Shell.ToggleDesktop
Set Shell = nothing
I don't have a Win 8 machine to test with right now. 我目前没有要测试的Win 8机器。 Let me know if it works.
让我知道它是否有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.