Control Spotify from factorio

This is the place to request new mods or give ideas about what could be done.
Post Reply

Possible?

Yes
1
9%
Maybe
3
27%
No
7
64%
 
Total votes: 11

wlkrd1
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Nov 03, 2019 6:06 am
Contact:

Control Spotify from factorio

Post by wlkrd1 »

I have a conundrum, I use Spotify a lot while gaming, especially while playing Factorio, and occasionally I come across a song that I'm either not in the mood to listen to or just want to skip which means I have to minimize Factorio, go to the Spotify window and skip the song. So my ultimate question is, is it at all possible to create a mod with a simple UI that has maybe Play/Stop/Next/Previous buttons and a now playing?
Just a shot in the dark. I am somewhat fluent in lua, but I don't know how I would connect with Spotify.
Tia!

PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Re: Control Spotify from factorio

Post by PFQNiet »

Does your keyboard not have media keys? Even if there aren't dedicated keys, there's usually a key combo to quickly skip to the next track. And if there isn't, any decent music player should provide hotkey functionality.

Qon
Smart Inserter
Smart Inserter
Posts: 2119
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: Control Spotify from factorio

Post by Qon »

It is possible, but you would need a "translating" program that reads files written by the mod and that can actually control spotify directly. A mod can't directly control spotify though. But why should it be a mod? Autohotkey can let you hit media keys from another hotkey and it would work the same except it keep working when Factorio is off.

Neither would give a "now playing" text. Should be possible to get it from spotify title text, easy if spotify provides now playing there. Could be inserted into factorio with a rcon mod...

A lot of effort, don't do it.

User avatar
MEOWMI
Filter Inserter
Filter Inserter
Posts: 309
Joined: Wed May 22, 2019 12:21 pm
Contact:

Re: Control Spotify from factorio

Post by MEOWMI »

As said, usually music players will let you configure global shortcut keys that you can use at any time, in addition to the default media keys which should also work if your keyboard has them.

Post Reply

Return to “Ideas and Requests For Mods”