It is currently April 26th, 2024, 8:30 am

Need help making changes to a skin..

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Need help making changes to a skin..

Post by balala »

Springchiken wrote: March 28th, 2020, 8:44 pm Yes you understand.
Ok, then you have to edit the @Resources\Applist.inc file. Identify the icon you want to use to close Spotify and deactivate the Elegant Music Player. Do you know which icon do you want to use?
If you do, first you have to add a RunCommand plugin measure to the end of the same @Resources\Applist.inc file (after the Gamedir12 variable). Add it:

Code: Select all

[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Parameter=taskkill /im Spotify.exe
State=Hide
OutputType=ANSI
Take care that here you have to add to the Parameter option, the name of the appropriate process, which you want to close when you run this measure. I just supposed the name of the process of Spotify, is Spotify.exe (as said, I'm not using this program, so I'm not sure how the proces is called). If it is not, you have to replace Spotify.exe in the Parameter option, with the appropriate name.
Now replace the GamedirXX variable (the previously identified variable) within the mentioned @Resources\Applist.inc file with the following one: Gamedir4=[!CommandMeasure "MeasureRun" "Run"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"].
Does this work?
Springchiken
Posts: 9
Joined: March 27th, 2020, 2:17 am

Re: Need help making changes to a skin..

Post by Springchiken »

I believe the process of Spotify, is Spotify.exe, but how can i check to make sure?

This is the code i have now. At 1st this was not working but after a restart of Rainmeter it is. So i guess on to the last step.

Code: Select all

[Variables]
TotalGame=10

Gamecover1=chrome.png
Gamedir1=C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

Gamecover2=Spotify.png
Gamedir2=[!CommandMeasure "MeasureRun" "Run"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"]

Gamecover3=firefox.png
Gamedir3=C:\Program Files\Mozilla Firefox\firefox.exe

Gamecover4=steam-square-512.png
Gamedir4=C:\Program Files (x86)\Steam\Steam.exe

Gamecover5=gaming.png
Gamedir5=::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

Gamecover6=br.png
Gamedir6=F:\Program Files\Adobe Bridge 2020\Bridge.exe

Gamecover7=document.png
Gamedir7=C:\Users\Jason Stacey\Documents

Gamecover8=ps.png
Gamedir8=F:\Program Files\Adobe Photoshop 2020\Photoshop.exe

Gamecover9=photo.png
Gamedir9=D:\Storage images\pictures

Gamecover10=download.png
Gamedir10=C:\Users\Jason Stacey\Downloads


Gamecover11=download.png
Gamedir11=C:\Users\Jason Stacey\Downloads


Gamecover12=setting.png
Gamedir12=ms-settings:
Gamecover#Edit#=br.png

[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Parameter=taskkill /im Spotify.exe
State=Hide
OutputType=ANSI
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Need help making changes to a skin..

Post by balala »

Springchiken wrote: March 28th, 2020, 11:18 pm I believe the process of Spotify, is Spotify.exe, but how can i check to make sure?
Well, extremely simple: launch Spotify then click Spotify icon in your skin. If Spotify closes, that's it, otherwise you have to look for another name. Does the icon closes Spotify?
Springchiken
Posts: 9
Joined: March 27th, 2020, 2:17 am

Re: Need help making changes to a skin..

Post by Springchiken »

yes
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Need help making changes to a skin..

Post by balala »

Springchiken wrote: March 29th, 2020, 8:31 pmyes
Ok, in this case it indeed is Spotify.exe. Found it.
Springchiken
Posts: 9
Joined: March 27th, 2020, 2:17 am

Re: Need help making changes to a skin..

Post by Springchiken »

I was thinking since im doing everything else with this code

Code: Select all

Gamecover2=Spotify.png
Gamedir2=[!CommandMeasure "MeasureRun" "Run"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"]
can i also just add a command to start Spotify?
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Need help making changes to a skin..

Post by balala »

Springchiken wrote: March 30th, 2020, 7:00 pm can i also just add a command to start Spotify?
You mean, to another icon of the skin?
Springchiken
Posts: 9
Joined: March 27th, 2020, 2:17 am

Re: Need help making changes to a skin..

Post by Springchiken »

I can do that if that way it needs to be. But are you able to get one icon on the dock to do all of it. Run=spotify and Elegant Music Player,
Then with same icon kill=spotify and Elegant Music Player. It already does all but run spotify.
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Need help making changes to a skin..

Post by balala »

Springchiken wrote: March 30th, 2020, 7:16 pm I can do that if that way it needs to be. But are you able to get one icon on the dock to do all of it. Run=spotify and Elegant Music Player,
Then with same icon kill=spotify and Elegant Music Player. It already does all but run spotify.
Can be done, but you you need to apply a trick.
Add a Process plugin measure to the code (can be added after the [MeasureRun] measure, into the @Resources\Applist.inc file):

Code: Select all

[MeasureSpotify]
Measure=Plugin
Plugin=Process
ProcessName=Spotify.exe
IfCondition=(#CURRENTSECTION#>0)
IfTrueAction=[!SetVariable Gamedir4 """[!CommandMeasure "MeasureRun" "Run"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"][!Delay "1000"][!Update]"""][!UpdateMeter "Icon4"]
IfFalseAction=[!SetVariable Gamedir4 """["ADD-COMPLETE-PATH\Spotify.exe"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"][!Delay "1000"][!Update]"""][!UpdateMeter "Icon4"]
Take care to add to the IfFalseAction option the complete and exact path of the Spotify.exe file.
If you encounter issues and Spotify isn't closed when it should be, increase the delay period within the !Delay bang of the IfFalseAction option. The update should happen right after Spotify starts up, but I'm not sure how long takes to start it up.
Springchiken
Posts: 9
Joined: March 27th, 2020, 2:17 am

Re: Need help making changes to a skin..

Post by Springchiken »

Was there anything i was meant to remove from this

Code: Select all

[Variables]
TotalGame=10

Gamecover1=chrome.png
Gamedir1=C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

Gamecover2=Spotify.png
Gamedir2=[!CommandMeasure "MeasureRun" "Run"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"]

Gamecover3=firefox.png
Gamedir3=C:\Program Files\Mozilla Firefox\firefox.exe

Gamecover4=steam-square-512.png
Gamedir4=C:\Program Files (x86)\Steam\Steam.exe

Gamecover5=gaming.png
Gamedir5=::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

Gamecover6=br.png
Gamedir6=F:\Program Files\Adobe Bridge 2020\Bridge.exe

Gamecover7=document.png
Gamedir7=C:\Users\Jason Stacey\Documents

Gamecover8=ps.png
Gamedir8=F:\Program Files\Adobe Photoshop 2020\Photoshop.exe

Gamecover9=photo.png
Gamedir9=D:\Storage images\pictures

Gamecover10=download.png
Gamedir10=C:\Users\Jason Stacey\Downloads


Gamecover11=download.png
Gamedir11=C:\Users\Jason Stacey\Downloads


Gamecover12=setting.png
Gamedir12=ms-settings:
Gamecover#Edit#=br.png

[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Parameter=taskkill /im Spotify.exe
State=Hide
OutputType=ANSI


Before i added this?

Code: Select all

[MeasureSpotify]
Measure=Plugin
Plugin=Process
ProcessName=Spotify.exe
IfCondition=(#CURRENTSECTION#>0)
IfTrueAction=[!SetVariable Gamedir4 """[!CommandMeasure "MeasureRun" "Run"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"][!Delay "1000"][!Update]"""][!UpdateMeter "Icon4"]
IfFalseAction=[!SetVariable Gamedir4 """["C:\Users\Jason Stacey\AppData\Roaming\Spotify\Spotify.exe"][!ToggleConfig "Elegant Music Player\Elegant Music Player" "Elegant Music Player.ini"][!Delay "1000"][!Update]"""][!UpdateMeter "Icon4"]
And what spot was it meant to go in?