It is currently September 21st, 2019, 4:08 pm

DisplayFusion Command Line Tool

Post your work-in-progress and completed skins to share and discuss.
User avatar
StArL0rd84
Posts: 336
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: DisplayFusion Command Line Tool

StArL0rd84 » March 23rd, 2019, 9:37 am

I am working on a advanced version of this skin which will show the current wallpapers used, and their relative position to each other.
advanced.png
Incredibly i have gotten most of the positional math correct. But still not perfect.
I want to focus on the Y direction first.
So i think i need to know the difference in height between the to images in this example for the next step.

Known values:
Image1 height (57)
Image2 height (102)
The difference (in this case it's 27)

I know the value because i used Photoshop to count the pixels,
but i cannot figure out the formula i should use to arrive at 27.
diff.png
You do not have the required permissions to view the files attached to this post.
(#WorkTime# = 1 ? #Work# : ([mEnergyLoss:%] > 100 ? #SleepMode# : #Rainmeter#))
User avatar
balala
Rainmeter Sage
Posts: 8634
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: DisplayFusion Command Line Tool

balala » March 23rd, 2019, 10:53 am

StArL0rd84 wrote:
March 23rd, 2019, 9:37 am
I know the value because i used Photoshop to count the pixels,
but i cannot figure out the formula i should use to arrive at 27.
For example:

Code: Select all

[MeasureDifference]
Measure=Calc
Formula=( [MeterImage2:H] - [MeterImage1:H] )
DynamicVariables=1
User avatar
StArL0rd84
Posts: 336
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: DisplayFusion Command Line Tool

StArL0rd84 » March 23rd, 2019, 12:07 pm

balala wrote:
March 23rd, 2019, 10:53 am
For example:

Code: Select all

[MeasureDifference]
Measure=Calc
Formula=( [MeterImage2:H] - [MeterImage1:H] )
DynamicVariables=1
That would result in 45 not 27
But i figured out another way. thanks anyway balala
(#WorkTime# = 1 ? #Work# : ([mEnergyLoss:%] > 100 ? #SleepMode# : #Rainmeter#))
User avatar
balala
Rainmeter Sage
Posts: 8634
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: DisplayFusion Command Line Tool

balala » March 23rd, 2019, 12:38 pm

StArL0rd84 wrote:
March 23rd, 2019, 12:07 pm
That would result in 45 not 27
Yep, you're right, my mistake. Sorry.
Try the following Formula: Formula=( [MeterImage1:YH] - [MeterImage2:Y] ).
For this to work you need to have installed at least version 4.3 r3294 of Rainmeter. If you have earlier version, use the following formula: Formula=( [MeterImage1:Y] + [MeterImage1:H] - [MeterImage2:Y] ).
Sorry for my mistake. :Whistle