I can't answer your question, but have another: why do you want to write a .exe for such a task? .exe files are extremely undesirable (exprecially if you'll want distributing yor skin). I assume a (simple) Rainmeter skin could do the job. The skin has to check if Spotify runs and act accordingly. You don't even need to much things, just:Currently attempting to make a small .exe that will enable and disable Fountain of Colors when Spotify is open, since I only really want it open when Spotify is open. I'm trying to send Bangs using C++, and I have a near identical copy of the code provided in the "Developers" documentation section of the Rainmeter website, but it doesn't seem to work.
- A Process measure, which checks if Spotify runs:I'm not using Spotify, but what you have to take care about the above code is to use the proper process name in the ProcessName option. I just assumed this name should be Spotify.exe, but if you're using Spotify, you are the one who has to find the proper name.
Code:
[MeasureSpotify]Measure=ProcessProcessName=Spotify.exe
- A set of IfCondition, to let the skin activating Fountain of Colors when Spotify runs and deactivate it otherwise. Try for instance the following options:
Code:
[MeasureSpotify]Measure=ProcessProcessName=Spotify.exeIfCondition=(#CURRENTSECTION#>0)IfTrueAction=[!ActivateConfig "Fountain of Colors" "Fountain of Colors.ini"]IfFalseAction=[!DeactivateConfig "Fountain of Colors"]
Statistics: Posted by balala — Yesterday, 9:09 pm