Liking songs on Spotify has always been such a pain. It's virtually the only thing in Spotify which does not have a keyboard shortcut. There is no applescript for it. There is no menu item for it. No third-party Spotify addon could do it, and I tried at least a dozen. Any of those things would easily allow scripting or a custom keyboard shortcut.
But no, the only way to like the song is to click the tiny heart icon in the Spotify app. Which is also not easily scriptable, as the heart icon literally changes the position depending on the length of the song name.
So finally I stumbled upon keyboard maestro a couple of days ago and tried it out. And after creating a few macros and slowly understanding what KM's capabilities are, I took upon the challenge. And I finally, finally did it: with the mouse-click based on a found image, I could eventually set a hotkey for liking a song.
It isn't even a very complicated macro, but I thought maybe others would like to use it, too.
Spotify Like Hotkey.kmmacros (16 KB)