Quantcast
Viewing all articles
Browse latest Browse all 704

Help: Rainmeter Skins • Re: Adding variable background music to preexsisting code

I wanted to see if it would maybe be possible though, to add an option to one of the windows to be able to play audio based on the characters sprites (which change based on settings that you set her emotions as)
Depending on what those character sprites are (Image meters or other types of meter), how they change (typically in some action options from a measure or meter), and what kind of audio files you're thinking of (for example, .wav or .mp3 files), this should be possible.

So, once you identify where in the code those character sprites change, you can:
- if it's about .wav files, add to that corresponding action option the desired [Play...] bangs, see:
https://docs.rainmeter.net/manual/bangs/#Application
- if it's about .mp3 files and you use a supported player that can start minimized and play some file from the command line, add a bang like:

Code:

["FullPathToYourPlayerHere" "FullPathToYourAudioFileHere"]
to run it and play that file, or, alternatively, command a RunCommand measure to "Run" and do the same, optionally in a hidden state:
https://docs.rainmeter.net/manual/plugins/runcommand/
and afterwards control the play via some NowPlaying measures:
https://docs.rainmeter.net/manual/measures/nowplaying/
or, if using a web based player, via some WebNowPlaying measures (this is what one of the skins in that package does too):
https://forum.rainmeter.net/viewtopic.php?t=26619

Don't worry about just beginning with Rainmeter, things might be easier than you expect, especially if you're looking for something simple (like using .wav files is).

P.S. You can even add a LeftMouseUpAction option to one of your meters and do the testing there, until you get familiar with the approach and implement it in the place in the code where those sprites change.

Statistics: Posted by Yincognito — 5 minutes ago



Viewing all articles
Browse latest Browse all 704

Trending Articles