It is currently May 21st, 2024, 2:04 pm

Skin has quit working and I am unable to find the problem

Get help with creating, editing & fixing problems with skins
TicTac101
Posts: 3
Joined: April 18th, 2012, 12:14 am

Skin has quit working and I am unable to find the problem

Post by TicTac101 »

I recently modified the original RSS Feed skin from the Enigma package. I modified it to read the 4 daily quotes off of a website and to display one on my desktop.

The website of the RSS in question is: http://feeds.feedburner.com/quotationspage/qotd

When I clicked on the quote it would cycle to the next one, and when I clicked on the author it would take me to his page where I could view more of his quotes.

Today I was working on setting the ZPos levels for my skins, so that they would overlap properly when I started my computer. I added a line or two of code to my RSS feed skin. Then, deciding I didnt like it, I removed those lines.

Upon refreshing my skin it no longer works, I am completely at a loss for why this is happening.

I spent several hours looking over it, testing only small sections of it, debugging, you name it.

I often use this website to read about problems that I am experiencing, or to find interesting ideas for future skins, so I thought before I went insane I would come looking for help.

The code is included below, I would really appreciate the help in finding out why it has quit on me.

Also, this is one of the first skins I have wrote for RSS purposes, so if there is anything you notice that could be improved upon I am always open to constructive critisism.

Thanks

Code: Select all

; ------------------------------------------------------------------------------------------------
; QUOTE OF THE DAY
; Class: Sidebar

[Rainmeter]
Author=Ryan
AppVersion=1001000
Update=1000
MiddleMouseDownAction=!RainmeterRefresh #CURRENTCONFIG#

[Metadata]
Name=QOTD
Config=N/A
Description=This skin shows the latest QOTD
Instructions=N/A
Version=1.0
Tags=N/A
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Preview=#SKINSPATH#Enigma\Resources\Images\Preview.png
Credits=Thanks to Kaelri.LCD@gmail.com for origional skin

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

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

[Feed]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=#RSS1#
RegExp="(?siU)<title>(.*)</title>.*<link>(.*)</link>.*<title>(.*)</title>.*<title>(.*)</title>.*<description>(.*)&lt.*<link>(.*)</link>.*<title>(.*)</title>.*<description>(.*)&lt.*<link>(.*)</link>.*<title>(.*)</title>.*<description>(.*)&lt.*<link>(.*)</link>.*<title>(.*)</title>.*<description>(.*)&lt.*<link>(.*)</link>" 
StringIndex=1
Substitute=#SubstituteFeed#

[FeedURL]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=2
Substitute=#SubstituteFeed#

[MeasureAuthor1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=4
Substitute=#SubstituteFeed#

[MeasureItem1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=5
Substitute=#SubstituteFeed#

[MeasureLink1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=6
Substitute=#SubstituteLink#

[MeasureAuthor2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=7
Substitute=#SubstituteFeed#

[MeasureItem2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=8
Substitute=#SubstituteFeed#

[MeasureLink2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=9
Substitute=#SubstituteLink#

[MeasureAuthor3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=10
Substitute=#SubstituteFeed#

[MeasureItem3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=11
Substitute=#SubstituteFeed#

[MeasureLink3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=12
Substitute=#SubstituteLink#

[MeasureAuthor4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=13
Substitute=#SubstituteFeed#

[MeasureItem4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=14
Substitute=#SubstituteFeed#

[MeasureLink4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Feed]
StringIndex=15
Substitute=#SubstituteLink#

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

[StyleItem]
X=250
Y=15r
H=24
W=500
ClipString=1
StringStyle=NORMAL
FontColor=#Color1#
FontSize=#Height2#
FontFace=#Font#
StringAlign=CENTER
AntiAlias=1

; ------------------------------------------------------------------------------------------------
; METERS

[Background1]
Meter=IMAGE
SolidColor=0, 0, 0, 1
X=0
Y=1
W=500
H=30
LeftMouseDownAction=!Execute [!RainmeterHideMeter Background1][!RainmeterShowMeter Background2][!RainmeterHideMeter Item1][!RainmeterShowMeter Item2][!RainmeterHideMeter Background_Author1][!RainmeterShowMeter Background_Author2][!RainmeterHideMeter Title1][!RainmeterShowMeter Title2][!RainmeterRedraw]

[Background2]
Meter=IMAGE
SolidColor=0, 0, 0, 1
X=0
Y=1
W=500
H=30
Hidden=1
LeftMouseDownAction=!Execute [!RainmeterHideMeter Background2][!RainmeterShowMeter Background3][!RainmeterHideMeter Item2][!RainmeterShowMeter Item3][!RainmeterHideMeter Background_Author2][!RainmeterShowMeter Background_Author3][!RainmeterHideMeter Title2][!RainmeterShowMeter Title3][!RainmeterRedraw]

[Background3]
Meter=IMAGE
SolidColor=0, 0, 0, 1
X=0
Y=1
W=500
H=30
Hidden=1
LeftMouseDownAction=!Execute [!RainmeterHideMeter Background3][!RainmeterShowMeter Background4][!RainmeterHideMeter Item3][!RainmeterShowMeter Item4][!RainmeterHideMeter Background_Author3][!RainmeterShowMeter Background_Author4][!RainmeterHideMeter Title3][!RainmeterShowMeter Title4][!RainmeterRedraw]

[Background4]
Meter=IMAGE
SolidColor=0, 0, 0, 1
X=0
Y=1
W=500
H=30
Hidden=1
LeftMouseDownAction=!Execute [!RainmeterHideMeter Background4][!RainmeterShowMeter Background1][!RainmeterHideMeter Item4][!RainmeterShowMeter Item1][!RainmeterHideMeter Background_Author4][!RainmeterShowMeter Background_Author1][!RainmeterHideMeter Title4][!RainmeterShowMeter Title1][!RainmeterRedraw]

[Background_Author1]
Meter=IMAGE
SolidColor=0, 0, 0, 1
X=200
Y=32
W=100
H=15
LeftMouseDownAction=!Execute [!RainmeterHideMeter Title1][!RainmeterShowMeter TitleActive1][!RainmeterRedraw]

[Background_Author2]
Meter=IMAGE
SolidColor=0, 0, 0, 1
X=200
Y=32
W=100
H=15
Hidden=1
LeftMouseDownAction=!Execute [!RainmeterHideMeter Title2][!RainmeterShowMeter TitleActive2][!RainmeterRedraw]

[Background_Author3]
Meter=IMAGE
SolidColor=0, 0, 0, 1
X=200
Y=32
W=100
H=15
Hidden=1
LeftMouseDownAction=!Execute [!RainmeterHideMeter Title3][!RainmeterShowMeter TitleActive3][!RainmeterRedraw]

[Background_Author4]
Meter=IMAGE
SolidColor=0, 0, 0, 1
X=200
Y=32
W=100
H=15
Hidden=1
LeftMouseDownAction=!Execute [!RainmeterHideMeter Title4][!RainmeterShowMeter TitleActive4][!RainmeterRedraw]

;------------------------
; TITLES

[Title1]
Meter=STRING
MeasureName=MeasureAuthor1
X=250
Y=32
H=15
W=150
StringStyle=BOLD
FontColor=#Color2#
FontSize=#Height3#
FontFace=#Font#
AntiAlias=1
StringAlign=CENTER

[TitleActive1]
Meter=STRING
MeterStyle=Title1
MeasureName=MeasureAuthor1
FontColor=#ColorActive#
Hidden=1
;LeftMouseUpAction=!Execute [[MeasureLink1]][!RainmeterHideMeter TitleActive1][!RainmeterShowMeter Title1][!RainmeterRedraw]

[Title2]
Meter=STRING
MeasureName=MeasureAuthor2
X=250
Y=32
H=15
W=150
StringStyle=BOLD
FontColor=#Color2#
FontSize=#Height3#
FontFace=#Font#
AntiAlias=1
StringAlign=CENTER
Hidden=1

[TitleActive2]
Meter=STRING
MeterStyle=Title2
MeasureName=MeasureAuthor2
FontColor=#ColorActive#
Hidden=1
;LeftMouseUpAction=!Execute [[MeasureLink2]][!RainmeterHideMeter TitleActive2][!RainmeterShowMeter Title2][!RainmeterRedraw]

[Title3]
Meter=STRING
MeasureName=MeasureAuthor3
X=250
Y=32
H=15
W=150
StringStyle=BOLD
FontColor=#Color2#
FontSize=#Height3#
FontFace=#Font#
AntiAlias=1
StringAlign=CENTER
Hidden=1

[TitleActive3]
Meter=STRING
MeterStyle=Title3
MeasureName=MeasureAuthor3
FontColor=#ColorActive#
Hidden=1
;LeftMouseUpAction=!Execute [[MeasureLink3]][!RainmeterHideMeter TitleActive3][!RainmeterShowMeter Title3][!RainmeterRedraw]

[Title4]
Meter=STRING
MeasureName=MeasureAuthor4
X=250
Y=32
H=15
W=150
StringStyle=BOLD
FontColor=#Color2#
FontSize=#Height3#
FontFace=#Font#
AntiAlias=1
StringAlign=CENTER
Hidden=1

[TitleActive4]
Meter=STRING
MeterStyle=Title4
MeasureName=MeasureAuthor4
FontColor=#ColorActive#
Hidden=1
;LeftMouseUpAction=!Execute [[MeasureLink4]][!RainmeterHideMeter TitleActive4][!RainmeterShowMeter Title4][!RainmeterRedraw]

;-----------------------
; ITEMS

[Item1]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem1
Y=3

[Item2]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem2
Y=3
Hidden=1

[Item3]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem3
Y=3
Hidden=1

[Item4]
Meter=STRING
MeterStyle=StyleItem
MeasureName=MeasureItem4
Y=3
Hidden=1
TicTac101
Posts: 3
Joined: April 18th, 2012, 12:14 am

Re: Skin has quit working and I am unable to find the proble

Post by TicTac101 »

Minutes after posting this the skin began working again....

I have no idea what caused it to cause me so much trouble over the past 3 hours

Sigh...

Anyways, I guess I don't need any help, but I'll always accept constructive criticism =)
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Skin has quit working and I am unable to find the proble

Post by dragonmage »

Sometimes Webparser gets hung if you are doing a lot of refreshes when editing skins and such.
TicTac101
Posts: 3
Joined: April 18th, 2012, 12:14 am

Re: Skin has quit working and I am unable to find the proble

Post by TicTac101 »

dragonmage wrote:Sometimes Webparser gets hung if you are doing a lot of refreshes when editing skins and such.
I'll keep that in mind in the future. Thanks for the heads up.