How to detect UWP app running?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AtleastItried
Posts: 51
Joined: 03 Mar 2017, 04:51

How to detect UWP app running?

30 Apr 2018, 17:39

Code: Select all

WinWait ahk_exe onenoteim.exe
This was my best guess, but doesn't seem to work. I want a solution that won't trigger on another window that also contains OneNote in it's name, but can't find one.
ggeorge02
Posts: 1
Joined: 27 Jun 2023, 17:23

Re: How to detect UWP app running?

18 Sep 2023, 16:57

I don't understand why but this code works for OneNote for Windows 10 unlike onenoteim.exe.

Code: Select all

SetTitleMatchMode, 2

#If WinActive("- OneNote ahk_class ApplicationFrameWindow", "OneNote")
!d:: Send ^e
^l:: Send ^e
#If
return
[Mod edit: [code][/code] tags added. Please use them yourself in future posts.]

I found the code on this webpage after some rigorous searching:
https://stackoverflow.com/questions/51799858/how-to-make-autohotkey-work-in-onenote-for-windows-10-app-not-onenote

I hope this reply on an old post helps someone!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Lpanatt, peter_ahk and 298 guests