Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1525

Community Plugins & Addons • Re: Unable to use FindWindow on Rainmeter

$
0
0
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.
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:
  • A Process measure, which checks if Spotify runs:

    Code:

    [MeasureSpotify]Measure=ProcessProcessName=Spotify.exe
    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.
  • 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"]
Can't try out this code, because as said I'm not using Spotify, but tried it with another process and worked. If you can find the name of the process of Spotify, it should work for you as well. Does it?

Statistics: Posted by balala — Yesterday, 9:09 pm



Viewing all articles
Browse latest Browse all 1525

Trending Articles