It is currently March 28th, 2024, 1:49 pm

Combining Codes

Get help with creating, editing & fixing problems with skins
Post Reply
Haptic
Posts: 3
Joined: May 17th, 2010, 7:07 pm

Combining Codes

Post by Haptic »

So, I downloaded Alphabar and have been playing around with it. I would like to add the iTunes player code from Enigma onto the end of the code of Aphabar. The problem is that when I combine them, the Prev Track, Next Track, and Pause/Play buttons don't show up on the Alphabar code but are fine when they are separate codes. Could someone point out to me what is going wrong?

Alphabar code:

Code: Select all

;[RedBlackProduction.deviantart.com]

[Rainmeter]
Author=RedBlackProduction@gmail.com
AppVersion=1000000
Update=1000

;MouseOverAction=!Execute [!RainmeterZPos 1]
;MouseLeaveAction=!Execute [!RainmeterZPos -2]

;[MetaData]
MetaSkinName=AlphaBar
MetaSkinDescription=Central Interface/Launcher for AlphaBar, Monitors CPU, RAM, HDD, Recycle Bin, Time/Date, Battery Power, Network Traffic, Gmail Count and Current Weather!
MetaSkinInstructions=TBC
MetaAuthor=RedBlackProduction@gmail.com
MetaVersion=1.0
MetaTags= AlphaBar | Dock | Launcher| Tasks | ToDo | CPU | RAM | Recycle Bin | Trash | Time | Date | Calendar | Battery | Power | Network | Internet | Gmail | Mail | Weather | Twitter | RSS | Feed | Reader | Accuweather | Ecqlipse2 |   
MetaVariantName=Black
MetaVariantDescription=Black Visual Theme
MetaConfigName=AlphaBar
MetaConfigDescription=AlphaBar does (almost) everything! Designed primarily to fit opposite the Windows Task/Superbar, AlphaBar allows you to monitor your System Resources, Hard Drives, Time & Date, Network Traffic, Gmail account, Twitter Account, Weather, RSS Feeds from a convenient, minimal and sleek interface!
MetaLicence=Alphabar is released under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License [http://creativecommons.org/licenses/by-nc-sa/3.0/] - You're free to modify/port it as long as you credit me, you don't make money from it, and you share it on the same terms!

;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]
GmailUsername=username
GmailPassword=password

Drive1=C
Drive2=X

PowerIconFunction=X:\Windows\System32\control.exe" /name Microsoft.PowerOptions

Font=Calibri
FontSize1=11
FontSize2=10
FontSize3=8
Color1=255,255,255,255
Color2=255,255,255,200
Color3=255,255,255,150
Color4=185,200,215,100

;[METERS]

[Dock]
Meter=Image
SolidColor=17,17,17,205

W=#WORKAREAWIDTH#
H=40

[Detail1]
Meter=IMAGE
SolidColor=0,0,0
X=0
Y=41
W=#WORKAREAWIDTH#
H=1

[Detail2]
Meter=IMAGE
SolidColor=255, 255, 255, 180
X=0
Y=40
W=#WORKAREAWIDTH#
H=1


[TasksIcon]
Meter=Image
ImageName=Tasks White.png

LeftMouseDownAction=!Execute [!RainmeterActivateConfig "AlphaBar\Left" "Tasks - Black.ini"][!RainmeterHideMeter TasksIcon][!RainmeterShowMeter TasksIconActive][!RainmeterHideMeter SystemIconActive][!RainmeterShowMeter SystemIcon]
RightMouseDownAction=!Execute ["#SKINSPATH#Alphabar\Tasks.txt"]

X=(#WORKAREAX#+12)
Y=6

[TasksIconActive]
Meter=Image
ImageName=Tasks White.png

Hidden=1
LeftMouseDownAction=!Execute [!RainmeterDeactivateConfig "AlphaBar\Left" "Tasks - Black.ini"][!RainmeterHideMeter TasksIconActive][!RainmeterShowMeter TasksIcon]
RightMouseDownAction=!Execute ["#SKINSPATH#Alphabar\Tasks.txt"]

X=r
Y=r

[SystemIcon]
Meter=Image
ImageName=System White.png

LeftMouseDownAction=!Execute [!RainmeterActivateConfig "AlphaBar\Left" "System - Black.ini"][!RainmeterHideMeter TasksIconActive][!RainmeterShowMeter TasksIcon][!RainmeterHideMeter SystemIcon][!RainmeterShowMeter SystemIconActive]
RightMouseDownAction=!Execute ["C:\Windows\System32\Taskmgr.exe"]

X=(#WORKAREAX#+51)
Y=5

[SystemIconActive]
Meter=Image
ImageName=System White.png
RightMouseDownAction=!Execute ["E:\Windows\System32\Taskmgr.exe"]

Hidden=1
LeftMouseDownAction=!Execute [!RainmeterDeactivateConfig "AlphaBar\Left" "System - Black.ini"][!RainmeterHideMeter SystemIconActive][!RainmeterShowMeter SystemIcon]

X=r
Y=r


[CPUBar]
Meter=Bar
MeasureName=MeasureCPU

BarOrientation=Horizontal
BarColor=#Color2#

X=(#WORKAREAX#+90)
Y=9
W=40
H=8

[CPUActivity]
Meter=Line
MeasureName=MeasureCPU

LineCount=1
AutoScale=0
;LineColor=#Color4#
LineColor=127,127,127,150
AntiAlias=1

X=r
Y=r
H=8
W=40

[RAMBar]
Meter=Bar
MeasureName=MeasureRAM

BarOrientation=Horizontal
BarColor=#Color3#

X=r
Y=23
W=40
H=8

[RAMActivity]
Meter=Line
MeasureName=MeasureRAM

LineCount=1
AutoScale=0
;LineColor=#Color4#
LineColor=127,127,127,150
AntiAlias=1

X=r
Y=r
H=8
W=40

[CPULabel]
Meter=String
MeasureName=MeasureCPU
Postfix="%"

Hidden=0
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color2#
StringStyle=Normal
StringAlign=Left
AntiAlias=1

X=(#WORKAREAX#+140)
Y=6

[RAMLabel]
Meter=String
MeasureName=MeasureFreeRAM
;Postfix=" RAM"
AutoScale=1
NumOfDecimals=0

Hidden=0
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color3#
StringStyle=Normal
StringAlign=Left
AntiAlias=1

X=r
Y=15r

[DrivesIcon]
Meter=Image
ImageName=Drives White.png

LeftMouseDownAction=!Execute [::{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
RightMouseDownAction=!Execute [::{450D8FBA-AD25-11D0-98A8-0800361B1103}]

X=(#WORKAREAX#+193)
Y=5

[DriveUsedBar1]
Meter=Bar
MeasureName=MeasureDriveUsed1

BarOrientation=Horizontal
BarColor=#Color2#
LeftMouseDownAction=!Execute [#Drive1#:]

X=(#WORKAREAX#+235)
Y=9
W=40
H=8

[DriveAccess1]
Meter=Line
MeasureName=MeasureDriveAccess1

LineCount=1
AutoScale=1
;LineColor=#Color4#
LineColor=127,127,127,150
AntiAlias=1

X=r
Y=r
H=8
W=40

[DriveUsedBar2]
Meter=Bar
MeasureName=MeasureDriveUsed2

BarOrientation=Horizontal
BarColor=#Color3#
LeftMouseDownAction=!Execute [#Drive2#:]

X=r
Y=23
W=40
H=8

[DriveAccess2]
Meter=Line
MeasureName=MeasureDriveAccess2

LineCount=1
AutoScale=1
;LineColor=#Color4#
LineColor=127,127,127,150
AntiAlias=1

X=r
Y=r
H=8
W=40

[HD1Label]
Meter=String
MeasureName=MeasureDriveFree1
AutoScale=1
NumOfDecimals=1

Hidden=0
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color2#
StringStyle=Normal
StringAlign=Left
AntiAlias=1

X=(#WORKAREAX#+285)
Y=6

[HD2Label]
Meter=String
MeasureName=MeasureDriveFree2
AutoScale=1
NumOfDecimals=1

Hidden=0
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color3#
StringStyle=Normal
StringAlign=Left
AntiAlias=1

X=r
Y=15r

[TrashIconEmpty]
Meter=Image
ImageName=Trash Empty White.png

LeftMouseDownAction=!Execute [!RainmeterPluginBang "MeasureTrashCount OpenBin"]
RightMouseDownAction=!Execute [!RainmeterPluginBang "MeasureTrashCount EmptyBin"]
MouseOverAction=!Execute [!RainmeterShowMeter TrashCountLabel][!RainmeterShowMeter TrashFilesLabel][!RainmeterShowMeter TrashSizeLabel]
MouseLeaveAction=!Execute [!RainmeterHideMeter TrashCountLabel][!RainmeterHideMeter TrashFilesLabel][!RainmeterHideMeter TrashSizeLabel]

X=(#WORKAREAX#+380)
Y=6

[TrashIconFull]
Meter=Image
ImageName=Trash Full White.png

Hidden=1
LeftMouseDownAction=!Execute [!RainmeterPluginBang "MeasureTrashCount OpenBin"][!RainmeterRedraw]
RightMouseDownAction=!Execute [!RainmeterPluginBang "MeasureTrashCount EmptyBin"][!RainmeterRedraw]
MouseOverAction=!Execute [!RainmeterShowMeter TrashCountLabel][!RainmeterShowMeter TrashFilesLabel][!RainmeterShowMeter TrashSizeLabel]
MouseLeaveAction=!Execute [!RainmeterHideMeter TrashCountLabel][!RainmeterHideMeter TrashFilesLabel][!RainmeterHideMeter TrashSizeLabel]

X=r
Y=r

[TrashCountLabel]
Meter=String
MeasureName=MeasureTrashCount
Text="%1"

Hidden=1
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color2#
StringStyle=Normal
StringAlign=Right
AntiAlias=1

X=r
Y=r
H=10
W=50

[TrashFilesLabel]
Meter=String
Text="FILES"

Hidden=1
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color3#
StringStyle=Normal
StringAlign=Right
AntiAlias=1

X=r
Y=15r
H=10
W=50

[TrashSizeLabel]
Meter=String
MeasureName=MeasureTrashSize
Text="%1"

Hidden=1
AutoScale=1
NumOfDecimals=0

FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color3#
StringStyle=Normal
StringAlign=Left
AntiAlias=1

X=30r
Y=-10r
H=10
W=30

[SystemIcon2]
Meter=Image
ImageName=PHOTO.png

LeftMouseDownAction=!Execute ["C:\Program Files\GIMP-2.0\bin\gimp-2.6.exe"]
RightMouseDownAction=!Execute [!RainmeterActivateConfig "AlphaBar\Left" "System - Black.ini"][!RainmeterHideMeter TasksIconActive][!RainmeterShowMeter TasksIcon][!RainmeterHideMeter SystemIcon][!RainmeterShowMeter SystemIconActive]


X=(#WORKAREAX#+520)
Y=5
H=30
W=30

[Gimp]
Meter=Image
ImageName=MEDIA.png

LeftMouseDownAction=!Execute ["C:\Program Files\iTunes\iTunes.exe"]
RightMouseDownAction=!Execute [!RainmeterActivateConfig "AlphaBar\Left" "System - Black.ini"][!RainmeterHideMeter TasksIconActive][!RainmeterShowMeter TasksIcon][!RainmeterHideMeter SystemIcon][!RainmeterShowMeter SystemIconActive]


X=(#WORKAREAX#+720)
Y=5
H=30
W=30


[Clock]
Meter=String
MeasureName=MeasureClock

FontFace=#Font#
FontSize=#FontSize1#
FontColor=#Color1#
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,75
StringAlign=Center
AntiAlias=1

X=(#WORKAREAWIDTH#/2)
Y=4

[Date]
Meter=String
MeasureName=MeasureDate

FontFace=#Font#
FontSize=#FontSize2#
FontColor=#Color2#
StringStyle=Normal
StringEffect=Shadow
FontEffectColor=0,0,0,75
StringAlign=Center
AntiAlias=1

X=r
Y=15r

[Calendar Button]
Meter=Image
SolidColor=0,0,0,1

LeftMouseDownAction=!Execute [!RainmeterToggleConfig "AlphaBar\Center" "Calendar - Black.ini"]
RightMouseDownAction=!Execute time date properties

X=-30r
Y=-17r
H=36
W=60

[PowerIcon]
Meter=Image
ImageName=Power White.png

LeftMouseDownAction=!Execute ["#PowerIconFunction#"]

X=(#WORKAREAWIDTH#-409)
Y=6

[BatteryBar]
MeasureName=MeasurePower
Meter=Bar

BarOrientation=Vertical
BarColor=#Color1#

X=5r
Y=6r
H=15
W=7

[BatteryBarCritical]
MeasureName=MeasurePower
Meter=Bar

Hidden=1
BarOrientation=Vertical
BarColor=200,0,0,200

X=r
Y=r
H=15
W=7

[PowerPlugIcon]
Meter=Image
ImageName=Power Plug White.png

Hidden=1

X=15r
Y=r

[DownloadLabel]
Meter=String
MeasureName=MeasureDownload
AutoScale=1
NumOfDecimals=0

Hidden=0
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color2#
StringStyle=Normal
StringAlign=Right
AntiAlias=1

X=(#WORKAREAWIDTH#-304)
Y=6

[UploadLabel]
Meter=String
MeasureName=MeasureUpload
AutoScale=1
NumOfDecimals=0

Hidden=0
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color3#
StringStyle=Normal
StringAlign=Right
AntiAlias=1

X=r
Y=15r

[DownloadArrow]
Meter=Image
ImageName=Arrow Down White.png

X=(#WORKAREAWIDTH#-297)
Y=8

[UploadArrow]
Meter=Image
ImageName=Arrow Up White.png

X=r
Y=24

[DownloadBar]
Meter=Bar
MeasureName=MeasureDownload

BarOrientation=Horizontal
BarColor=#Color2#

X=(#WORKAREAWIDTH#-275)
Y=9
W=40
H=8

[DownloadTraffic]
Meter=Line
MeasureName=MeasureDownload

LineCount=1
AutoScale=1
;LineColor=#Color4#
LineColor=127,127,127,150
AntiAlias=1

X=r
Y=r
W=40
H=8

[UploadBar]
Meter=Bar
MeasureName=MeasureUpload

BarOrientation=Horizontal
BarColor=#Color3#

X=r
Y=23
W=40
H=8

[UploadTraffic]
Meter=Line
MeasureName=MeasureUpload

LineCount=1
AutoScale=1
;LineColor=#Color4#
LineColor=127,127,127,150
AntiAlias=1

X=r
Y=r
W=40
H=8

[InternetIcon]
Meter=Image
ImageName=Internet White.png

LeftMouseDownAction=!Execute [::{7007ACC7-3202-11D1-AAD2-00805FC1270E}]

X=(#WORKAREAWIDTH#-226)
Y=4

[MailFeed]
Meter=String
MeasureName=MeasureNumber

Text="%1"
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color2#
StringStyle=Normal
StringAlign=Right
AntiAlias=1
LeftMouseDownAction=!Execute ["http://mail.google.com"]

X=(#WORKAREAWIDTH#-167)
Y=14

[MailIcon]
Meter=Image
ImageName=Mail White.png

LeftMouseDownAction=!Execute [!RainmeterActivateConfig "AlphaBar\Right" "Gmail - Black.ini"][!RainmeterHideMeter MailIcon][!RainmeterShowMeter MailIconActive][!RainmeterHideMeter WeatherIconActive][!RainmeterShowMeter WeatherIcon][!RainmeterHideMeter TwitterIconActive][!RainmeterShowMeter TwitterIcon][!RainmeterHideMeter RSSIconActive][!RainmeterShowMeter RSSIcon]
RightMouseDownAction=!RainmeterRefresh

X=(#WORKAREAWIDTH#-162)
Y=4

[MailIconActive]
Meter=Image
ImageName=Mail White.png

Hidden=1
LeftMouseDownAction=!Execute [!RainmeterDeactivateConfig "AlphaBar\Right" "Gmail - Black.ini"][!RainmeterHideMeter MailIconActive][!RainmeterShowMeter MailIcon]

X=r
Y=r

[WeatherIcon]
Meter=Image
ImageName=Weather White.png

LeftMouseDownAction=!Execute [!RainmeterActivateConfig "AlphaBar\Right" "Weather - Black.ini"][!RainmeterHideMeter MailIconActive][!RainmeterShowMeter MailIcon][!RainmeterShowMeter WeatherIconActive][!RainmeterHideMeter WeatherIcon][!RainmeterHideMeter TwitterIconActive][!RainmeterShowMeter TwitterIcon][!RainmeterHideMeter RSSIconActive][!RainmeterShowMeter RSSIcon]

X=(#WORKAREAWIDTH#-123)
Y=5

[WeatherIconActive]
Meter=Image
ImageName=Weather White.png

Hidden=1
LeftMouseDownAction=!Execute [!RainmeterDeactivateConfig "AlphaBar\Right" "Weather - Black.ini"][!RainmeterHideMeter WeatherIconActive][!RainmeterShowMeter WeatherIcon]

X=r
Y=r

[TwitterIcon]
Meter=Image
ImageName=Twitter White.png

LeftMouseDownAction=!Execute [!RainmeterActivateConfig "AlphaBar\Right" "Twitter - Black.ini"][!RainmeterHideMeter MailIconActive][!RainmeterShowMeter MailIcon][!RainmeterHideMeter WeatherIconActive][!RainmeterShowMeter WeatherIcon][!RainmeterShowMeter TwitterIconActive][!RainmeterHideMeter TwitterIcon][!RainmeterHideMeter RSSIconActive][!RainmeterShowMeter RSSIcon]

X=(#WORKAREAWIDTH#-83)
Y=5

[TwitterIconActive]
Meter=Image
ImageName=Twitter White.png

Hidden=1
LeftMouseDownAction=!Execute [!RainmeterDeactivateConfig "AlphaBar\Right" "Twitter - Black.ini"][!RainmeterHideMeter TwitterIconActive][!RainmeterShowMeter TwitterIcon]

X=r
Y=r

[RSSIcon]
Meter=Image
ImageName=RSS White.png

LeftMouseDownAction=!Execute [!RainmeterActivateConfig "AlphaBar\Right" "RSS - Black.ini"][!RainmeterHideMeter MailIconActive][!RainmeterShowMeter MailIcon][!RainmeterHideMeter WeatherIconActive][!RainmeterShowMeter WeatherIcon][!RainmeterHideMeter TwitterIconActive][!RainmeterShowMeter TwitterIcon][!RainmeterShowMeter RSSIconActive][!RainmeterHideMeter RSSIcon]

X=(#WORKAREAWIDTH#-43)
Y=4

[RSSIconActive]
Meter=Image
ImageName=RSS White.png

Hidden=1
LeftMouseDownAction=!Execute [!RainmeterDeactivateConfig "AlphaBar\Right" "RSS - Black.ini"][!RainmeterHideMeter RSSIconActive][!RainmeterShowMeter RSSIcon]

X=r
Y=r


;[MEASURES]

[MeasureCPU]
Measure=CPU

[MeasureRAM]
Measure=PhysicalMemory

[MeasureFreeRAM]
Measure=PhysicalMemory
InvertMeasure=1

[MeasureUsedSwap]
Measure=SwapMemory

[MeasureDriveUsed1]
Measure=FreeDiskSpace
Drive="#Drive1#:"
InvertMeasure=1

UpdateRate=60

[MeasureDriveFree1]
Measure=FreeDiskSpace
Drive="#Drive1#:"

UpdateRate=60

[MeasureDriveAccess1]
Measure=Plugin
Plugin=Plugins\PerfMon.dll

PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="#Drive1#:"

[MeasureDriveUsed2]
Measure=FreeDiskSpace
Drive="#Drive2#:"
InvertMeasure=1

UpdateRate=60

[MeasureDriveFree2]
Measure=FreeDiskSpace
Drive="#Drive2#:"

UpdateRate=60

[MeasureDriveAccess2]
Measure=Plugin
Plugin=Plugins\PerfMon.dll

PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="#Drive2#:"

[MeasureTrashCount]
Measure=Plugin
Plugin=RecycleManager.dll

RecycleType=Count
Drives=All

[MeasureTrashSize]
Measure=Plugin
Plugin=RecycleManager.dll

RecycleType=Size
Drives=All

[MeasureTrashAction]
Measure=Calc
Formula=MeasureTrashCount

IfAboveAction=!Execute [!RainmeterHideMeter TrashIconEmpty][!RainmeterShowMeter TrashIconFull]
IfAboveValue=0
IfEqualAction=!Execute [!RainmeterHideMeter TrashIconFull][!RainmeterShowMeter TrashIconEmpty]
IfEqualValue=0

[MeasureClock]
Measure=Time
Format="%#I.%M"

[MeasureWeek]
Measure=Time
Format="%A"

[MeasureDate]
Measure=Time
Format="%#d %B"

[MeasurePower]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=Percent

IfEqualValue=100
IfEqualAction=!Execute [!RainmeterShowMeter PowerPlugIcon]
IfBelowValue=100
IfBelowAction=!Execute [!RainmeterHideMeter PowerPlugIcon]

[MeasurePowerCritical]
Measure=Plugin
Plugin=Plugins\PowerPlugin.dll
PowerState=Percent

IfAboveValue=20
IfAboveAction=!Execute [!RainmeterHideMeter BatteryBarCritical][!RainmeterShowMeter BatteryBar]
IfBelowValue=20
IfBelowAction=!Execute [!RainmeterHideMeter BatteryBar][!RainmeterShowMeter BatteryBarCritical]

[MeasureDownload]
Measure=NetIn
MaxValue=500000

IfEqualValue=0
IfEqualAction=!Execute [!RainmeterHideMeter DownloadLabel]
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeter DownloadLabel]

[MeasureUpload]
Measure=NetOut
MaxValue=250000

IfEqualValue=0
IfEqualAction=!Execute [!RainmeterHideMeter UploadLabel]
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterShowMeter UploadLabel]

[MeasureGmail]
Measure=Plugin
Plugin=Plugins\WebParser.dll

Url=https://#GmailUsername#:#GmailPassword#@gmail.google.com/gmail/feed/atom
RegExp="(?siU)<fullcount>(.*)</fullcount>"
Codepage=0
Download=1
UpdateRate=900
StringIndex=4

[MeasureNumber]
Measure=Plugin
Plugin=Plugins\WebParser.dll

Url=[MeasureGmail]
StringIndex=1
UpdateRate=1

;[MeasureNewMail]
;Measure=CALC
;Formula=MeasureNumber>0
Enigma Music code:

Code: Select all

; ------------------------------------------------------------------------------------------------
; ENIGMA MUSIC
; Class: Sidebar

[Rainmeter]
Author=Kaelri.LCD@gmail.com
AppVersion=1001000
Update=1000
MiddleMouseDownAction=!RainmeterActivateConfig #CURRENTCONFIG# Music-Art.ini
MouseOverAction=!Execute [!RainmeterHideMeter Album][!RainmeterShowMeter Prev][!RainmeterShowMeter Play][!RainmeterShowMeter Next]
MouseLeaveAction=!Execute [!RainmeterShowMeter Album][!RainmeterHideMeter Prev][!RainmeterHideMeter Play][!RainmeterHideMeter Next]

[Metadata]
Name=Enigma Music
Config=Enigma | Sidebar | Music
Description=Shows information about the song currently playing in iTunes.
Instructions=Mouseover to reveal player controls.
Version=2.6
Tags=Music | iTunes | Sidebar
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Preview=#SKINSPATH#Enigma\Resources\Images\Preview.png

[Variables]
@include=#SKINSPATH#Enigma\Resources\Variables\UserVariables.inc

; ------------------------------------------------------------------------------------------------
; MEASURES

[MeasureTrack]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackName

[MeasureArtist]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackArtist

[MeasureAlbum]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackAlbum

[MeasureTime]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetPlayerPosition

[MeasureTMinute]
Measure=Calc
Formula=(MeasureTime - (MeasureTime % 60)) /60

[MeasureTSecond]
Measure=Calc
Formula=MeasureTime % 60

[MeasureTZero]
Measure=Calc
Formula=(MeasureTime % 60) < 10 ? 0 : 1
Substitute="1":""

[MeasureProgress]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetPlayerPositionPercent
MaxValue=100

[MeasurePrev]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=PreviousTrack

[MeasurePause]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=PlayPause

[MeasureNext]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=NextTrack

; ------------------------------------------------------------------------------------------------
; STYLES

[StyleText]
X=4
Y=16r
H=15
W=172
ClipString=1
FontFace=Calibri
FontSize=9
StringAlign=LEFT
StringStyle=BOLD
AntiAlias=1

[StyleButton]
X=16r
Y=40
FontColor=0,0,0,205
StringStyle=BOLD
FontSize=10
StringAlign=LEFT
FontFace=Webdings
AntiAlias=1
Hidden=1

; ------------------------------------------------------------------------------------------------

; TEXT

[Track]
Meter=STRING
MeterStyle=StyleText
MeasureName=MeasureTrack
Y=15
FontColor=0,0,0,205

[Time]
Meter=STRING
MeasureName=MeasureTMinute
MeasureName2=MeasureTZero
MeasureName3=MeasureTSecond
X=27
Y=28
StringAlign=RIGHT
StringStyle=BOLD
FontColor=0,0,0,205
FontFace=Calibri
FontSize=7
AntiAlias=1
Text="%1.%2%3"




;-------------------------
; BUTTONS

[Prev]
Meter=STRING
MeterStyle=StyleButton
X=4
Text="7"
LeftMouseDownAction=!Execute [!RainmeterShowMeter PrevPush][!RainmeterHideMeter Prev][!RainmeterRedraw]

[PrevPush]
Meter=STRING
MeterStyle=StyleButton
X=r
FontColor=0,0,0,205
Text="7"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "MeasurePrev"][!RainmeterHideMeter PrevPush][!RainmeterShowMeter Prev][!RainmeterRedraw]

[Play]
Meter=STRING
MeterStyle=StyleButton
Text=";"
LeftMouseDownAction=!Execute [!RainmeterShowMeter PlayPush][!RainmeterHideMeter Play][!RainmeterRedraw]

[PlayPush]
Meter=STRING
MeterStyle=StyleButton
X=r
FontColor=0,0,0,205
Text=";"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "MeasurePause"][!RainmeterHideMeter PlayPush][!RainmeterShowMeter Play][!RainmeterRedraw]

[Next]
Meter=STRING
MeterStyle=StyleButton
Text="8"
LeftMouseDownAction=!Execute [!RainmeterShowMeter NextPush][!RainmeterHideMeter Next][!RainmeterRedraw]

[NextPush]
Meter=STRING
MeterStyle=StyleButton
X=r
FontColor=0,0,0,205
Text="8"
LeftMouseUpAction=!Execute [!RainmeterPluginBang "MeasureNext"][!RainmeterHideMeter NextPush][!RainmeterShowMeter Next][!RainmeterRedraw]
Last edited by dragonmage on May 18th, 2010, 5:34 am, edited 1 time in total.
Reason: Removed gmail account and password.
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Combining Codes

Post by Alex2539 »

You usually can't just paste one skin into another and expect it to work. Enigma is actually fairly complicated and by pasting the music skin in there, you are probably destroying a lot of the functionality and removing some of the components it's dependent on. It's best to just keep both skins separate and open both of them.
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Combining Codes

Post by dragonmage »

First, don't forget to remove your account info from skin files before posting them! I removed them, but I'd change my password now if I were you.

Second, if you are lucky enough to not have any conflicting measure and meter names, you will have to adjust all the X and Y positions and may need to change some variables so that the player part uses the variables of alphabar.
Post Reply