It is currently May 2nd, 2024, 2:23 pm

Display Web Images

Get help with creating, editing & fixing problems with skins
Revelation
Posts: 4
Joined: December 14th, 2010, 6:47 pm

Display Web Images

Post by Revelation »

Hello, first of all I'm new here so I want to say hello to you all!

Second, I have a problem; I have downloaded wallpaperchanger which shows 5 files of a certain map and when clicking on them you set them as your wallpaper, now I wanted it to show images from the website http://www.weheartit.com so I tried messing around with the file a bit but it won't work.

Code: Select all

[Rainmeter]
AppVersion=1.0
refreshed ~0s
Update=70000

[SOURCE]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://s3prod.weheartit.netdna-cdn.com/images/
RegExp="(?siU)<img src="(.*)"/>"

[WALLPAPER]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://s3prod.weheartit.netdna-cdn.com/images/[SOURCE]
StringIndex=1
Download=1
ALIGNMENT=1
Autosize=1
alpha=0.980395
hidden=0
MonitorResolution=-ratio -rtype lanczos -resize 1680 0

[wall]
Meter=IMAGE
X=-5
Y=-2
W=720
H=110
ImageAlpha=#alpha#
ImageName=back.png
DynamicVariables=1
Hidden=0


[NactiObrazky]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
MeasureName=WALLPAPER



[NactiObrazky1]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
MeasureName=WALLPAPER



[NactiObrazky2]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
MeasureName=WALLPAPER


[NactiObrazky3]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
MeasureName=WALLPAPER


[NactiObrazky4]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
MeasureName=WALLPAPER


[NactiObrazky5]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
MeasureName=WALLPAPER


[Obrazek]
MeasureName=NactiObrazky
Meter=IMAGE
X=25
Y=20
W=105
H=65
UpdateRate=6000
PreserveAspectRatio=#Autosize#
LeftMouseUpAction=!execute ["#SKINSPATH#\Gylf\Wall Change\CLWCP.exe" "[NactiObrazky]"]
MouseLeaveAction=!Execute [!RainmeterRefresh]

 
[Obrazek1]
MeasureName=NactiObrazky1
Meter=IMAGE
X=135
Y=20
W=105
H=65
PreserveAspectRatio=#Autosize#
LeftMouseUpAction=!execute ["#SKINSPATH#\Gylf\Wall Change\CLWCP.exe" "[NactiObrazky1]"]


[Obrazek2]
MeasureName=NactiObrazky2
Meter=IMAGE
X=245
Y=20
W=105
H=65
PreserveAspectRatio=#Autosize#
LeftMouseUpAction=!execute ["#SKINSPATH#\Gylf\Wall Change\CLWCP.exe" "[NactiObrazky2]"]


[Obrazek3]
MeasureName=NactiObrazky3
Meter=IMAGE
X=355
Y=20
W=105
H=65
PreserveAspectRatio=#Autosize#
LeftMouseUpAction=!execute ["#SKINSPATH#\Gylf\Wall Change\CLWCP.exe" "[NactiObrazky3]"]


[Obrazek4]
MeasureName=NactiObrazky4
Meter=IMAGE
X=465
Y=20
W=105
H=65
PreserveAspectRatio=#Autosize#
LeftMouseUpAction=!execute ["#SKINSPATH#\Gylf\Wall Change\CLWCP.exe" "[NactiObrazky4]"]



[Obrazek5]
MeasureName=NactiObrazky5
Meter=IMAGE
X=575
Y=20
W=105
H=65
PreserveAspectRatio=#Autosize#
LeftMouseUpAction=!execute ["#SKINSPATH#\Gylf\Wall Change\CLWCP.exe" "[NactiObrazky5]"]
RightMouseUpAction=!execute [!RainmeterActivateConfig "Gylf" "config_tool.ini"] [!RainmeterRedraw]


That's the file. I hope someone can help me!
Thanks in advance.
User avatar
kenz0
Developer
Posts: 263
Joined: July 31st, 2009, 2:23 pm
Location: Tokyo, JPN

Re: Display Web Images

Post by kenz0 »

I think it is easier to scrape a URL of image from RSS rather in this case.
Here is a basic example for that.

Code: Select all

[MeasureImage]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=1800
Url=http://feeds.feedburner.com/weheartit
RegExp="(?siU)src=\"(.*)\".*src=\"(.*)\".*src=\"(.*)\".*src=\"(.*)\".*src=\"(.*)\""
StringIndex=1
Download=1

[MeasureImage2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureImage]
StringIndex=2
Download=1

[MeasureImage3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureImage]
StringIndex=3
Download=1

[MeasureImage4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureImage]
StringIndex=4
Download=1

[MeasureImage5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureImage]
StringIndex=5
Download=1

[StyleImage]
X=10R
Y=0r
W=100
H=100
PreserveAspectRatio=1

[MeterImage1]
Meter=IMAGE
MeasureName=MeasureImage
MeterStyle=StyleImage
X=0
Y=0

[MeterImage2]
Meter=IMAGE
MeasureName=MeasureImage2
MeterStyle=StyleImage

[MeterImage3]
Meter=IMAGE
MeasureName=MeasureImage3
MeterStyle=StyleImage

[MeterImage4]
Meter=IMAGE
MeasureName=MeasureImage4
MeterStyle=StyleImage

[MeterImage5]
Meter=IMAGE
MeasureName=MeasureImage5
MeterStyle=StyleImage
.
Image
Revelation
Posts: 4
Joined: December 14th, 2010, 6:47 pm

Re: Display Web Images

Post by Revelation »

EDIT: Im stuck on the part where u click on it and it sets it as your wallpaper, the rest is done.