Hotkeys:
Previous track | Win+1 |
Play/pause | Win+2 |
Next track | Win+3 |
Volume down | Win+Q |
Volume up | Win+W |
Script:
#1:: ; Previous track ControlSend, ahk_parent, ^{Left}, ahk_class SpotifyMainWindow return #2:: ; Play/pause ControlSend, ahk_parent, {Space}, ahk_class SpotifyMainWindow return #3:: ; Next track ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow return #q:: ; Volume down ControlSend, ahk_parent, ^{Down}, ahk_class SpotifyMainWindow return #w:: ; Volume up ControlSend, ahk_parent, ^{Up}, ahk_class SpotifyMainWindow returnHow does it work:
It's very simple - I just mapped my favourite audio player hotkeys to default Spotify keyboard shortcuts, e.g. #1 means Win+1 in AutoHotkey syntax and pressing this hotkey sends ^{Left} (i.e. Crtl+Left) to main window of Spotify application.
I confirm it works, however, only when spotify is not minimized to the tray bar (ie it actually has a window AutoHotKey can send message to).
ReplyDeleteCheck out toastify
ReplyDeleteThank you to the comment above about Toastify.
ReplyDeleteDid you mean the Taskbar? I just tested the AutoHotKey script & it works correctly when Spotify is minimized to the Windows 7 Taskbar.
ReplyDeleteI don't know of any way to minimize it to the system tray. That doesn't appear to be an option in Spotify. I use a free power menu app (and DM2) and they can usually minimize programs to the tray and neither can do this to the Spotify app.
I figured it out... finally. The "hide" feature only exists when clicking on the duplicate tray icon. Thanks for the recommendation regarding Toastify. I kept accidentally clicking on the taskbar icon and I was looking for a way to remove it and still be able to control it.
ReplyDeleteHere's Toastify. It hasn't been updated in 2 years, but it still works even with the latest 0.5.2.84 version.
http://toastify.codeplex.com/
Works fine on Windows XP as long as long as Spotify isn't minimized to the tray bar.
ReplyDeleteYes it works. Was able to get my Logitech G35 headset side buttons working with Spotify using this. Use the script above exactly as it is and then mapped the G35 buttons to WindowsKey+1, WindowsKey+2 and WindowsKey+3. Use WindowsKey+Q and WindowsKey+W for volume of Spotify. Very slick and easiest fix for Logitech G35 and Spotify I've yet seen.
ReplyDeleteThanks man.