It is currently May 9th, 2024, 1:59 am

Instead of x numbers of measures with StringIndex=x

Report bugs with the Rainmeter application and suggest features.
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Instead of x numbers of measures with StringIndex=x

Post by JpsCrazy »

Would it be possible to have a meter with StringIndex instead of have a million measures with just the same info and a different StringIndex?
I was thinking simillarly to how the iTunes plugin works now, where you just have the one measure and use !bangs to control it. I know this is different, but hopefully possible. I'm working with 81 string index's at the least right now...

Like so:

Code: Select all

[measureRSS]
Measure=Plugin
Plugin=Webparser.dll
Url=someurl.com
RegExp=(?siU)(.*) and (.*) and (.*)

[meterLink1]
Meter=String
MeasureName=measureRSS
StringIndex=1

[meterLink2]
Meter=String
MeasureName=measureRSS
StringIndex=2

[meterLink3]
Meter=String
MeasureName=measureRSS
StringIndex=3
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Instead of x numbers of measures with StringIndex=x

Post by jsmorley »

In principle, that is a nice idea. However it is not how WebParser works. Someday, when someone gets a really wild hair and decides to re-design WebParser to add authentication and other things it needs, that would be worth looking at as a new / alternative approach. I would not hold my breath though.