Reputation: 1130
I'm trying to launch onenote UWP from autohotkey but cannot pin down the specific exe file to launch. I ran the onenote uwp and found the name as Microsoft.Office.OneNote_17.7466.57691.0_x64__8wekyb3d8bbwe and the location is C:\Program Files\WindowsApps\Microsoft.Office.OneNote_17.7466.57691.0_x64__8wekyb3d8bbwe. But using the following code, I opened the onenote 2016
#o::
run "C:\Program Files\WindowsApps\Microsoft.Office.OneNote_17.7466.57691.0_x64__8wekyb3d8bbwe"
return
Can anyone help me with this?
Thanks a lot!
Jason
Upvotes: 5
Views: 3384
Reputation: 21
This code worked for me:
Run, onenote-cmd:// ; this opens windows 10 OneNote.
And this code works for opening OF365 OneNote:
Run, onenote ; opens OF365 OneNote
Upvotes: 2
Reputation: 1105
If you have configured OneNote UWP to be your default app when clicking the onenote-cmd://
magnet link, you can write your AutoHotKey script to run this magnet link.
1. Configure OneNote UWP as your default app for opening a OneNote magnet link:
2. Open OneNote UWP with Windows+O:
#o::
Run, onenote-cmd://
return
3. Open a OneNote UWP Quick Note with Windows+N
#n::
Run, onenote-cmd://quicknote?onOpen=typing
return
Upvotes: 9
Reputation: 10603
Try this (untested):
Run, onenote:
http://winsupersite.com/windows-10/how-open-windows-10-apps-using-shell-commands
EDIT:
You can also create a shortcut of this app to run it this way from your script:
#o:: Run, %A_Desktop%\OneNote.lnk
http://www.laptopmag.com/articles/create-keyboard-shortcuts-windows-10
Upvotes: 4