This method does not work there apparently are multiple spotify IDs and when minimizing spotify it takes the wrong one to maximize. SpotifyHwnd := DllCall("GetWindow", "uint", spotifyHwnd, "uint", 2) We need the app's third top level window, so get next twice. WinGet, spotifyHwnd, ID, ahk_exe spotify.exe Run "C:\Users\username\AppData\Roaming\Spotify\Spotify.exe"
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |