Code: Select all
[Rainmeter]
Update=-1
[ReWall]
Meter=Image
ImageName=1.png
W=1920
H=1080
Tile=0
PreserveAspectRatio=0
LoadOrder=-1
Code: Select all
[Rainmeter]
Update=-1
[ReWall]
Meter=Image
ImageName=1.png
W=1920
H=1080
Tile=0
PreserveAspectRatio=0
LoadOrder=-1
For your case (see the monitor built in variables in Rainmeter):yukikawamomo wrote: ↑March 16th, 2023, 12:28 pm HI, i don't know a lot about code so i need help. I make .ini for layer and it worked but i using laptop and i set my scale is 125% so it make my layer become bigger i want it match with my scale how to do that. This is my codeCode: Select all
[Rainmeter] Update=-1 [ReWall] Meter=Image ImageName=1.png W=1920 H=1080 Tile=0 PreserveAspectRatio=0 LoadOrder=-1
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[ReWall]
Meter=Image
ImageName=1.png
X=#SCREENAREAX#
Y=#SCREENAREAY#
W=#SCREENAREAWIDTH#
H=#SCREENAREAHEIGHT#
Tile=0
PreserveAspectRatio=0
LoadOrder=-1
DynamicVariables=1
Code: Select all
[Variables]
Monitor=BOE094A0_11_07E4_61^13B12C29BB6619B6E6B383B11D52D2EC
Scaling=100
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
---Measures---
[AppliedDPI]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Control Panel\Desktop\WindowMetrics
RegValue=AppliedDPI
IfCondition=(AppliedDPI=96)
IfTrueAction=[!SetVariable Scaling 100][!UpdateMeter *][!Redraw]
[DPIValue]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Control Panel\Desktop\PerMonitorSettings\#Monitor#
RegValue=DpiValue
IfCondition=(DPIValue=4294967295)
IfTrueAction=[!SetVariable Scaling 100][!UpdateMeter *][!Redraw]
IfCondition=(DPIValue=0)
IfTrueAction=[!SetVariable Scaling 125][!UpdateMeter *][!Redraw]
IfCondition=(DPIValue=1)
IfTrueAction=[!SetVariable Scaling 150][!UpdateMeter *][!Redraw]
IfCondition=(DPIValue=2)
IfTrueAction=[!SetVariable Scaling 175][!UpdateMeter *][!Redraw]
---Meters---
[SomeImage]
Meter=Image
ImageName=#@#SomeImage.jpg
X=#SCREENAREAX#
Y=#SCREENAREAY#
W=#SCREENAREAWIDTH#
H=#SCREENAREAHEIGHT#
Tile=0
PreserveAspectRatio=0
LoadOrder=-1
DynamicVariables=1
[DPIData]
Meter=String
X=(#SCREENAREAX#+#SCREENAREAWIDTH#/2)
Y=(#SCREENAREAY#+#SCREENAREAHEIGHT#/2)
FontFace=Tahoma
FontSize=16
FontColor=255,255,255,255
FontWeight=700
StringAlign=CenterCenter
AntiAlias=1
MeasureName=AppliedDPI
MeasureName2=DPIValue
Text=AppliedDPI = %1#CRLF#DPIValue = %2#CRLF#Scaling = #Scaling#
DynamicVariables=1