Skip to content

Instantly share code, notes, and snippets.

@blockloop
Created October 1, 2013 21:16
Show Gist options
  • Save blockloop/6785223 to your computer and use it in GitHub Desktop.
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.
#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
}
@kriserickson
Copy link

Thanks for this... Works perfectly and I have been looking for a working Autohotkey for rdio for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment