It is currently May 2nd, 2024, 11:53 am

Script to refresh once upon start

Get help with creating, editing & fixing problems with skins
kennethkee93
Posts: 2
Joined: January 8th, 2011, 7:15 am

Script to refresh once upon start

Post by kennethkee93 »

Hi all :welcome: , this is my first post on Rainmeter Forum and I'm still new in Rainmeter scripting and coding.

I'm using Rainmeter v1.3 with a winamp skin, which I'm having trouble on getting the title to show in full, but not after I refresh it.

Example,
Before refresh the skin,
Untitled.jpg
and

after refresh
Untitled2.jpg
Is there any way I can make it auto-refresh by it's own once I launch the skin?

Here's my winamp.ini code,

Code: Select all

[Rainmeter]
Update=1000
LocalFont="#CURRENTPATH#Clockopia.ttf"
LocalFont2="#CURRENTPATH#alba_ttf_70191.ttf"


;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins

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

;End of added Metadata

[Variables]
f.color=FFFFFFEE
c.color=FFFFFF99
b.color=FFFFFFFF
FontName=Clockopia
LocalFontFace=Alba
FontSize=11
FontSize2=9
AntiAlias=1


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

[mWinamp]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
Substitute="[Paused]":""," - Winamp":"","[Stopped]":""


[mWinampDuration]
Measure=Calc
Formula=(mWinampCurr<=0)?0:(mWinampCurr/(mWinampFull*1000+1)) 

[mWinampCurr]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 105

[mWinampFull]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 105

[mWinampCurrMin]
Measure=Calc
Formula=((mWinampCurr / 1000) - ((mWinampCurr / 1000) % 60)) /60

[mWinampCurrSec]
Measure=Calc
Formula=((mWinampCurr / 1000) % 60)/10
Substitute="-":"",".":"","60":"00"

[mWinampFullMin]
Measure=Calc
Formula=(mWinampFull - (mWinampFull % 60)) /60

[mWinampFullSec]
Measure=Calc
Formula=mWinampFull % 60

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


[WAPlaying]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 104
IfEqualAction=!Execute [!RainmeterHideMeter MetPlay][!RainmeterRedraw] [!RainmeterShowMeter MetPause] 
IfEqualValue=1

[WAPlayingP]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 104
IfEqualAction=!Execute [!RainmeterHideMeter MetPause][!RainmeterShowMeter MetPlay]
IfEqualValue=3

[WAPlayingS]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 0 104
IfEqualAction=!Execute [!RainmeterHideMeter MetPause][!RainmeterShowMeter MetPlay]
IfEqualValue=0


[MeasureFileBit]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 126
UpdateDivider=10


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

[songtitle]
Meter=STRING
FontFace=Alba
MeasureName=mWinamp
X=8
Y=0
StringStyle=NORMAL
StringAlign=left
FontColor=#f.color#
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
solidcolor=00000001
maxlength=50


[timebar]
MeasureName=mWinampDuration
Meter=BAR
X=10r
Y=22r
W=350
H=3
BarOrientation=HORIZONTAL
BarColor=#b.color#

[timebar_2]
Meter=IMAGE
X=0r
Y=0r
W=350
H=3
SolidColor=ffffff32


[TimeCurrMin]
Meter=STRING
MeasureName=mWinampCurrMin
X=22r
Y=10r
StringAlign=left
FontColor=#f.color#
FontSize=#FontSize2#
FontFace=#FontName#
Text="%1 : "
AntiAlias=1
solidcolor=00000001


[TimeCurrSec]
Meter=STRING
MeasureName=mWinampCurrSec
X=15r
Y=0r
FontFace=#FontName#
FontColor=#f.color#
FontSize=#FontSize2#
StringAlign=left
AntiAlias=1
NumOfDecimals=1
solidcolor=00000001



[TimeCurrFull]
Meter=STRING
MeasureName=mWinampFullMin
MeasureName2=mWinampFullSec
MeasureName3=mWinampFullZero
X=20r
Y=0r
StringAlign=left
FontColor=#f.color#
FontSize=#FontSize2#
FontFace=#FontName#
Text="-  %1 : %3%2"
AntiAlias=1
solidcolor=00000001
please help, thanks. :great:
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Script to refresh once upon start

Post by jsmorley »

Based on what I am seeing, I think if you just add:

DynamicWindowSize=1

to the [Rainmeter] section at the top, it might work better without any need for some kind of timed refresh.
kennethkee93
Posts: 2
Joined: January 8th, 2011, 7:15 am

Re: Script to refresh once upon start

Post by kennethkee93 »

jsmorley wrote:Based on what I am seeing, I think if you just add:

DynamicWindowSize=1

to the [Rainmeter] section at the top, it might work better without any need for some kind of timed refresh.

Omg, that works perfectly. Thanks alot! :thumbup: :D
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Script to refresh once upon start

Post by jsmorley »

Glad to help.