It is currently September 29th, 2022, 5:26 pm

Using Text= with [MeterUserName]

Get help with creating, editing & fixing problems with skins
User avatar
CodeCode
Posts: 1084
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Using Text= with [MeterUserName]

Post by CodeCode »

balala wrote: September 5th, 2022, 10:39 am Sorry, but I believe it doesn't, because the user name rarely is the same (DEATHSTAR in this case). This is returned by the [MeasureUserName] measure, so it varies from computer to computer. That's why its length varies as well, so aligning it to left and placing it to certain position, is not doing properly the job.
Based on the posted screenshot and code snippets, I assume TildaNiobe works with illustro's Network skin. If I am right, the [MeterUserName1] and [MeterUserName2] meters should look this way:

Code: Select all

[MeterUserName1]
Meter=String
MeterStyle=styleLeftText
X=10
Y=10r
W=190
H=14
Text=Hostname

[MeterUserName2]
Meter=String
MeterStyle=styleRightText
MeasureName=MeasureUserName
X=200
Y=r
Text=%1
This is very true about computer names. Some are a garbled string, to something like "Hannah's Open Source Production Machine".
That means an enduser - other then you of course, mighn't ge great results from stretching the skin to fit the long string of words, to just overlapping ther edges. Justy a pointer - there are several ways to mitigate this.
:great:
If you need help or not please enjoy your new hobby - Rainmeter! :thumbup:
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
balala
Rainmeter Sage
Posts: 14565
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Using Text= with [MeterUserName]

Post by balala »

CodeCode wrote: September 19th, 2022, 11:58 pm Justy a pointer - there are several ways to mitigate this.
Yep, the ClipString for instance.