It is currently April 25th, 2024, 1:29 pm

Launch Spotify

Get help with creating, editing & fixing problems with skins
Shaggy
Posts: 15
Joined: May 15th, 2016, 1:26 am

Launch Spotify

Post by Shaggy »

Hi there,
newb with a question....
I am trying to get Spotify to launch when I click on a certain area on my rainmeter theme any ideas where I'm going wrong?

Code: Select all

 LeftMouseUpAction=!execute ["C:\Users\SHAGGY\AppData\Roaming\Spotify.exe"]
does not seem to work?? :? :?
User avatar
balala
Rainmeter Sage
Posts: 16169
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Launch Spotify

Post by balala »

Shaggy wrote:Hi there,
newb with a question....
I am trying to get Spotify to launch when I click on a certain area on my rainmeter theme any ideas where I'm going wrong?

Code: Select all

 LeftMouseUpAction=!execute ["C:\Users\SHAGGY\AppData\Roaming\Spotify.exe"]
does not seem to work?? :? :?
!execute is a deprecated bang, don't use it. However this is not the cause of your issue. I'd like to see the whole meter around the LeftMouseUpAction. Can you post it?
Shaggy
Posts: 15
Joined: May 15th, 2016, 1:26 am

Re: Launch Spotify

Post by Shaggy »

Thanks for the reply balala,

here is the thing you asked for....
I have just tried to make it work how I want it lol it was a 'Play/Pause' button but I removed the image and just want it to open spotify lol .....

Code: Select all

[MeterPlayPause]
Meter=STRING
Group=GroupControls
X=22
Y=10
W=50
H=50
AntiAlias=1
FontFace=SF Transrobotics
FontSize=40
FontColor=c4c7ce
Text="<"
ImageName=#@#images\[MeasureStateButton].png
DynamicVariables=1
LeftMouseUpAction=!execute ["C:\Users\SHAGGY\AppData\Roaming\Spotify.exe"]
Hidden=1
User avatar
balala
Rainmeter Sage
Posts: 16169
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Launch Spotify

Post by balala »

1. As I said, the !execute bang is deprecated. Just remove it.
2. A String meter don't has an ImageName option. I suppose it remained from the time when this meter was an image meter (if I got it right, it was an image meter before). Also remove it.
3. The DynamicVariables=1 option is unneeded. Remove it as well.
4. The meter is hidden (due to its Hidden=1 option). There is somewhere else in your code a bang to show it? Because if it's not, the meter being all the time hidden, is unusable.
Furthermore, I'm not sure what you mean by
Shaggy wrote:when I click on a certain area on my rainmeter theme
What you mean? Because if you make the [MeterPlayPause] meter visible (eg as I said, removing the Hidden=1 option), it'll be clickable and will launch Spotify (if the path in the LaftMouseUpAction option is correct).
Shaggy
Posts: 15
Joined: May 15th, 2016, 1:26 am

Re: Launch Spotify

Post by Shaggy »

Thanks again balala,
The Original skin was Chleon Player (http://marcopixel.deviantart.com/art/Chleon-Player-1-0-608243746) As I said it was I think the Play/Pause button that was hidden under the now playing album art.
On the link above its the bottom picture with the "<< 00 >>"
I have removed the << 00 >> images and put my own in place,
so instead of 'Previous Play/Pause Next' I just want it to open spotify?
User avatar
balala
Rainmeter Sage
Posts: 16169
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Launch Spotify

Post by balala »

Shaggy wrote:so instead of 'Previous Play/Pause Next' I just want it to open spotify?
If the path is correct, the LeftMouseUpAction=["C:\Users\SHAGGY\AppData\Roaming\Spotify.exe"] option should work. If it's not, make sure that the path is indeed correct. I don't have installed Spotify, consequently I can't check, but it should work (if I replace the path with one which on my computer exists, it works).
Shaggy
Posts: 15
Joined: May 15th, 2016, 1:26 am

Re: Launch Spotify

Post by Shaggy »

Thanks balala,
It was my mistake...... I checked the path again & it was wrong :oops: :? :confused:
It was :

Code: Select all

["C:\Users\SHAGGY\AppData\Roaming\Spotify.exe"]
But it should be :

Code: Select all

["C:\Users\SHAGGY\AppData\Roaming\Spotify\Spotify.exe"]
It works now so thanks for all your help and patience.
Paul.
User avatar
balala
Rainmeter Sage
Posts: 16169
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Launch Spotify

Post by balala »

You're welcome. And don't worry, it's happening to all of us, sometimes, I think.
Iftekharul Abedeen
Posts: 1
Joined: April 29th, 2022, 9:15 pm

Re: Launch Spotify

Post by Iftekharul Abedeen »

Shaggy wrote: May 15th, 2016, 1:43 am Hi there,
newb with a question....
I am trying to get Spotify to launch when I click on a certain area on my rainmeter theme any ideas where I'm going wrong?

Code: Select all

 LeftMouseUpAction=!execute ["C:\Users\SHAGGY\AppData\Roaming\Spotify.exe"]
does not seem to work?? :? :?
:welcome: :welcome: :welcome:
I think I have a solution.
It's not optimal but a bypass
1. Right-click the Spotify Icon on your start menu
2. Select "Pin to taskbar"
3. From Taskbar [Shift + Right-click] Spotify icon (make sure your Spotify app is closed while doing so. Else you won't get the needed option)
4. Select "Create shortcut"
5. Select "OK" from the warning pop-up
6. A shortcut will be placed on your desktop. Store it anywhere u please
7. Right-click the shortcut and select "Copy as path"
8. Place that path as the launch link in your meter skin

Code: Select all

 LocationPath=!Execute ["C:\Users\YourName\Desktop\Spotify - Shortcut.lnk"]
User avatar
balala
Rainmeter Sage
Posts: 16169
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Launch Spotify

Post by balala »

Iftekharul Abedeen wrote: April 29th, 2022, 9:28 pm

Code: Select all

 LocationPath=!Execute ["C:\Users\YourName\Desktop\Spotify - Shortcut.lnk"]
Just a side-note: the !Execute bang is not needed. A while ago it was, but has been deprecated long time ago, so should not be used: LocationPath=["C:\Users\YourName\Desktop\Spotify - Shortcut.lnk"].