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?
To do this, find the AutoHotKey script you want to add to the startup, select it, hold the Alt key, and drag it to the same folder. Step 2: The above action will instantly create a shortcut to the script. If you wish, you can remove the “. ahk – shortcut” suffix from the shortcut name.
Right-click: Within an open Explorer window, you can right-click any . ahk file and select "Compile Script" (only available if the script compiler option was chosen when AutoHotkey was installed). This creates an EXE file of the same base filename as the script, which appears after a short time in the same directory.
Assume the OS is Windows 10. The following steps are a simple way to start Windows Store app in AHK script:
Run, D:\WinStoreAppLinks\OneNote
Run shell:AppsFolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App
Check shell:AppsFolder for full app names list
Here is a more verbose answer that worked for me:
shell:AppsFolder
. This is a directory with all your Windows appsWindows Terminal
), right click it, and select Create Shortcut
C:\Shortcuts
). Rename if desiredAdd this to your AHK script:
Run, "C:\Shortcuts\Windows Terminal"
Then simple reload your AHK script. Enjoy
This autohotkey script https://github.com/JuanmaMenendez/AutoHotkey-script-Open-Show-Apps works perfectly with any kind of app.
In the specific case of Windows Store Apps, read the section Find AppUserModelID and use the Utility Function c)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With