It is currently May 6th, 2024, 3:30 pm

Webparseing Images, Just Cap-Shunz

Get help with creating, editing & fixing problems with skins
User avatar
balls01
Posts: 5
Joined: October 28th, 2011, 6:27 am

Webparseing Images, Just Cap-Shunz

Post by balls01 »

So, what i've got so far, is the Parsing of the image link, but how do i get from a string to an image, i feel i've tried everything under the sun.

i've read tutorial over tutorial. but no thing has worked, i have used JsMorley's (or similar spelling) RainRegExp
which i was successful with

Code: Select all

[MeasureWebsite]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url="http://feeds.feedburner.com/JustCapshunz"
RegExp="(?siU)<p class='.*'><img class='event-item-lol-image' src='(.*)'.*/></p>"
Debug=2

[MeasureImage]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=[MeasureWebsite]
StringIndex=1
Download=1

[MeterImage]
MeasureName=MeasureImage
Meter=IMAGE
X=10
Y=10
W=280
H=280
Path=%1
ImageName=%1
i read that if i put "Download=1" then it saves to a temporary file, if i point "ImageName" to there does that work? do i use "path" and set it to "[measureImage]"?

thanks guys,
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Webparseing Images, Just Cap-Shunz

Post by jsmorley »

Works fine for me if I just:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[MeasureWebsite]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url="http://feeds.feedburner.com/JustCapshunz"
RegExp="(?siU)<p class='.*'><img class='event-item-lol-image' src='(.*)'.*/></p>"
Debug=2

[MeasureImage]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=[MeasureWebsite]
StringIndex=1
Download=1

[MeterImage]
MeasureName=MeasureImage
Meter=IMAGE
X=10
Y=10
W=280
H=280
Leave these two lines out:

Path=%1
ImageName=%1

They are not needed and will cause it not to work.
User avatar
balls01
Posts: 5
Joined: October 28th, 2011, 6:27 am

Re: Webparseing Images, Just Cap-Shunz

Post by balls01 »

Thanks for the help again man,
i had it working, but now without even editing the code, no images display?
i think this happened before i just left it for the day and it fixed itself,

could it be that i accidentally refreshed too many times? is there a limit of times you can refresh untill it breaks or?
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Webparseing Images, Just Cap-Shunz

Post by jsmorley »

It is possible to get the WebParser plugin in a "hung" state if you repeatedly refresh the skin and have WebParser trying to start instances over and over before it has had a chance to finish the earlier ones. You have to beat it up pretty good to cause this, but I have seen it before when testing a skin and doing tons of refreshes to tinker with positioning or RegExp statements. Restarting Rainmeter will fix things if this happens.