Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1584

Help: Rainmeter Skins • Re: Convert <svg path> from html and display in shape meter

$
0
0
Found a good solution with excellent performance as well, and it's actually none of your proposed ones.
just use the entire <rect ...></rect> part as the pattern of a sole Substitute part (i.e. without trying to substitute only pieces of it), then do your thing through correspondingly using the suited order for the values that you capture, e.g. \1 \3 \2 \4 \5 \6, where the captures, from \1 to \6, are the X, W, Y, H, Fill Color and StrokeWidth values. Obviously, you can easily insert the needed parts between those values in the replacement, as per the Rectangle Shape syntax.

The 1st tricky thing here is another one: numbering the Shape options. Regex can't count by itself and there's no numbering of <rect>-s that you can use from the input string, so this is the actual challenge. There are some creative (or hacking, whatever you want to call them) ways to deal with that
In the meantime, since I kinda like this project, here's one way I was thinking to achieve the graph in 2 short measures, just for fun...

[SkinPath]\Html - All Rects.txt:

Code:

<rect x=0.6265624999999966 width=2.92395833333334 y=0 height=6.197478991596644 style=fill:rgb(243,115,32);opacity:1></rect><rect x=4.80364583333333 width=2.92395833333334 y=0 height=7.457983193277312 style=fill:rgb(243,115,32);opacity:1></rect><rect x=8.980729166666665 width=2.92395833333334 y=0 height=7.142857142857145 style=fill:rgb(243,115,32);opacity:1></rect><rect x=13.157812499999999 width=2.92395833333334 y=0 height=6.092436974789922 style=fill:rgb(243,115,32);opacity:1></rect><rect x=17.33489583333333 width=2.92395833333334 y=0 height=3.781512605042017 style=fill:rgb(243,115,32);opacity:1></rect><rect x=21.511979166666663 width=2.92395833333334 y=0 height=3.781512605042017 style=fill:rgb(243,115,32);opacity:1></rect><rect x=25.689062499999995 width=2.92395833333334 y=0 height=3.361344537815128 style=fill:rgb(243,115,32);opacity:1></rect><rect x=29.86614583333333 width=2.92395833333334 y=0 height=3.2563025210084056 style=fill:rgb(243,115,32);opacity:1></rect><rect x=34.04322916666666 width=2.92395833333334 y=0 height=3.1512605042016832 style=fill:rgb(243,115,32);opacity:1></rect><rect x=38.22031249999999 width=2.92395833333334 y=0 height=3.361344537815128 style=fill:rgb(243,115,32);opacity:1></rect><rect x=42.39739583333333 width=2.92395833333334 y=0 height=3.361344537815128 style=fill:rgb(243,115,32);opacity:1></rect><rect x=46.57447916666666 width=2.92395833333334 y=0 height=5.147058823529408 style=fill:rgb(243,115,32);opacity:1></rect><rect x=50.7515625 width=2.92395833333334 y=0 height=4.936974789915963 style=fill:rgb(243,115,32);opacity:1></rect><rect x=54.92864583333333 width=2.92395833333334 y=0 height=4.936974789915963 style=fill:rgb(243,115,32);opacity:1></rect><rect x=59.105729166666656 width=2.92395833333334 y=0 height=4.621848739495796 style=fill:rgb(243,115,32);opacity:1></rect><rect x=63.2828125 width=2.92395833333334 y=0 height=3.5714285714285725 style=fill:rgb(243,115,32);opacity:1></rect><rect x=67.45989583333333 width=2.92395833333334 y=0 height=3.046218487394961 style=fill:rgb(243,115,32);opacity:1></rect><rect x=71.63697916666666 width=2.92395833333334 y=0 height=3.046218487394961 style=fill:rgb(243,115,32);opacity:1></rect><rect x=75.8140625 width=2.92395833333334 y=0 height=3.2563025210084056 style=fill:rgb(243,115,32);opacity:1></rect><rect x=79.99114583333333 width=2.92395833333334 y=0 height=3.2563025210084056 style=fill:rgb(243,115,32);opacity:1></rect><rect x=84.16822916666666 width=2.92395833333334 y=0 height=3.046218487394961 style=fill:rgb(243,115,32);opacity:1></rect><rect x=88.3453125 width=2.92395833333334 y=0 height=3.1512605042016832 style=fill:rgb(243,115,32);opacity:1></rect><rect x=92.52239583333333 width=2.92395833333334 y=0 height=3.1512605042016832 style=fill:rgb(243,115,32);opacity:1></rect><rect x=96.69947916666666 width=2.92395833333334 y=0 height=4.621848739495796 style=fill:rgb(243,115,32);opacity:1></rect><rect x=100.87656249999999 width=2.92395833333334 y=0 height=4.831932773109241 style=fill:rgb(243,115,32);opacity:1></rect><rect x=105.05364583333333 width=2.92395833333334 y=0 height=4.516806722689074 style=fill:rgb(243,115,32);opacity:1></rect><rect x=109.23072916666668 width=2.92395833333334 y=0 height=4.621848739495796 style=fill:rgb(243,115,32);opacity:1></rect><rect x=113.40781249999999 width=2.92395833333334 y=0 height=3.2563025210084056 style=fill:rgb(243,115,32);opacity:1></rect><rect x=117.58489583333333 width=2.92395833333334 y=0 height=3.1512605042016832 style=fill:rgb(243,115,32);opacity:1></rect><rect x=121.76197916666668 width=2.92395833333334 y=0 height=1.0504201680672232 style=fill:rgb(243,115,32);opacity:1></rect><rect x=125.93906249999999 width=2.92395833333334 y=0 height=1.36554621848739 style=fill:rgb(243,115,32);opacity:1></rect><rect x=130.11614583333332 width=2.92395833333334 y=0 height=0.8403361344537785 style=fill:rgb(243,115,32);opacity:1></rect><rect x=134.29322916666666 width=2.92395833333334 y=0 height=1.1554621848739455 style=fill:rgb(243,115,32);opacity:1></rect><rect x=138.47031249999998 width=2.92395833333334 y=0 height=2.5210084033613493 style=fill:rgb(243,115,32);opacity:1></rect><rect x=142.64739583333332 width=2.92395833333334 y=0 height=1.5756302521008347 style=fill:rgb(243,115,32);opacity:1></rect><rect x=146.82447916666666 width=2.92395833333334 y=0 height=3.046218487394961 style=fill:rgb(243,115,32);opacity:1></rect><rect x=151.00156249999998 width=2.92395833333334 y=0 height=3.46638655462185 style=fill:rgb(243,115,32);opacity:1></rect><rect x=155.17864583333332 width=2.92395833333334 y=0 height=3.9915966386554618 style=fill:rgb(243,115,32);opacity:1></rect><rect x=159.35572916666666 width=2.92395833333334 y=0 height=3.046218487394961 style=fill:rgb(243,115,32);opacity:1></rect><rect x=163.53281249999998 width=2.92395833333334 y=0 height=3.46638655462185 style=fill:rgb(243,115,32);opacity:1></rect><rect x=167.70989583333332 width=2.92395833333334 y=0 height=9.033613445378148 style=fill:rgb(243,115,32);opacity:1></rect><rect x=171.88697916666666 width=2.92395833333334 y=0 height=3.046218487394961 style=fill:rgb(243,115,32);opacity:1></rect><rect x=176.06406249999998 width=2.92395833333334 y=0 height=7.9831932773109235 style=fill:rgb(243,115,32);opacity:1></rect><rect x=180.24114583333332 width=2.92395833333334 y=0 height=1.680672268907557 style=fill:rgb(243,115,32);opacity:1></rect><rect x=184.41822916666666 width=2.92395833333334 y=0 height=6.827731092436978 style=fill:rgb(243,115,32);opacity:1></rect><rect x=188.59531249999998 width=2.92395833333334 y=0 height=3.46638655462185 style=fill:rgb(243,115,32);opacity:1></rect><rect x=192.77239583333332 width=2.92395833333334 y=0 height=3.5714285714285725 style=fill:rgb(243,115,32);opacity:1></rect><rect x=196.94947916666666 width=2.92395833333334 y=0 height=5.357142857142852 style=fill:rgb(243,115,32);opacity:1></rect><rect x=201.1265625 width=2.92395833333334 y=0 height=8.193277310924369 style=fill:rgb(243,115,32);opacity:1></rect><rect x=205.30364583333332 width=2.92395833333334 y=0 height=8.298319327731091 style=fill:rgb(243,115,32);opacity:1></rect><rect x=209.48072916666663 width=2.92395833333334 y=0 height=11.134453781512606 style=fill:rgb(243,115,32);opacity:1></rect><rect x=213.6578125 width=2.92395833333334 y=0 height=6.827731092436978 style=fill:rgb(243,115,32);opacity:1></rect><rect x=217.83489583333332 width=2.92395833333334 y=0 height=6.197478991596644 style=fill:rgb(243,115,32);opacity:1></rect><rect x=222.01197916666663 width=2.92395833333334 y=0 height=3.9915966386554618 style=fill:rgb(243,115,32);opacity:1></rect><rect x=226.1890625 width=2.92395833333334 y=0 height=3.9915966386554618 style=fill:rgb(243,115,32);opacity:1></rect><rect x=230.36614583333332 width=2.92395833333334 y=0 height=3.676470588235295 style=fill:rgb(243,115,32);opacity:1></rect><rect x=234.54322916666663 width=2.92395833333334 y=0 height=3.361344537815128 style=fill:rgb(243,115,32);opacity:1></rect><rect x=238.7203125 width=2.92395833333334 y=0 height=17.75210084033614 style=fill:rgb(243,115,32);opacity:1></rect><rect x=242.89739583333332 width=2.92395833333334 y=0 height=2.10084033613446 style=fill:rgb(243,115,32);opacity:1></rect><rect x=247.07447916666663 width=2.92395833333334 y=0 height=4.516806722689074 style=fill:rgb(243,115,32);opacity:1></rect><rect x=251.2515625 width=2.92395833333334 y=0 height=9.033613445378148 style=fill:rgb(243,115,32);opacity:1></rect><rect x=255.42864583333332 width=2.92395833333334 y=0 height=7.563025210084034 style=fill:rgb(243,115,32);opacity:1></rect><rect x=259.60572916666666 width=2.92395833333334 y=0 height=12.605042016806719 style=fill:rgb(243,115,32);opacity:1></rect><rect x=263.78281250000003 width=2.92395833333334 y=0 height=8.088235294117647 style=fill:rgb(243,115,32);opacity:1></rect><rect x=267.95989583333335 width=2.92395833333334 y=0 height=6.197478991596644 style=fill:rgb(243,115,32);opacity:1></rect><rect x=272.13697916666666 width=2.92395833333334 y=0 height=6.3025210084033665 style=fill:rgb(243,115,32);opacity:1></rect><rect x=276.31406250000003 width=2.92395833333334 y=0 height=6.197478991596644 style=fill:rgb(243,115,32);opacity:1></rect><rect x=280.49114583333335 width=2.92395833333334 y=0 height=5.882352941176477 style=fill:rgb(243,115,32);opacity:1></rect><rect x=284.66822916666666 width=2.92395833333334 y=0 height=3.676470588235295 style=fill:rgb(243,115,32);opacity:1></rect><rect x=288.84531250000003 width=2.92395833333334 y=0 height=3.46638655462185 style=fill:rgb(243,115,32);opacity:1></rect><rect x=293.02239583333335 width=2.92395833333334 y=0 height=3.5714285714285725 style=fill:rgb(243,115,32);opacity:1></rect><rect x=297.19947916666666 width=2.92395833333334 y=0 height=3.9915966386554618 style=fill:rgb(243,115,32);opacity:1></rect><rect x=301.37656250000003 width=2.92395833333334 y=0 height=5.672268907563019 style=fill:rgb(243,115,32);opacity:1></rect><rect x=305.55364583333335 width=2.92395833333334 y=0 height=5.777310924369742 style=fill:rgb(243,115,32);opacity:1></rect><rect x=309.73072916666666 width=2.92395833333334 y=0 height=7.878151260504201 style=fill:rgb(243,115,32);opacity:1></rect><rect x=313.90781250000003 width=2.92395833333334 y=0 height=7.457983193277312 style=fill:rgb(243,115,32);opacity:1></rect><rect x=318.08489583333335 width=2.92395833333334 y=0 height=5.9873949579831995 style=fill:rgb(243,115,32);opacity:1></rect><rect x=322.26197916666666 width=2.92395833333334 y=0 height=5.25210084033613 style=fill:rgb(243,115,32);opacity:1></rect><rect x=326.43906250000003 width=2.92395833333334 y=0 height=5.147058823529408 style=fill:rgb(243,115,32);opacity:1></rect><rect x=330.61614583333335 width=2.92395833333334 y=0 height=4.936974789915963 style=fill:rgb(243,115,32);opacity:1></rect><rect x=334.79322916666666 width=2.92395833333334 y=0 height=5.042016806722685 style=fill:rgb(243,115,32);opacity:1></rect><rect x=338.97031250000003 width=2.92395833333334 y=0 height=5.147058823529408 style=fill:rgb(243,115,32);opacity:1></rect><rect x=343.14739583333335 width=2.92395833333334 y=0 height=4.0966386554621845 style=fill:rgb(243,115,32);opacity:1></rect><rect x=347.32447916666666 width=2.92395833333334 y=0 height=9.873949579831939 style=fill:rgb(243,115,32);opacity:1></rect><rect x=351.50156250000003 width=2.92395833333334 y=0 height=5.147058823529408 style=fill:rgb(243,115,32);opacity:1></rect><rect x=355.67864583333335 width=2.92395833333334 y=0 height=4.726890756302518 style=fill:rgb(243,115,32);opacity:1></rect><rect x=359.85572916666666 width=2.92395833333334 y=0 height=4.936974789915963 style=fill:rgb(243,115,32);opacity:1></rect><rect x=364.03281250000003 width=2.92395833333334 y=0 height=3.1512605042016832 style=fill:rgb(243,115,32);opacity:1></rect><rect x=368.20989583333335 width=2.92395833333334 y=0 height=5.882352941176477 style=fill:rgb(243,115,32);opacity:1></rect><rect x=372.38697916666666 width=2.92395833333334 y=0 height=10.609243697478995 style=fill:rgb(243,115,32);opacity:1></rect><rect x=376.56406250000003 width=2.92395833333334 y=0 height=7.563025210084034 style=fill:rgb(243,115,32);opacity:1></rect><rect x=380.74114583333335 width=2.92395833333334 y=0 height=0 style=fill:rgb(243,115,32);opacity:1></rect><rect x=384.91822916666666 width=2.92395833333334 y=0 height=0 style=fill:rgb(243,115,32);opacity:1></rect><rect x=389.09531250000003 width=2.92395833333334 y=0 height=0 style=fill:rgb(243,115,32);opacity:1></rect><rect x=393.27239583333335 width=2.92395833333334 y=0 height=0 style=fill:rgb(243,115,32);opacity:1></rect><rect x=397.44947916666666 width=2.92395833333334 y=0 height=0 style=fill:rgb(243,115,32);opacity:1></rect><rect x=0.6265624999999966 width=2.92395833333334 y=6.197478991596644 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=4.80364583333333 width=2.92395833333334 y=7.457983193277312 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=8.980729166666665 width=2.92395833333334 y=7.142857142857145 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=13.157812499999999 width=2.92395833333334 y=6.092436974789922 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=17.33489583333333 width=2.92395833333334 y=3.781512605042017 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=21.511979166666663 width=2.92395833333334 y=3.781512605042017 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=25.689062499999995 width=2.92395833333334 y=3.361344537815128 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=29.86614583333333 width=2.92395833333334 y=3.2563025210084056 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=34.04322916666666 width=2.92395833333334 y=3.1512605042016832 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=38.22031249999999 width=2.92395833333334 y=3.361344537815128 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=42.39739583333333 width=2.92395833333334 y=3.361344537815128 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=46.57447916666666 width=2.92395833333334 y=5.147058823529408 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=50.7515625 width=2.92395833333334 y=4.936974789915963 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=54.92864583333333 width=2.92395833333334 y=4.936974789915963 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=59.105729166666656 width=2.92395833333334 y=4.621848739495796 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=63.2828125 width=2.92395833333334 y=3.5714285714285725 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=67.45989583333333 width=2.92395833333334 y=3.046218487394961 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=71.63697916666666 width=2.92395833333334 y=3.046218487394961 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=75.8140625 width=2.92395833333334 y=3.2563025210084056 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=79.99114583333333 width=2.92395833333334 y=3.2563025210084056 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=84.16822916666666 width=2.92395833333334 y=3.046218487394961 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=88.3453125 width=2.92395833333334 y=3.1512605042016832 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=92.52239583333333 width=2.92395833333334 y=3.1512605042016832 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=96.69947916666666 width=2.92395833333334 y=4.621848739495796 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=100.87656249999999 width=2.92395833333334 y=4.831932773109241 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=105.05364583333333 width=2.92395833333334 y=4.516806722689074 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=109.23072916666668 width=2.92395833333334 y=4.621848739495796 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=113.40781249999999 width=2.92395833333334 y=3.2563025210084056 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=117.58489583333333 width=2.92395833333334 y=3.1512605042016832 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=121.76197916666668 width=2.92395833333334 y=1.0504201680672232 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=125.93906249999999 width=2.92395833333334 y=1.36554621848739 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=130.11614583333332 width=2.92395833333334 y=0.8403361344537785 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=134.29322916666666 width=2.92395833333334 y=1.1554621848739455 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=138.47031249999998 width=2.92395833333334 y=2.5210084033613493 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=142.64739583333332 width=2.92395833333334 y=1.5756302521008347 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=146.82447916666666 width=2.92395833333334 y=3.046218487394961 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=151.00156249999998 width=2.92395833333334 y=3.46638655462185 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=155.17864583333332 width=2.92395833333334 y=3.9915966386554618 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=159.35572916666666 width=2.92395833333334 y=3.046218487394961 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=163.53281249999998 width=2.92395833333334 y=3.46638655462185 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=167.70989583333332 width=2.92395833333334 y=9.033613445378148 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=171.88697916666666 width=2.92395833333334 y=3.046218487394961 height=3.361344537815128 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=176.06406249999998 width=2.92395833333334 y=7.9831932773109235 height=26.995798319327733 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=180.24114583333332 width=2.92395833333334 y=1.680672268907557 height=29.201680672268914 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=184.41822916666666 width=2.92395833333334 y=6.827731092436978 height=40.12605042016806 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=188.59531249999998 width=2.92395833333334 y=3.46638655462185 height=42.226890756302524 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=192.77239583333332 width=2.92395833333334 y=3.5714285714285725 height=40.12605042016806 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=196.94947916666666 width=2.92395833333334 y=5.357142857142852 height=30.567226890756302 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=201.1265625 width=2.92395833333334 y=8.193277310924369 height=31.407563025210084 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=205.30364583333332 width=2.92395833333334 y=8.298319327731091 height=38.02521008403362 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=209.48072916666663 width=2.92395833333334 y=11.134453781512606 height=57.24789915966387 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=213.6578125 width=2.92395833333334 y=6.827731092436978 height=55.357142857142854 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=217.83489583333332 width=2.92395833333334 y=6.197478991596644 height=61.1344537815126 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=222.01197916666663 width=2.92395833333334 y=3.9915966386554618 height=70.58823529411764 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=226.1890625 width=2.92395833333334 y=3.9915966386554618 height=69.74789915966386 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=230.36614583333332 width=2.92395833333334 y=3.676470588235295 height=75.52521008403362 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=234.54322916666663 width=2.92395833333334 y=3.361344537815128 height=47.58403361344538 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=238.7203125 width=2.92395833333334 y=17.75210084033614 height=58.71848739495799 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=242.89739583333332 width=2.92395833333334 y=2.10084033613446 height=46.95378151260504 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=247.07447916666663 width=2.92395833333334 y=4.516806722689074 height=30.88235294117647 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=251.2515625 width=2.92395833333334 y=9.033613445378148 height=25.00000000000001 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=255.42864583333332 width=2.92395833333334 y=7.563025210084034 height=42.436974789915965 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=259.60572916666666 width=2.92395833333334 y=12.605042016806719 height=54.20168067226891 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=263.78281250000003 width=2.92395833333334 y=8.088235294117647 height=24.894957983193272 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=267.95989583333335 width=2.92395833333334 y=6.197478991596644 height=32.8781512605042 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=272.13697916666666 width=2.92395833333334 y=6.3025210084033665 height=23.634453781512605 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=276.31406250000003 width=2.92395833333334 y=6.197478991596644 height=35.50420168067227 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=280.49114583333335 width=2.92395833333334 y=5.882352941176477 height=36.659663865546214 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=284.66822916666666 width=2.92395833333334 y=3.676470588235295 height=23.73949579831933 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=288.84531250000003 width=2.92395833333334 y=3.46638655462185 height=34.66386554621849 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=293.02239583333335 width=2.92395833333334 y=3.5714285714285725 height=19.01260504201681 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=297.19947916666666 width=2.92395833333334 y=3.9915966386554618 height=5.987394957983199 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=301.37656250000003 width=2.92395833333334 y=5.672268907563019 height=5.462184873949587 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=305.55364583333335 width=2.92395833333334 y=5.777310924369742 height=7.668067226890756 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=309.73072916666666 width=2.92395833333334 y=7.878151260504201 height=4.621848739495795 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=313.90781250000003 width=2.92395833333334 y=7.457983193277312 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=318.08489583333335 width=2.92395833333334 y=5.9873949579831995 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=322.26197916666666 width=2.92395833333334 y=5.25210084033613 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=326.43906250000003 width=2.92395833333334 y=5.147058823529408 height=0.10504201680672232 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=330.61614583333335 width=2.92395833333334 y=4.936974789915963 height=2.941176470588238 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=334.79322916666666 width=2.92395833333334 y=5.042016806722685 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=338.97031250000003 width=2.92395833333334 y=5.147058823529408 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=343.14739583333335 width=2.92395833333334 y=4.0966386554621845 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=347.32447916666666 width=2.92395833333334 y=9.873949579831939 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=351.50156250000003 width=2.92395833333334 y=5.147058823529408 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=355.67864583333335 width=2.92395833333334 y=4.726890756302518 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=359.85572916666666 width=2.92395833333334 y=4.936974789915963 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=364.03281250000003 width=2.92395833333334 y=3.1512605042016832 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=368.20989583333335 width=2.92395833333334 y=5.882352941176477 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=372.38697916666666 width=2.92395833333334 y=10.609243697478995 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=376.56406250000003 width=2.92395833333334 y=7.563025210084034 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=380.74114583333335 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=384.91822916666666 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=389.09531250000003 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=393.27239583333335 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=397.44947916666666 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(101,101,105)></rect><rect x=0.6265624999999966 width=2.92395833333334 y=6.197478991596644 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=4.80364583333333 width=2.92395833333334 y=7.457983193277312 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=8.980729166666665 width=2.92395833333334 y=7.142857142857145 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=13.157812499999999 width=2.92395833333334 y=6.092436974789922 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=17.33489583333333 width=2.92395833333334 y=3.781512605042017 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=21.511979166666663 width=2.92395833333334 y=3.781512605042017 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=25.689062499999995 width=2.92395833333334 y=3.361344537815128 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=29.86614583333333 width=2.92395833333334 y=3.2563025210084056 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=34.04322916666666 width=2.92395833333334 y=3.1512605042016832 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=38.22031249999999 width=2.92395833333334 y=3.361344537815128 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=42.39739583333333 width=2.92395833333334 y=3.361344537815128 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=46.57447916666666 width=2.92395833333334 y=5.147058823529408 height=0.31512605042016695 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=50.7515625 width=2.92395833333334 y=4.936974789915963 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=54.92864583333333 width=2.92395833333334 y=4.936974789915963 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=59.105729166666656 width=2.92395833333334 y=4.621848739495796 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=63.2828125 width=2.92395833333334 y=3.5714285714285725 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=67.45989583333333 width=2.92395833333334 y=3.046218487394961 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=71.63697916666666 width=2.92395833333334 y=3.046218487394961 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=75.8140625 width=2.92395833333334 y=3.2563025210084056 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=79.99114583333333 width=2.92395833333334 y=3.2563025210084056 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=84.16822916666666 width=2.92395833333334 y=3.046218487394961 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=88.3453125 width=2.92395833333334 y=3.1512605042016832 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=92.52239583333333 width=2.92395833333334 y=3.1512605042016832 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=96.69947916666666 width=2.92395833333334 y=4.621848739495796 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=100.87656249999999 width=2.92395833333334 y=4.831932773109241 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=105.05364583333333 width=2.92395833333334 y=4.516806722689074 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=109.23072916666668 width=2.92395833333334 y=4.621848739495796 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=113.40781249999999 width=2.92395833333334 y=3.2563025210084056 height=0.6302521008403339 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=117.58489583333333 width=2.92395833333334 y=3.1512605042016832 height=1.9957983193277244 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=121.76197916666668 width=2.92395833333334 y=1.0504201680672232 height=6.197478991596644 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=125.93906249999999 width=2.92395833333334 y=1.36554621848739 height=6.197478991596644 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=130.11614583333332 width=2.92395833333334 y=0.8403361344537785 height=7.142857142857145 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=134.29322916666666 width=2.92395833333334 y=1.1554621848739455 height=8.508403361344536 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=138.47031249999998 width=2.92395833333334 y=2.5210084033613493 height=15.441176470588236 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=142.64739583333332 width=2.92395833333334 y=1.5756302521008347 height=18.69747899159664 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=146.82447916666666 width=2.92395833333334 y=3.046218487394961 height=19.537815126050422 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=151.00156249999998 width=2.92395833333334 y=3.46638655462185 height=16.701680672268907 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=155.17864583333332 width=2.92395833333334 y=3.9915966386554618 height=19.432773109243698 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=159.35572916666666 width=2.92395833333334 y=3.046218487394961 height=26.26050420168068 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=163.53281249999998 width=2.92395833333334 y=3.46638655462185 height=31.72268907563025 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=167.70989583333332 width=2.92395833333334 y=9.033613445378148 height=30.252100840336137 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=171.88697916666666 width=2.92395833333334 y=6.407563025210089 height=30.462184873949568 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=176.06406249999998 width=2.92395833333334 y=34.97899159663866 height=7.878151260504197 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=180.24114583333332 width=2.92395833333334 y=30.88235294117647 height=1.680672268907557 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=184.41822916666666 width=2.92395833333334 y=46.95378151260504 height=1.99579831932774 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=188.59531249999998 width=2.92395833333334 y=45.69327731092437 height=0.6302521008403374 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=192.77239583333332 width=2.92395833333334 y=43.69747899159663 height=0.3151260504201687 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=196.94947916666666 width=2.92395833333334 y=35.924369747899156 height=0.8403361344537785 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=201.1265625 width=2.92395833333334 y=39.60084033613445 height=0.42016806722688926 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=205.30364583333332 width=2.92395833333334 y=46.32352941176471 height=0.5252100840336098 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=209.48072916666663 width=2.92395833333334 y=68.38235294117648 height=0.735294117647058 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=213.6578125 width=2.92395833333334 y=62.18487394957983 height=0.42016806722688926 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=217.83489583333332 width=2.92395833333334 y=67.33193277310924 height=0.8403361344537927 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=222.01197916666663 width=2.92395833333334 y=74.5798319327731 height=0.42016806722689637 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=226.1890625 width=2.92395833333334 y=73.73949579831933 height=0.6302521008403374 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=230.36614583333332 width=2.92395833333334 y=79.2016806722689 height=0.42016806722688216 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=234.54322916666663 width=2.92395833333334 y=50.945378151260506 height=0.7352941176470509 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=238.7203125 width=2.92395833333334 y=76.47058823529413 height=0.42016806722688216 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=242.89739583333332 width=2.92395833333334 y=49.0546218487395 height=0.8403361344537785 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=247.07447916666663 width=2.92395833333334 y=35.39915966386555 height=0.21008403361344108 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=251.2515625 width=2.92395833333334 y=34.03361344537816 height=1.5756302521008294 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=255.42864583333332 width=2.92395833333334 y=50 height=0.3151260504201687 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=259.60572916666666 width=2.92395833333334 y=66.80672268907563 height=0.5252100840336169 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=263.78281250000003 width=2.92395833333334 y=32.98319327731092 height=0.4201680672269035 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=267.95989583333335 width=2.92395833333334 y=39.075630252100844 height=0.6302521008403303 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=272.13697916666666 width=2.92395833333334 y=29.936974789915972 height=0.6302521008403339 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=276.31406250000003 width=2.92395833333334 y=41.701680672268914 height=0.3151260504201616 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=280.49114583333335 width=2.92395833333334 y=42.54201680672269 height=0.7352941176470509 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=284.66822916666666 width=2.92395833333334 y=27.415966386554622 height=0.7352941176470544 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=288.84531250000003 width=2.92395833333334 y=38.13025210084034 height=0.3151260504201687 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=293.02239583333335 width=2.92395833333334 y=22.58403361344538 height=0.6302521008403339 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=297.19947916666666 width=2.92395833333334 y=9.97899159663866 height=0.5252100840336116 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=301.37656250000003 width=2.92395833333334 y=11.134453781512606 height=0.6302521008403339 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=305.55364583333335 width=2.92395833333334 y=13.445378151260497 height=0.6302521008403481 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=309.73072916666666 width=2.92395833333334 y=12.499999999999996 height=0.31512605042016695 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=313.90781250000003 width=2.92395833333334 y=7.457983193277312 height=0.8403361344537794 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=318.08489583333335 width=2.92395833333334 y=5.9873949579831995 height=0.7352941176470562 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=322.26197916666666 width=2.92395833333334 y=5.25210084033613 height=0.6302521008403472 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=326.43906250000003 width=2.92395833333334 y=5.25210084033613 height=1.4705882352941257 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=330.61614583333335 width=2.92395833333334 y=7.878151260504201 height=0.5252100840336125 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=334.79322916666666 width=2.92395833333334 y=5.042016806722685 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=338.97031250000003 width=2.92395833333334 y=5.147058823529408 height=0 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=343.14739583333335 width=2.92395833333334 y=4.0966386554621845 height=0.31512605042016695 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=347.32447916666666 width=2.92395833333334 y=9.873949579831939 height=0 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=351.50156250000003 width=2.92395833333334 y=5.147058823529408 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=355.67864583333335 width=2.92395833333334 y=4.726890756302518 height=0.31512605042016695 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=359.85572916666666 width=2.92395833333334 y=4.936974789915963 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=364.03281250000003 width=2.92395833333334 y=3.1512605042016832 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=368.20989583333335 width=2.92395833333334 y=5.882352941176477 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=372.38697916666666 width=2.92395833333334 y=10.609243697478995 height=0.10504201680672232 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=376.56406250000003 width=2.92395833333334 y=7.563025210084034 height=0.21008403361344463 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=380.74114583333335 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=384.91822916666666 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=389.09531250000003 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=393.27239583333335 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(122,207,64)></rect><rect x=397.44947916666666 width=2.92395833333334 y=0 height=0 style=opacity:1;fill:rgb(122,207,64)></rect>
[SkinPath]\HtmlRects2NumberedShapes.ini:

Code:

[Variables]Numbers=[1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][22][23][24][25][26][27][28][29][30][31][32][33][34][35][36][37][38][39][40][41][42][43][44][45][46][47][48][49][50][51][52][53][54][55][56][57][58][59][60][61][62][63][64][65][66][67][68][69][70][71][72][73][74][75][76][77][78][79][80][81][82][83][84][85][86][87][88][89][90][91][92][93][94][95][96][97][98][99][100][101][102][103][104][105][106][107][108][109][110][111][112][113][114][115][116][117][118][119][120][121][122][123][124][125][126][127][128][129][130][131][132][133][134][135][136][137][138][139][140][141][142][143][144][145][146][147][148][149][150][151][152][153][154][155][156][157][158][159][160][161][162][163][164][165][166][167][168][169][170][171][172][173][174][175][176][177][178][179][180][181][182][183][184][185][186][187][188][189][190][191][192][193][194][195][196][197][198][199][200][201][202][203][204][205][206][207][208][209][210][211][212][213][214][215][216][217][218][219][220][221][222][223][224][225][226][227][228][229][230][231][232][233][234][235][236][237][238][239][240][241][242][243][244][245][246][247][248][249][250][251][252][253][254][255][256][257][258][259][260][261][262][263][264][265][266][267][268][269][270][271][272][273][274][275][276][277][278][279][280][281][282][283][284][285][286][287][288][289][290][291][292][293][294][295][296][297][298][299][300]SkipCount=0[Rainmeter]Update=-1AccurateText=1DynamicWindowSize=1---Measures---[GetRects]Measure=WebParserURL=file://#CURRENTPATH#Html - All Rects.txtRegExp=(?siU)^(.*)$StringIndex=1UpdateRate=-1RegExpSubstitute=1Substitute="^(.*)$":"0\1","\\\d+":"","(?siU)<rect .*><\/rect>":"+1","^(.*)$":"(\1-1)"FinishAction=[!SetVariable SkipCount [GetRects]][!UpdateMeasure SetShapes][SetShapes][!UpdateMeter Shapes][!Redraw]DynamicVariables=1[SetShapes]Measure=WebParserURL=[GetRects]StringIndex=1UpdateDivider=-1RegExpSubstitute=1Substitute="(?siU) style=(opacity:.*);(fill:.*)>":" style=\2;\1>","(?siU)<rect x=(.*) width=(.*) y=(.*) height=(.*) style=fill:rgb\((.*)\);opacity:(.*)><\/rect>":'[!SetOption Shapes "Shape" "Rectangle \1,\3,\2,\4 | Fill Color \5,255 | Stroke Color 0,255,255,255 | StrokeWidth \6"]','^(.*)$':'\1#Numbers#','(?siU)"Shape"(?=.*(?:\[.*\]){[#SkipCount]}\[(.*)\])':'"Shape\1"','"Shape1"':'"Shape"',"\[1\].*$":""DynamicVariables=1---Meters---[Shapes]Meter=ShapeShape=Rectangle 0,0,100,100 | Fill Color 255,0,255,255 | Stroke Color 0,255,255,255 | StrokeWidth 1UpdateDivider=-1DynamicVariables=1
Preview:
HtmlRects2NumberedShapes.jpg
I used Update=-1 in [Rainmeter] to lower the CPU usage of the skin to perfectly normal levels, feel free to set it to 1000 and see the Rainmeter / overall CPU usage and temperature difference (yep, large strings, images or meters can produce that effect). The Numbers variable only goes until 300 which is enough for the 288 rectangles in this graph, but can go as high as needed, if correspondingly added to it (Notepad++ can do this automatically via ALT+Shift selection and Edit > Column Editor from the menu). If interested, I can explain how it all works, so if you don't understand something, just ask. ;-)

Note: Using an input string this long (like the one in the Html - All Rects.txt file, which is basically the original html section mentioned in the last code part from your reply earlier) is not possible in a String measure, because of the 32767 character limit for option values in Rainmeter (or .ini format?). WebParsers however (whether referencing local files or online sites in their URL option), don't need their output to be specified literally in an option like a String measure needs, so they can be used instead (which is already suited for this project).

Statistics: Posted by Yincognito — Yesterday, 11:02 pm



Viewing all articles
Browse latest Browse all 1584

Trending Articles