วันพฤหัสบดีที่ 10 พฤษภาคม พ.ศ. 2555

Edit Code ' Rainmeter (itunes>WMP) -

วันนี้จะมายกตัวอย่างการ Edit Code ของ Rainmeter ... ต้องยอมรับว่าผมนั้นก็เป็นมือใหม่เหมือนกัน เพราะฉะนั้นก็แก้ได้แค่บาง Code แหละครับ
Code ของ Skin Android


- DownloadClick -

อันแรกที่ผมจะยกตัวอย่างนั้นก็คือ โปรแกรมเล่นเพลงของ itunes ต้องเปิด itunes เท่านั้นจึงจะสามารถเห็นชื่อเพลง แบบรูปด้านล่าง


ทีนี้ผมจะแก้ให้มันไม่สามารถใช้ได้กับ itunes แต่สามารถใช้ได้กับ Window Media Player อันที่จริงผมแก้ไปตั้งนานแล้ว ผมจำไม่ได้ว่าต้องแก้ตรงไหนบ้าง ผมเลยแจกโค๊ดเลยล่ะกันนะ = =''

คลิกที่ Skin > Android_Win7>iTunes>Edit>ลบโค๊ดทั้งหมด แล้วก็ Copy โค๊ดด้านล่างไป Copy ให้หมดนะครับ อย่าขาด มันจะทำงานไม่เต็มรูปแบบ
    [Rainmeter]
    Author=Kriogen
    Update=100

    [Metadata]
    Name=
    Config=
    Description=
    Instructions=
    Version=
    Tags=
    License=
    Variant=
    Preview=

    ;End of added Metadata

    [BG]
    Meter=IMAGE
    ImageName=bg.png
    Y=0
    X=9

    ; MEASURES

    [MeasurePlayer]
    Measure=Plugin
    Plugin=NowPlaying.dll
    PlayerName=WMP
    ;PlayerName=[Windows Media Player]
    ;PlayerName=[Winamp]
    ;PlayerName=[AIMP]
    ;PlayerName=[foobar2000]
    ;PlayerName=[WLM]
    ;PlayerName=[MediaMonkey]
    ;PlayerName=[CAD]
    ;PlayerName=[Spotify]
    PlayerType=TITLE

    [MeasureTrack]
    Measure=Plugin
    Plugin=NowPlaying.dll
    PlayerName=[MeasurePlayer]
    PlayerType=TITLE
    Substitute="":"N/A"

    [MeasureArtist]
    Measure=Plugin
    Plugin=NowPlaying.dll
    PlayerName=[MeasurePlayer]
    PlayerType=ARTIST
    Substitute="":"N/A"

    [MeasureProgress]
    Measure=Plugin
    Plugin=NowPlaying.dll
    PlayerName=[MeasurePlayer]
    PlayerType=PROGRESS

    [MeasureTime]
    Measure=Plugin
    Plugin=NowPlaying.dll
    PlayerName=[MeasurePlayer]
    PlayerType=POSITION

    [MeasureState]
    Measure=Plugin
    Plugin=NowPlaying.dll
    PlayerName=[MeasurePlayer]
    PlayerType=STATE

    [PopupStyle]
    Hidden=0

    [TextLeftStyle]
    Hidden=0

    [TextRightStyle]
    Hidden=0

    [SeperatorStyle]
    Hidden=0

    ; METERS

    [Line]
    Meter=IMAGE
    MeterStyle=LineStyle
    MouseOverAction=!execute [!RainmeterShowMeter Prev][!RainmeterShowMeter Play][!RainmeterShowMeter Next][!RainmeterRedraw]

    [LineStyle]
    ; Area behind the main icon, title, and subtitle
    X=0
    Y=0
    W=200
    H=30
    SolidColor=00000001

    [Icon]
    Meter=IMAGE
    MeterStyle=IconStyle
    ImageName=itunes.png
    LeftMouseUpAction=!Execute ["wmplayer.exe"]
    MouseActionCursor=1
    X=-2
    Y=2

    [Title]
    X=55
    Y=25
    H=12
    W=185
    Meter=STRING
    MeterStyle=TitleStyle
    Text="Now Playing"
    FontName=Linda's Lament
    FontColor=255,255,255,255
    FontSize=8
    StringStyle=BOLD
    ClipString=1
    AntiAlias=1

    [Subtitle]
    X=55
    Y=40
    W=190
    H=12
    Meter=STRING
    MeterStyle=SubtitleStyle
    MeasureName=MeasureTrack
    FontName=Linda's Lament
    FontColor=bd0606
    FontSize=8
    StringAlign=LEFT
    StringStyle=NORMAL
    ClipString=1
    AntiAlias=1

    [Prev]
    Meter=BUTTON
    ButtonImage=Prev.png
    X=160
    Y=25
    LeftMouseUpAction=!Execute [!CommandMeasure "MeasurePlayer" "Previous"]
    Hidden=1

    [Play]
    Meter=BUTTON
    ButtonImage=Play.png
    X=33r
    Y=25
    LeftMouseUpAction=!Execute [!CommandMeasure "MeasurePlayer" "PlayPause"]
    Hidden=1



    [Next]
    Meter=BUTTON
    ButtonImage=Next.png
    X=30r
    Y=25
    LeftMouseUpAction=!Execute [!CommandMeasure "MeasurePlayer" "Next"]
    Hidden=1

    ; Popup

    [Popup]
    Meter=IMAGE
    MeterStyle=PopupStyle

    [Artist]
    Meter=STRING
    MeterStyle=TextLeftStyle
    X=30
    Y=80
    Text="Artist"
    FontName=Linda's Lament
    FontColor=255,255,255
    FontSize=7
    StringStyle=BOLD
    AntiAlias=1

    [ArtistValue]
    Meter=STRING
    MeterStyle=TextRightStyle
    MeasureName=MeasureArtist
    FontName=Linda's Lament
    FontColor=255,255,255
    FontSize=7
    StringAlign=RIGHT
    StringStyle=BOLD
    AntiAlias=1
    X=280
    Y=80

    [Song]
    Meter=STRING
    MeterStyle=TextLeftStyle
    X=30
    Y=65
    Text="Song"
    FontName=Linda's Lament
    FontColor=255,255,255
    FontSize=7
    StringStyle=BOLD
    AntiAlias=1

    [SongValue]
    Meter=STRING
    MeterStyle=TextRightStyle
    MeasureName=MeasureTrack
    FontName=Linda's Lament
    FontColor=255,255,255
    FontSize=7
    StringAlign=RIGHT
    StringStyle=BOLD
    AntiAlias=1
    X=280
    Y=65

    [Progress]
    Meter=STRING
    MeterStyle=TextLeftStyle
    X=30
    Y=50
    Text=" "
    FontName=Linda's Lament
    FontColor=255,255,255,255
    FontSize=7
    StringStyle=BOLD
    AntiAlias=1

    [ProgressValue]
    Meter=STRING
    MeasureName=MeasureTime
    X=280
    Y=40
    StringAlign=RIGHT
    StringStyle=BOLD
    FontColor=255, 255, 255, 255
    FontFace=Linda's Lament
    FontSize=8
    AntiAlias=1
    Text="%1"

    [ProgressBar]
    Meter=BAR
    MeterStyle=SeperatorStyle
    X=55
    Y=55
    H=1
    W=223
    MeasureName=MeasureProgress
    BarColor=cac1ab
    SolidColor=FFFFFF20
    BarOrientation=HORIZONTAL

    FontName/FontFace : ชื่อฟอนต์ หากต้องการเปลี่ยน เพียงเขียนชื่อ Font ลงไปแทนตัวหนังสือสีแดง
    FontColor : สีฟอนต์ ใช้โค๊ดสีของฟอนต์ ไม่ต้องใส่ # หรือ เรียงตามนี้ Red , Green , Blue ผมปรับให้เป็น 255 จะได้กลายเป็นสีขาวหมดเลย Red = 255 , Green = 255 , Blue = 255 ส่วนตัวสุดท้าย รู้สึกจะปรับให้ตัวหนังสือสีนั้นเข้มขึ้นผมเลยใส่ 255
    StringStyle : ตัวหนา ตัวบาง ตัวหนาแก้เป็น BOLD ตัวบางแก้เป็น Normal
    FontSize : ขนาดของฟอนต์ อย่าปรับเวอร์นะครับ เพราะขนาดมันไม่เท่าใน Microsoft Word หรอกนะครับ ประมาณ 3-10 ก็พอแล้ว

    ส่วนตำแหน่ง X , Y นั้นใครจะปรับก็ได้
    X ตัวเลขเยอะ เลื่อนไปขวา ตัวเลขน้อยเลื่อนไปซ้าย
    Y ตัวเลขเยอะ เลื่อนขึ้น ตัวเลขน้อยเลื่อนลง

ไม่มีความคิดเห็น:

แสดงความคิดเห็น