The problem is there's no way to get the real directory of MS Store apps. My code doesn't work on MS Store's version of the calculator. How else can I activate it on this PC, while still retaining the same functionality for my other PCs using the default calculator?
Code: Select all
#c::
CalcTitle := "Calculator ahk_exe ApplicationFrameHost.exe"
if WinExist(CalcTitle) {
WinActivate, %CalcTitle%
} else {
;Run, ahk_exe ApplicationFrameHost.exe
Run, Calc.exe
Sleep 300
WinActivate, %CalcTitle%
}
return