Is there a way to get the hwnd-object from a specific window by only providing the executable path or name?
Like GetForegroundWindow()
from win32gui
but not just the foreground window.
Id imagine something like this: GetWindowByPath("C:/mypath/Spotify.exe")
or GetWindowByName("Spotify")
. Maybe with ahk? (I have no clue about AHK)
I've now read other questions and docs for hours and havn't found a way. Thanks in advance :)