This works fine for all programs I've tried, except for Minecraft. I'm using this:
Code: Select all
DetectHiddenWindows, On ; should not be necessary, the Minecraft window is visible
WinGet, ids, List
I suspect that this is because Minecraft is an "app", not a regular program. But then again, other apps, like calculator or weather work fine. They do have the problem that they're all run by the ApplicationFrameHost.exe process, but I only (mainly) care about the window title.
Is this a known problem? Is there a workaround, or do I need to switch to C#?
-Jörg
[1] https://github.com/zieren/kids-freedom-control/blob/master/ahk/kfc.ahk