Created
October 1, 2013 21:16
-
-
Save blockloop/6785223 to your computer and use it in GitHub Desktop.
Control Rdio with key combinations using autohotkey.
NOTE: this works with either the Rdio desktop app or a Chrome application shortcut but I've noticed that the Chrome shortcut works better and since the Rdio desktop application is basically just a Site-specific browser I just use Chrome.
This file contains 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
#SingleInstance force | |
SetTitleMatchMode 2 | |
RControl & UP:: | |
Send {Volume_Up} | |
return | |
RControl & DOWN:: | |
Send {Volume_Down} | |
return | |
RControl & Left:: | |
{ | |
DetectHiddenWindows, On | |
WinGet, rdioid, ID, Rdio ; Gets the rdio window id | |
IfWinExist Rdio | |
{ | |
ControlSend,,{Left}, ahk_id %rdioid% | |
} | |
else | |
{ | |
Send {Media_Prev} | |
} | |
DetectHiddenWindows, Off | |
return | |
} | |
RControl & Right:: | |
{ | |
DetectHiddenWindows, On | |
WinGet, rdioid, ID, Rdio ; Gets the rdio window id | |
IfWinExist Rdio | |
{ | |
ControlSend,,{Right}, ahk_id %rdioid% ;sends the hotkey to play/pause | |
} | |
else | |
{ | |
Send {Media_Next} | |
} | |
DetectHiddenWindows, Off | |
return | |
} | |
RControl & Enter:: | |
{ | |
DetectHiddenWindows, On | |
WinGet, rdioid, ID, Rdio ; Gets the rdio window id | |
IfWinExist Rdio | |
{ | |
ControlSend,,{space}, ahk_id %rdioid% ;sends the hotkey to play/pause | |
} | |
else | |
{ | |
Send {Media_Play_Pause} | |
} | |
DetectHiddenWindows, Off | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this... Works perfectly and I have been looking for a working Autohotkey for rdio for a while.