Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch Onenote UWP using Autohotkey

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

like image 737
Jason Avatar asked Dec 25 '22 00:12

Jason


1 Answers

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: 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
like image 88
Drikus Roor Avatar answered Jan 13 '23 18:01

Drikus Roor