It is currently May 17th, 2024, 5:09 am
Help with a plugin
-
- Posts: 3
- Joined: September 16th, 2010, 3:36 pm
Help with a plugin
So I have a music play skin that I am trying to modify. Right now it shows my iTunes songs and it has the ability to go forward backward and play/pause. What I want to do is modify it so that when I click the album art it will restore iTunes for me. Can anyone help me with this?
-
- Moderator
- Posts: 995
- Joined: June 10th, 2009, 12:44 pm
- Location: Sweden
Re: Help with a plugin
I don't use iTunes. But the commands for the plugin can be found here: http://rainmeter.net/cms/Plugins-iTunes
As I can see, the one you might be interested in is the Power command.
Power - open/close iTunes instance
Now, I'm not sure how this will work, might close iTunes if it's already open. And that i guess you don't want.
So what you might do if Power don't work is have a bang that opens iTunes.exe but this might open another instance of iTunes.
Those seem to be the options you have as far as I can see.
More info on how to make the button-part -> http://rainmeter.net/cms/Bangs & http://rainmeter.net/cms/Tips-LaunchSpecialFolders
As I can see, the one you might be interested in is the Power command.
Power - open/close iTunes instance
Now, I'm not sure how this will work, might close iTunes if it's already open. And that i guess you don't want.
So what you might do if Power don't work is have a bang that opens iTunes.exe but this might open another instance of iTunes.
Those seem to be the options you have as far as I can see.
More info on how to make the button-part -> http://rainmeter.net/cms/Bangs & http://rainmeter.net/cms/Tips-LaunchSpecialFolders
I don't think, therefore I'm not.
-
- Posts: 3
- Joined: September 16th, 2010, 3:36 pm
Re: Help with a plugin
Thanks man I got it work. Here is what I did for anyone else looking for help on the topic.
I added this measure:
[MeasureShow]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=ToggleiTunes
Then I added this as the last line of where the skin placed the artwork (which is what I wanted to use as the button to show iTunes):
LeftMouseDownAction=!execute [!RainmeterPluginBang "MeasureShow"]
I hope this helps someone else at some point too.
I added this measure:
[MeasureShow]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=ToggleiTunes
Then I added this as the last line of where the skin placed the artwork (which is what I wanted to use as the button to show iTunes):
LeftMouseDownAction=!execute [!RainmeterPluginBang "MeasureShow"]
I hope this helps someone else at some point too.
-
- Moderator
- Posts: 995
- Joined: June 10th, 2009, 12:44 pm
- Location: Sweden
Re: Help with a plugin
Ah. Lookie there. Missed that one.
Glad you got it working. :)
Glad you got it working. :)
I don't think, therefore I'm not.