This is sort of to do with my other thread here http://rainmeter.net/forum/viewtopic.php?f=5&t=6721 but but my question is a lot more specific and should be easy to answer without knowing particularly about Omnimo.
Since asking in that other thread, I sent an email to the authors of Omnimo but haven't got a reply since. So I decided to look into the code and teach myself some of it.
I have succeeded in everything I wanted to do in my last thread except one thing:
To display the download rate (speed) of each torrent.
I just cannot seem to get it to display the right string.
Here is the WebUI. Notice the download and upload have no string. I am not sure what String 9 is but I don't think it relates to my question.
Code: Select all
[SP1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[ITEM1]
StringIndex=6
[SP1C]
Measure=calc
Formula=SP1
Substitute="0.0":"0"
It appears to correspond to this (notice Text= %1B/s) , hence SP=speed.
Code: Select all
[P1]
MeasureName=SP1C
Meter=String
MeterStyle=Style
StringAlign=RIGHT
X=(#Height#/0.54)
Y=(#Height#/5)
W=(#Height#/0.565)
H=(#Height#/10)
FontSize=(ROUND(#Height#/21.429))
FontColor=#textcolor2#,235
ClipString=1
DynamicVariables=1
Text=%1B/s
NumOfDecimals=1
Autoscale=1
Group=1
Hidden=1
But, I copied and pasted
Code: Select all
[SP1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[WebUI]
StringIndex=6
[SP1C]
Measure=calc
Formula=SP1
Substitute="0.0":"0"
Code: Select all
[DWSP1]
MeasureName=SP1C
Meter=String
MeterStyle=Style
StringAlign=RIGHT
X=(#height1#/0.535)
Y=(#height1#/2.3)
W=(#height1#/0.565)
H=(#height1#/10)
FontSize=(ROUND(#height1#/21.429))
FontColor=255,255,255,235
Text="%1B/s"
ClipString=1
DynamicVariables=1
Group=1
NumOfDecimals=1
Autoscale=1
The problem is this leads it to show how much has been downloaded, not the speed.
I used this to my advantage to make this:
Code: Select all
[Amount1]
MeasureName=SP1C
MeasureName2=Size1C
Meter=String
MeterStyle=Style
X=(#height1#/13.636)
Y=(#height1#/2.3)
W=(#height1#/0.565)
H=(#height1#/10)
FontSize=(ROUND(#height1#/21.429))
FontColor=255,255,255,235
Text="#Torrent1Text2#"
ClipString=1
DynamicVariables=1
ToolTipText="ETA [ETA1H]h [ETA1M]m [ETA1S]s"
Group=1
NumOfDecimals=2
Autoscale=1
So, I need to know how to edit SP1C to get it to display speed instead of size. Then when I know what needs to be alternated, I can duplicate SP1C (SP1, SP1C, SP2, SP2C, etc) and edit those so that I still can display it as size (as well).
One other and less important thing I want to say is for some reason, the skin will not display any torrents unless I have at least 2. And if I DO have at least 2, it will only display the first one.
For example:
I add one torrent. Nothing displays.
I add another torrent. The first one displays ONLY, not the second.
I add another torrent. The first and second display, not this one (the third).
But my first question is more important so I would appreciate you focus on that first.
Here is the complete skin code
Code: Select all
[Rainmeter]
MouseOverAction=!execute [!RainmeterShowMeter btn1][!RainmeterShowMeter size][!RainmeterShowMeter About][!RainmeterShowMeter MeterSettings1][!RainmeterShowMeter MeterMenu][!RainmeterShowMeter MeterClose][!RainmeterRedraw]
MouseLeaveAction=!execute [!RainmeterHideMeter btn1][!RainmeterHideMeter size][!RainmeterHideMeter About][!RainmeterHideMeter MeterSettings1][!RainmeterHideMeter MeterMenu][!RainmeterHideMeter MeterClose][!RainmeterRedraw]
MouseActionCursor=0
MiddleMouseUpAction=!RainmeterDeactivateConfig
;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins
[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Author=Xyrfo and fediaFedia
License=
Variant=
Preview=
;End of added Metadata
[Variables]
@include=#SKINSPATH#\WP7\Common\Variables\UserVariables.inc
@include2=#SKINSPATH#\WP7\Panels\uTorrent\UserVariables.inc
@include3=#CURRENTPATH#\size.inc
@include4=#SKINSPATH#\WP7\Common\color\color.inc
REG=(?(?=.*\[\"(.*)\").*,(.*),\"(.*)\",(.*),(.*),(.*),(.*),(.*),.*,.*,(.*),\".*\",(.*),(.*),(.*),(.*),.*,.*,(.*)],).*
Command1=pause
Command2=pause
Command3=pause
Command4=pause
TorrentSeeding2=Completed
TorrentFinished2=Finished
TorrentPaused2=Paused
TorrentDownloading2=Downloaded %1B of %2B
Torrent1Text2=
Torrent2Text2=
Torrent3Text2=
Torrent4Text2=
height1=350
[feedstitle]
Meter=STRING
Antialias=1
Text=