Jas*_*son 4 cmd autohotkey onenote
我正在尝试从 autohotkey 启动 onenote UWP,但无法确定要启动的特定 exe 文件。我运行了 onenote uwp,发现名称为 Microsoft.Office.OneNote_17.7466.57691.0_x64__8wekyb3d8bbwe,位置为 C:\Program Files\WindowsApps\Microsoft.Office.OneNote_17.7466.57691.0_x64__8bbwekyb3d 但是使用下面的代码,我打开了onenote 2016
#o::
run "C:\Program Files\WindowsApps\Microsoft.Office.OneNote_17.7466.57691.0_x64__8wekyb3d8bbwe"
return
Run Code Online (Sandbox Code Playgroud)
谁能帮我这个?
非常感谢!
杰森
如果您已将 OneNote UWP 配置为单击onenote-cmd://磁力链接时的默认应用程序,您可以编写 AutoHotKey 脚本来运行此磁力链接。
1. 将 OneNote UWP 配置为打开 OneNote 磁力链接的默认应用:

2. 用 Windows+O 打开 OneNote UWP:
#o::
Run, onenote-cmd://
return
Run Code Online (Sandbox Code Playgroud)
3.用Windows+N打开OneNote UWP Quick Note
#n::
Run, onenote-cmd://quicknote?onOpen=typing
return
Run Code Online (Sandbox Code Playgroud)
试试这个(未经测试):
Run, onenote:
Run Code Online (Sandbox Code Playgroud)
http://winsupersite.com/windows-10/how-open-windows-10-apps-using-shell-commands
编辑:
您还可以创建此应用程序的快捷方式,以便从脚本中以这种方式运行它:
#o:: Run, %A_Desktop%\OneNote.lnk
Run Code Online (Sandbox Code Playgroud)
http://www.laptopmag.com/articles/create-keyboard-shortcuts-windows-10