Thanks I will try it later on, sounds good checking if the process exists.
Then from there il set the image but as for actually turning things on and off there is no problem.
One last question assuming this works, what language is this technically written in, assuming the complier makes it make sense, just wondering
It is currently May 2nd, 2024, 1:31 am
If's and sorting image sources
-
- Posts: 6
- Joined: July 18th, 2012, 1:37 pm
-
- Posts: 310
- Joined: June 7th, 2012, 2:25 am
- Location: Philadelphia, PA
Re: If's and sorting image sources
http://rainmeter.net/cms/Plugins-Process_beta
This explains everything.
Edit:
Rainmeter has its own 'language'. You may want to read up on the other pages on that url. if your having troubles.
This explains everything.
Edit:
Rainmeter has its own 'language'. You may want to read up on the other pages on that url. if your having troubles.
-
- Posts: 1173
- Joined: January 22nd, 2011, 4:23 pm
- Location: GMT +8
Re: If's and sorting image sources
Hmmm..UnforgivenRevival wrote:This explains everything.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 310
- Joined: June 7th, 2012, 2:25 am
- Location: Philadelphia, PA
Re: If's and sorting image sources
Okay, So I did the work for you because I was bored, copy and replace your code with this:
You may want to make a 3rd power button, a "checking" powerbutton, labeled checking.png. Can be the same as the poweroff image if you want.
Code: Select all
This Circle looks good around the center clock
;Metadata added by RainBrowser
;http://rainmeter.net/RainWiki/index.php?title=Rainmeter_101#.5BMetadata.5D
[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=
;End of added Metadata
-------------------------------------------------
[Variables]
FontName=UbuntuTitlingRg
Normal Color= 255,255,255,110
powericon=powerb.png
onoroff=1
-------------------------------------------------
[Meters]
[MeasureAlbumArt]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackArtwork
[MeasureCurrentTrackArtist]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackArtist
[MeasureCurrentTrackName]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackName
[MeasureCurrentTrackAlbum]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackAlbum
[MeasurePlayerPosition]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetPlayerPosition
MaxValue=100
[MeasurePlayerPositionPercent]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetPlayerPositionPercent
MaxValue=100
[mCurrMin]
Measure=Calc
Formula=(MeasurePlayerPosition - (MeasurePlayerPosition % 60)) /60
[mCurrSec]
Measure=Calc
Formula=MeasurePlayerPosition % 60
[mCurrZero]
Measure=Calc
Formula=(MeasurePlayerPosition % 60) < 10 ? 0 : 1
Substitute="1":""
[MeasureCircle]
Measure=Calc
Formula=10
---------------------------------------------------
--iTunes--
[AlbumArt2]
Meter=IMAGE
ImageName=none.png
X=220
Y=240
W=160
H=160
[AlbumArt]
Meter=IMAGE
MeasureName=MeasureAlbumArt
X=220
Y=240
W=160
H=160
[MeterCircle]
Meter=ROUNDLINE
MeasureName=MeasureCircle
X=0
Y=0
W=600
H=600
LineLength=150
LineStart=135
StartAngle=6.5
RotationAngle=6.28318531
AntiAlias=1
LineColor=255, 255,255, 50
Solid=1
[iTunesSongPosition]
MeasureName=MeasurePlayerPositionPercent
Meter=ROUNDLINE
X=0
Y=0
W=600
H=600
LineLength=150
LineStart=135
StartAngle=11
RotationAngle=6.28318531
AntiAlias=1
LineColor=100, 149,237, 50
Solid=1
[iTunesCurrentTrackTime]
Meter=STRING
MeasureName=mCurrMin
MeasureName2=mCurrZero
MeasureName3=mCurrSec
X=306
Y=175
StringStyle=BOLD
StringAlign=CENTER
FontColor=255,255,255
FontSize=9
FontFace=#FontName#
AntiAlias=1
Text="%1:%2%3"
[MeterCurrentTrackArtist]
Meter=STRING
MeasureName=MeasureCurrentTrackArtist
X=230
Y=210
W=100
H=100
Clipstring=1
StringStyle=BOLD
StringAlign=CENTER
FontColor=255,255,255
FontSize=8
FontFace=#FontName#
AntiAlias=1
Text="%1"
[MeterCurrentTrackName]
Meter=STRING
MeasureName=MeasureCurrentTrackName
X=305
Y=190
W=300
H=100
Clipstring=1
StringStyle=BOLD
StringAlign=CENTER
FontColor=255,255,255
FontSize=10
FontFace=#FontName#
AntiAlias=1
Text="%1"
[MeterCurrentTrackAlbum]
Meter=String
MeasureName=MeasureCurrentTrackAlbum
X=383
Y=210
W=100
H=200
Clipstring=1
StringStyle=BOLD
StringAlign=CENTER
FontColor=255,255,255
FontSize=8
FontFace=#FontName#
AntiAlias=1
Text="%1"
--------------------------------------------------------------------------
--Button Measures--
[MeasurePrev]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=PreviousTrack
[MeasurePlay]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=Play
[MeasurePause]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=Pause
[MeasureNext]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=NextTrack
[MeasurePower]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=Power
[MeasureRewind]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=Rewind
[MeasureFastForward]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=FastForward
[MeasureVolumeDown]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=SoundVolumeDown
[MeasureVolumeUp]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=SoundVolumeUp
------------------------------------------------------------------------------
--Buttons--
[PrevInactive]
Meter=IMAGE
ImageName=backb.png
X=106
Y=286
W=35
H=35
LeftMouseDownAction=!execute [!RainmeterShowMeter PrevActive][!RainmeterRedraw]
[PrevActive]
Meter=IMAGE
ImageName=backb.png
X=106
Y=286
W=35
H=35
LeftMouseUpAction=!execute [!RainmeterPluginBang "MeasurePrev"][!RainmeterHideMeter PrevActive][!RainmeterRedraw]
[PlayInactive]
Meter=IMAGE
X=440
Y=250
W=35
H=35
ImageName=playb.png
LeftMouseDownAction=!execute [!RainmeterShowMeter PlayActive] [!RainmeterRedraw]
[PlayActive]
Meter=IMAGE
X=440
Y=250
W=35
H=35
ImageName=playb.png
LeftMouseUpAction=!execute [!RainmeterPluginBang "MeasurePlay"][!RainmeterHideMeter PlayActive][!RainmeterRedraw]
[PauseInactive]
Meter=IMAGE
X=130
Y=253
W=21
H=21
ImageName=pauseb.png
LeftMouseDownAction=!execute [!RainmeterShowMeter PauseActive] [!RainmeterRedraw]
[PauseActive]
Meter=IMAGE
X=130
Y=253
W=21
H=21
ImageName=pauseb.png
Hidden=1
LeftMouseUpAction=!execute [!RainmeterPluginBang "MeasurePause"][!RainmeterHideMeter PauseActive][!RainmeterRedraw]
[NextInactive]
Meter=IMAGE
X=461
Y=288
W=35
H=35
ImageName=forwardb.png
LeftMouseDownAction=!execute [!RainmeterShowMeter NextActive] [!RainmeterRedraw]
[NextActive]
Meter=IMAGE
X=461
Y=288
W=35
H=35
ImageName=forwardb.png
LeftMouseUpAction=!execute [!RainmeterPluginBang "MeasureNext"][!RainmeterHideMeter NextActive][!RainmeterRedraw]
[MeasureProcess]
Measure=Plugin
Plugin=Process
ProcessName=itunes.exe
IfAboveValue=0
IfAboveAction=!SetOption poweractive imagename "powerg.png"
IfBelowValue=0
IfBelowAction=!SetOption poweractive imagename "powerb.png"
[PowerActive]
Meter=IMAGE
X=450
Y=335
W=20
H=20
ImageName=checking.png
[Audacity]
Meter=IMAGE
ImageName=musicb.png
X=130
Y=338
W=20
H=20
LeftMouseDownAction=!execute ["C:\Program Files (x86)\Audacity 1.3 Beta (Unicode)\audacity.exe"]
[volumeup]
Meter=IMAGE
ImageName=volumeupb.png
X=439
Y=370
W=20
H=20
LeftMouseUpAction=!execute [!RainmeterPluginBang "MeasureVolumeUp"][!RainmeterHideMeter NextActive][!RainmeterRedraw]
[volumeDown]
Meter=IMAGE
ImageName=volumedownb.png
X=140
Y=370
W=20
H=20
LeftMouseUpAction=!execute [!RainmeterPluginBang "MeasureVolumedown"][!RainmeterHideMeter NextActive][!RainmeterRedraw]
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: If's and sorting image sources
Here's a version of the code UnforgivenRevival posted which has been converted to use the NowPlaying plugin.
Code: Select all
;This Circle looks good around the center clock
[Metadata]
Name=
Description=
Instructions=
Version=
License=
;-------------------------------------------------
[Variables]
FontName=UbuntuTitlingRg
Normal Color= 255,255,255,110
;-------------------------------------------------
[NowPlaying]
Measure=Plugin
Plugin=NowPlaying
PlayerName=iTunes
[MeasureAlbumArt]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[NowPlaying]
PlayerType=Cover
[MeasureCurrentTrackArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[NowPlaying]
PlayerType=Artist
[MeasureCurrentTrackName]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[NowPlaying]
PlayerType=Title
[MeasureCurrentTrackAlbum]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[NowPlaying]
PlayerType=Album
[MeasurePlayerPosition]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[NowPlaying]
PlayerType=Position
MaxValue=100
[MeasurePlayerPositionPercent]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[NowPlaying]
PlayerType=Progress
MaxValue=100
[MeasurePlayerStatus]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[NowPlaying]
PlayerType=Status
IfAboveValue=0
IfAboveAction=!SetOption poweractive imagename "powerg.png"
IfBelowValue=1
IfBelowAction=!SetOption poweractive imagename "powerb.png"
[MeasureCircle]
Measure=Calc
Formula=10
;---------------------------------------------------
[AlbumArt2]
Meter=IMAGE
ImageName=none.png
X=220
Y=240
W=160
H=160
[AlbumArt]
Meter=IMAGE
MeasureName=MeasureAlbumArt
X=220
Y=240
W=160
H=160
[MeterCircle]
Meter=ROUNDLINE
MeasureName=MeasureCircle
X=0
Y=0
W=600
H=600
LineLength=150
LineStart=135
StartAngle=6.5
RotationAngle=6.28318531
AntiAlias=1
LineColor=255, 255,255, 50
Solid=1
[iTunesSongPosition]
MeasureName=MeasurePlayerPositionPercent
Meter=ROUNDLINE
X=0
Y=0
W=600
H=600
LineLength=150
LineStart=135
StartAngle=11
RotationAngle=6.28318531
AntiAlias=1
LineColor=100, 149,237, 50
Solid=1
[iTunesCurrentTrackTime]
Meter=STRING
MeasureName=MeasurePlayerPosition
X=306
Y=175
StringStyle=BOLD
StringAlign=CENTER
FontColor=255,255,255
FontSize=9
FontFace=#FontName#
AntiAlias=1
[MeterCurrentTrackArtist]
Meter=STRING
MeasureName=MeasureCurrentTrackArtist
X=230
Y=210
W=100
H=100
Clipstring=1
StringStyle=BOLD
StringAlign=CENTER
FontColor=255,255,255
FontSize=8
FontFace=#FontName#
AntiAlias=1
[MeterCurrentTrackName]
Meter=STRING
MeasureName=MeasureCurrentTrackName
X=305
Y=190
W=300
H=100
Clipstring=1
StringStyle=BOLD
StringAlign=CENTER
FontColor=255,255,255
FontSize=10
FontFace=#FontName#
AntiAlias=1
Text="%1"
[MeterCurrentTrackAlbum]
Meter=String
MeasureName=MeasureCurrentTrackAlbum
X=383
Y=210
W=100
H=200
Clipstring=1
StringStyle=BOLD
StringAlign=CENTER
FontColor=255,255,255
FontSize=8
FontFace=#FontName#
AntiAlias=1
Text="%1"
;------------------------------------------------------------------------------
;--Buttons--
[Prev]
Meter=IMAGE
ImageName=backb.png
X=106
Y=286
W=35
H=35
LeftMouseUpAction=!CommandMeasure "NowPlaying" "Previous"
[PlayInactive]
Meter=IMAGE
X=440
Y=250
W=35
H=35
ImageName=playb.png
LeftMouseUpAction=!CommandMeasure "NowPlaying" "Play"
[PauseInactive]
Meter=IMAGE
X=130
Y=253
W=21
H=21
ImageName=pauseb.png
LeftMouseUpAction=!CommandMeasure "NowPlaying" "Pause"
[NextInactive]
Meter=IMAGE
X=461
Y=288
W=35
H=35
ImageName=forwardb.png
LeftMouseUpAction=!CommandMeasure "NowPlaying" "Next"
[PowerActive]
Meter=IMAGE
X=450
Y=335
W=20
H=20
ImageName=checking.png
[Audacity]
Meter=IMAGE
ImageName=musicb.png
X=130
Y=338
W=20
H=20
LeftMouseDownAction=!CommandMeasure "NowPlaying" "OpenPlayer"
[volumeup]
Meter=IMAGE
ImageName=volumeupb.png
X=439
Y=370
W=20
H=20
LeftMouseUpAction=!CommandMeasure "NowPlaying" "SetVolume +5"
[volumeDown]
Meter=IMAGE
ImageName=volumedownb.png
X=140
Y=370
W=20
H=20
LeftMouseUpAction=!CommandMeasure "NowPlaying" "SetVolume -5"
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 6
- Joined: July 18th, 2012, 1:37 pm
Re: If's and sorting image sources
Thanks UnforgivenRevival that works fine just had to put in the toggle command for the power but that does it exactly now il be able to do it with other buttons.
smurfier not sure what the difference is in the plugins but thank you also.
Great support to someone who was just making guesses as he went along
smurfier not sure what the difference is in the plugins but thank you also.
Great support to someone who was just making guesses as he went along
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: If's and sorting image sources
The difference is that the iTunes plugin only works with itunes. The NowPlaying plugin supports a wide variety of players and has a few more features.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 310
- Joined: June 7th, 2012, 2:25 am
- Location: Philadelphia, PA