It is currently September 1st, 2024, 2:24 am

updating stuffs question...

Get help with creating, editing & fixing problems with skins
mihir
Posts: 8
Joined: June 22nd, 2010, 6:44 am

updating stuffs question...

Post by mihir »

hi, i am trying to update some text by every hour.. basically i want something like "a quote of the day" where it changes by hours.. dont wanna do by rss feed... well i know dat i can make all text into image, n can use like a slideshow, but its way too much of work, is there any code which can update text by certain amount of time..?
poiru
Developer
Posts: 2873
Joined: April 17th, 2009, 12:18 pm

Re: updating stuffs question...

Post by poiru »

You could use the QuotePlugin with UpdateDivider set to something like 3600 to update every hour.
mihir
Posts: 8
Joined: June 22nd, 2010, 6:44 am

Re: updating stuffs question...

Post by mihir »

Examples

Code: Select all

[Rainmeter]
Author=Mihir
//Background=bg.png
UpdateDivider=3600

;Metadata added by RainBrowser
;http://rainmeter.net/RainWiki/index.php?title=Rainmeter_101#.5BMetadata.5D

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=
;End of added Metadata

[MeasureQuote]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=C:\Users\Mihir\Desktop\Wallpaper\mihir.txt
Subfolders=1
FileFilter=*.jpg;*.gif,*.txt

[MeterQuote]
Meter=IMAGE
X=0
Y=0
W=200
H=200
MeasureName=MeasureQuote
n on mihir.txt, i wrote something like this
"dgfdfgdfgdgd /n
dgfgsdfsdfsfsdfs /n
fsfsdfsdfsdf /n
sfsdfdsfdsfsfaaf /n"

i tried that but its not working...
Last edited by Chewtoy on June 22nd, 2010, 8:05 pm, edited 1 time in total.
Reason: Use [code] tages when posting code.
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: updating stuffs question...

Post by JpsCrazy »

Try changing [MeterQuote] from Meter=Image to Meter=String
And you only want FileFilter=*.txt if you include it at all.
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: updating stuffs question...

Post by Chewtoy »

UpdateDivider should be in the [MeasureQuote]-section. Not [Rainmeter].
The [MeasureQuote]-section should look something like this:

Code: Select all

[MeasureQuote]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#File#
UpdateDivider=3600
Where #File# is the path to the file, mihir.txt

The meter should be a String-meter and not an Image-meter. Look up how you write those.
http://rainmeter.net/cms/Support
I don't think, therefore I'm not.
mihir
Posts: 8
Joined: June 22nd, 2010, 6:44 am

Re: updating stuffs question...

Post by mihir »

i fixed my updateDivider n Meter=String ... for some reason my txt is not showing up.... even tried to change color,font,size,autoscale n everything up its still not working... :(
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: updating stuffs question...

Post by Chewtoy »

Code: Select all

[Rainmeter]
Author=Chewtoy
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0, 0, 0, 100


[Variables]
FontColor=255, 255, 255, 150
FontFace=Tahoma
FontSize=8
SolidColor=255, 255, 255, 80

File=#CURRENTPATH#Text.txt

;----


[MeasureQuote]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#File#
UpdateDivider=3600



;----

[quote]
Meter=String
MeasureName=Measurequote
X=2
Y=R
FontColor=#FontColor#
FontFace=#FontFace#
FontSize=#FontSize#
AntiAlias=1
Text="%1"
Make a file named Text.txt in the same folder.
If that don't work for you... something is VERY strange.
I don't think, therefore I'm not.
mihir
Posts: 8
Joined: June 22nd, 2010, 6:44 am

Re: updating stuffs question...

Post by mihir »

it works fine now... thanks every1 for help... here was my plan in that txt file, there was all kind of funny horoscope created my me, they are related to money, love, health... since it randomize between money, health n love, i have three different picture for those three horoscope topic, is there any way that when money quote shows up money picture appears somewhere... sry for asking these many questions...