It is currently May 8th, 2024, 12:55 am

Request code suggestion

Get help with creating, editing & fixing problems with skins
lentebriesje
Posts: 5
Joined: February 26th, 2012, 8:10 pm

Re: Request code suggestion

Post by lentebriesje »

i have been changing the code, first focussing on getting to hide the images if i get a mail. But it won't work :S i ripped most of the code out of a gmail checker (and changed my name/pass to xxx because this forum doesn't need to know that :P)

and yeah, i have copied the Plugins\Webparser.dll in the folder. i didn't change that much so i'm clueless what's going wrong, i can't find my error.

Code: Select all

[Variables]
Url=https://xxx:xxx.google.com/gmail/feed/atom
RegExp="(?siU)<fullcount>(.*)</fullcount>"
Codepage=0
DownloadLogo=1
Alpha=255
SizePercentage=75/100 		
X1=0
X2=0

[Background]
Meter=IMAGE
X=0
Y=0
W=(#sizePercentage#*1300)
H=(#sizePercentage#*1078)
ImageName=images\Background.png

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

[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=140
IfAboveValue=0
IfAboveAction=!execute[!SetVariable Alpha 1]
IfBelowValue=1
IfBelowAction=!execute[!SetVariable Alpha 255]
DynamicVariables=1

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


[Image1]
Hidden=#X1#
METER=IMAGE
X=(#sizePercentage#*568)
Y=(#sizePercentage#*900)
W=(#sizePercentage#*293)
H=(#sizePercentage#*178)
ImageName=\Images\Coffee.png
ImageAlpha=#Alpha#

[Image2]
Hidden=#X2#
METER=IMAGE
X=(#sizePercentage#*150)
Y=(#sizePercentage#*661)
W=(#sizePercentage#*192)
H=(#sizePercentage#*192)
ImageName=\Images\Donut.png
ImageAlpha=#Alpha#