Hi,
ich habe nach ein Script gesucht, das mir den aktuell laufenden Song aus einer Spotify-Playlist löscht und zum nächsten Song springt ohne dabei den Focus von anderen Programmen zu nehmen.
Jedoch hat keines der gefunden Scripte für sich so richtig funktioniert, weswegen ich selber eines zusammenkopiert und angepasst habe.
Vorraussetzung ist, dass Spotify immer in der gleichen Größe ist und man sich in einer editierbaren Playlist befindet. Wer hier elegantere Lösungen hat, nur her damit
; "the rightside-strg + DELETE" for deleting current song and go to next song. Note that playlist must be active in spotify >^Del:: ;the activating shortcut DetectHiddenWindows, On ;don't know why I need this SetKeyDelay , , 20 ; makes it, that clicks won't come that fast ControlClick, x20 y1005, ahk_class SpotifyMainWindow ;click on a specific window, without acitvating or moving the actual mouse. You must set the right coordinates, use AU3_spy, normally in C:\Program Files\AutoHotkey\AU3_Spy.exe You need this, to highlite current song in Spotify sleep 400 ;wait. Adjust if you want. It seems spotify is sometime slow and need this time ControlSend, ahk_parent, {Ctrl Up}{Ctrl Down}{Right}{Ctrl Up}, ahk_class SpotifyMainWindow ;go to next song sleep 200 ;wait again for sluggish spotify ControlSend, ahk_parent, {Del}, ahk_class SpotifyMainWindow ;delte highlighted song, while next song is already playing return ;jump to middle of the song, without losing focus of your current program >^PgDn:: ;rightside ctrl+PageDown DetectHiddenWindows, On ControlClick, x1026 y1047, ahk_class SpotifyMainWindow return