windows-10autohotkey

How to start Windows Store apps in AutoHotKey?


Window Store apps are not like the classic Windows apps. The latter usually are installed at clear paths under C:\Program Files. So, AutoHotKey (AHK) scripts can simply run a classic app by "Run" with the path to the app executable. However, it seems there is no simple path to Windows Store app executables. So, how to start Windows Store apps in AutoHotKey scripts with a simple way?


Solution

  • Assume the OS is Windows 10. The following steps are a simple way to start Windows Store app in AHK script:

    1. Create a folder, e.g. D:\WinStoreAppLinks
    2. Drag and drop a Windows Store app, e.g. OneNote (mobile), by mouse in All App List to D:\WinStoreAppLinks (through File Explorer). It will create a link there, OneNote. You can rename it as you want.
    3. The app can be run in AutoHotKey scripts (or Command Prompt), by e.g.:

    Run, D:\WinStoreAppLinks\OneNote