It is currently March 29th, 2024, 9:50 am

DisplayFusion Command Line Tool

Skins that control functions in Windows or Rainmeter
User avatar
StArL0rd84
Posts: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: DisplayFusion Command Line Tool

Post by StArL0rd84 »

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.
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: DisplayFusion Command Line Tool

Post by balala »

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: 424
Joined: February 8th, 2015, 10:07 pm
Location: EU, Denmark.

Re: DisplayFusion Command Line Tool

Post by StArL0rd84 »

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
([mWorkTime] = 1 ? #Work# : ([mEnergyLoss:%] >= 70% ? #Chillmode# : </>))
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: DisplayFusion Command Line Tool

Post by balala »

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