Created
June 19, 2024 18:30
-
-
Save drandarov-io/96a5df7d1dee2d545f22fcaddf522284 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2.0 | |
#SingleInstance | |
DetectHiddenWindows 1 | |
sendSpotifyKey(key) { | |
; ControlClick "Intermediate D3D Window1", "ahk_class Chrome_WidgetWin_1 ahk_exe Spotify.exe" | |
; ControlFocus "Intermediate D3D Window1", "ahk_class Chrome_WidgetWin_1 ahk_exe Spotify.exe" | |
; ControlFocus "Chrome_RenderWidgetHostHWND1", "ahk_class Chrome_WidgetWin_1 ahk_exe Spotify.exe" | |
ControlFocus "Chrome Legacy Window", "ahk_class Chrome_WidgetWin_1 ahk_exe Spotify.exe" | |
ControlSend key, , "ahk_class Chrome_WidgetWin_1 ahk_exe Spotify.exe" | |
} | |
#!PgUp::sendSpotifyKey "+{Right}" | |
#!PgDn::sendSpotifyKey "+{Left}" | |
#!Home::sendSpotifyKey "!+Q" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment