RuneAudio keyboard client for Windows
Posted: 30 May 2014, 15:24
While working at home I was missing the ability to control the playback without having to focus on the RuneUI's browser tab/windows. I was used to do it in the past when using foobar2000, using the multimedia keys of my Logitech Illuminated Keyboard. So I decided to solve my little issue writing a simple script for AutoHotKey.
I'm going to share it with everyone else who could have my same needs. This should work with every keyboard with multimedia keys.
=== INSTRUCTIONS ================
1) Download and install AutoHotKey from the official website
2) Download and install CURL for Windows
(I installed this package for Win64)
3) Create an empty text file with this content:
and save it as RuneAudio.ahk where you want (e.g. under your Documents folder)
4) Right click on the AutoHotKey icon in the tray bar and select Edit This Script from the menu
5) add this line in the script:
where <PATH> is where you put the RuneAudio.ahk script before, or
if you put under your Documents folder (and where <USER> is your user name
After that, save the modified file
6) Right click on the AutoHotKey icon in the tray bar and select Reload This Script from the menu
7) Use your multimedia keys to control playback and enjoy your music while doing something else
============================
The scripts simply makes CURL requests to RuneUI at these urls:
http://runeaudio.local/command/?cmd=CMD
where CMD is a command from MPD playback command reference.
You can replace runeaudio.local with your RuneAudio's device IP address if your PC doesn't resolve the hostname.
I'm going to share it with everyone else who could have my same needs. This should work with every keyboard with multimedia keys.
=== INSTRUCTIONS ================
1) Download and install AutoHotKey from the official website
2) Download and install CURL for Windows
(I installed this package for Win64)
3) Create an empty text file with this content:
- Code: Select all
Media_Prev::
Run, curl http://runeaudio.local/command/?cmd=previous,, Hide
return
Media_Next::
Run, curl http://runeaudio.local/command/?cmd=next,, Hide
return
Media_Play_Pause::
Run, curl http://runeaudio.local/command/?cmd=pause,, Hide
return
;Volume_Mute::
;Run, curl "http://runeaudio.local/command/?cmd=setvol 0",, Hide
;return
Volume_Down::
Run, curl "http://runeaudio.local/command/?cmd=volume -1",, Hide
return
Volume_Up::
Run, curl "http://runeaudio.local/command/?cmd=volume +1",, Hide
return
and save it as RuneAudio.ahk where you want (e.g. under your Documents folder)
4) Right click on the AutoHotKey icon in the tray bar and select Edit This Script from the menu
5) add this line in the script:
- Code: Select all
#Include <PATH>\RuneAudio.ahk
where <PATH> is where you put the RuneAudio.ahk script before, or
- Code: Select all
#Include C:\Users\<USER>\Documents\RuneAudio.ahk
if you put under your Documents folder (and where <USER> is your user name
After that, save the modified file
6) Right click on the AutoHotKey icon in the tray bar and select Reload This Script from the menu
7) Use your multimedia keys to control playback and enjoy your music while doing something else
============================
The scripts simply makes CURL requests to RuneUI at these urls:
http://runeaudio.local/command/?cmd=CMD
where CMD is a command from MPD playback command reference.
You can replace runeaudio.local with your RuneAudio's device IP address if your PC doesn't resolve the hostname.