It is currently May 3rd, 2024, 5:16 am

I want a delay

Get help with creating, editing & fixing problems with skins
Metaltuga
Posts: 6
Joined: October 1st, 2012, 9:19 pm

I want a delay

Post by Metaltuga »

Hi!

I want to put a delay in my skin. So when i start the PC, the skin only start working after a time. For exemple after 10 seconds. XD

Can u help me?
Metaltuga
Posts: 6
Joined: October 1st, 2012, 9:19 pm

Re: I want a delay

Post by Metaltuga »

Code: Select all

[Rainmeter]
OnRefreshAction=[!DisableMeasure MeasureTitle]

[Variables]
;*********MODIFY THE FOLLOWING LINE*********
Url=https://MUAHAHAHAHAHAHHAHAHAHAHA@gmail.google.com/gmail/feed/atom
;*******************************************
MaxNumber=20


RegExp="(?siU)<fullcount>(.*)</fullcount>"
Codepage=0
DownloadLogo=1
FontName=journal
FontSize=25
White=0,0,0

;===========================================================================
; Measures
;===========================================================================

[cCounter]
Measure=Calc
Formula=cCounter+1
IfAboveValue=#MaxNumber#
IfAboveAction=[!EnableMeasure MeasureRSSNews][!EnableMeasure MeasureTitle][!DisableMeasure cCounter]


[MeasureRSSNews]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#Url#
RegExp=#RegExp#
Codepage=#Codepage#
Download=#DownloadLogo#
UpdateRate=120
StringIndex=4
FinishAction=!Execute [!RainmeterRedraw]
;Debug=1

[MeasureTitle]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureRSSNews]
StringIndex=1
UpdateRate=10
IfBelowValue=1
IfBelowAction=!execute[!RainmeterHide][!RainmeterHideMeter MultMessages][Play "#CURRENTPATH#mails.wav"]
;IfBelowAction=Play "#CURRENTPATH#start.wav"
IfEqualValue=1
;-----------------------------------------------------------------------------------------------------------
;If desired, add the folowing !execute parameter to the following line to play your favorite new mail sound:
;[!playsound C:\Users\Echo\Documents\Rainmeter\Skins\Gmail Mailchecker Rainmeter\mails.wav]
;-----------------------------------------------------------------------------------------------------------
IfEqualAction=!execute[!RainmeterHideMeter MultMessages][!RainmeterShow]
IfAboveValue=1
;-----------------------------------------------------------------------------------------------------------
;If desired, add the folowing !execute parameter to the following line to play your favorite new mail sound:
;[!playsound C:\...\sound.wav]
;-----------------------------------------------------------------------------------------------------------
IfAboveAction=!execute[!RainmeterShow][!RainmeterShowMeter MultMessages]


;===========================================================================
; Meters
;===========================================================================


[MeterTitle]
Meter=STRING
MeasureName=MeasureTitle
X=54
Y=47
W=150
H=200
FontColor=#White#
;StringStyle=BOLD
FontSize=25
FontFace=#FontName#
AntiAlias=1
ClipString=1
Angle=-0.10
;LeftMouseDownAction=!Execute ["http://mail.google.com/mail/"][!RainmeterHide][!pause 60000][!RainmeterRefresh]

[SingleMessage]
Meter=STRING
MeasureName=
Prefix="Tens      novo  email"
X=-10
Y=64
W=250
H=100
FontColor=#White#
;StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
ClipString=1
Angle=-0.27
;LeftMouseDownAction=!Execute ["http://mail.google.com/mail/"][!RainmeterHide][!pause 60000][!RainmeterRefresh]

[MultMessages]
Meter=STRING
MeasureName=
Prefix="s      s"
X=117
Y=29
W=150
H=200
FontColor=#White#
;StringStyle=BOLD
FontSize=#FontSize#
FontFace=#FontName#
AntiAlias=1
ClipString=1
Angle=-0.27
;LeftMouseDownAction=!Execute ["http://mail.google.com/mail/"][!RainmeterHide][!pause 60000][!RainmeterRefresh]

I have this code!


I just wanna hear the sound after the count end!
Metaltuga
Posts: 6
Joined: October 1st, 2012, 9:19 pm

Re: I want a delay

Post by Metaltuga »

SOLVED!!!

WITH THIS

Code: Select all

[Rainmeter]
OnRefreshAction=[!EnableMeasure cCounter][!DisableMeasure MeasureTitle][!DisableMeasure MeasureRSSNews]

[Variables]
;*********MODIFY THE FOLLOWING LINE*********
Url=https://MUAHAHAHAHAHAH@gmail.google.com/gmail/feed/atom
;*******************************************
MaxNumber=5


RegExp="(?siU)<fullcount>(.*)</fullcount>"
Codepage=0
DownloadLogo=1
FontName=journal
FontSize=25
White=0,0,0

;===========================================================================
; Measures
;===========================================================================

[cCounter]
Measure=Calc
Formula=cCounter+1
IfAboveValue=#MaxNumber#
IfAboveAction=[!EnableMeasure MeasureRSSNews][!EnableMeasure MeasureTitle][!DisableMeasure cCounter]
IfBelowValue=#MaxNumber#
IfBelowAction=[!EnableMeasure cCounter][!DisableMeasure MeasureTitle][!DisableMeasure MeasureRSSNews]
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: I want a delay

Post by thatsIch »

there is no need to constantiniously enable/disable the measures
else you decrease the counter somewhere else.

Might "speed up" it all a lil bit