It is currently April 12th, 2021, 2:39 am

help with inline options

Help with creating, editing & fixing problems with skins
User avatar
xenium
Posts: 608
Joined: January 4th, 2018, 9:52 pm

help with inline options

Post by xenium »

I have problems using Inlinesetting :

Code: Select all

[MeterTEXT]
Meter=String
MeasureName=MeasureName
MeasureName2=MeasureToday
MeasureName3=MeasureUpdate
MeasureName4=MeasureConditions
MeasureName5=MeasureTemp
MeasureName6=MeasureFeelsLike
MeasureName7=MeasureBarometer
MeasureName8=MeasureHumidity
MeasureName9=MeasureWindSpeed
MeasureName10=MeasureWindDirection
MeasureName11=MeasureVisibility
MeasureName12=MeasureDAY1
MeasureName13=MeasureCondition1
MeasureName14=MeasureTMAX1
MeasureName15=MeasureTMIN1
x=5
Y=10
FontColor=255,255,255,255
FontSize=8
FontFace=century gothic
StringStyle=Bold
StringAlign=left
StringEffect=SHADOW
FontEffectColor=0,0,0,50
AntiAlias=1
Text=%1 ,     %2 :     Update:  %3 ,     %4 ,     %5° ,     Feels Like: %6° ,    Pressure: %7 ,    Humidity: %8 ,     Wind: %9  %10 ,    Visibility: %11 ,     %12 :     %13 ,     Tmax: %14° ,     Tmin: %15°
InlineSetting=Size | 12              
InlinePattern=[MeasureName]
InlineSetting2=Color | 255,255,255,150             
InlinePattern2=[MeasureName]
InlineSetting3=Size | 14              
InlinePattern3=[MeasureToday]
DynamicVariables=1
I would like to use Size and Color for MeasureTemp, MeasureConditions, MeasureCondition1, MeasureTmax1, MeasureTmin1 but it does not work, or increase the font to almost all measures,or almost all measures are colored. :???:
Last edited by xenium on September 25th, 2018, 8:05 am, edited 1 time in total.
User avatar
FreeRaider
Posts: 804
Joined: November 20th, 2012, 11:58 pm

Re: help with inline options

Post by FreeRaider »

User avatar
xenium
Posts: 608
Joined: January 4th, 2018, 9:52 pm

Re: help with inline options

Post by xenium »

I managed to make it work at 99%.
The only one I have not managed to make it work is the last measure, 15.
I can not increase the font.(Tmin: %15°)

Code: Select all

[MeterTEXT]
Meter=String
MeasureName=MeasureName
MeasureName2=MeasureToday
MeasureName3=MeasureUpdate
MeasureName4=MeasureConditions
MeasureName5=MeasureTemp
MeasureName6=MeasureFeelsLike
MeasureName7=MeasureBarometer
MeasureName8=MeasureHumidity
MeasureName9=MeasureWindSpeed
MeasureName10=MeasureWindDirection
MeasureName11=MeasureVisibility
MeasureName12=MeasureDAY1
MeasureName13=MeasureCondition1
MeasureName14=MeasureTMAX1
MeasureName15=MeasureTMIN1
x=5
Y=10
FontColor=255,255,255,255
FontSize=8
FontFace=century gothic
StringStyle=Bold
StringAlign=left
StringEffect=SHADOW
FontEffectColor=0,0,0,50
AntiAlias=1
Text=%1 ,     %2 :     Update:  %3 ,     %4 ,     %5° ,     Feels Like: %6° ,    Pressure: %7 ,    Humidity: %8 ,     Wind: %9  %10 ,    Visibility: %11 ,     %12 :     %13 ,     Tmax: %14° ,     Tmin: %15°
InlineSetting=Size | 12              
InlinePattern=[MeasureName]
InlineSetting2=Color | 255,255,255,150             
InlinePattern2=[MeasureName]
InlineSetting3=Size | 14              
InlinePattern3=[MeasureToday]
InlineSetting4=Size | 14
InlinePattern4=(?U)^.*,.*:.*,(.*),.*
InlineSetting5=Size | 16
InlinePattern5=(?U)^.*,.*:.*,.*,(.*),.*
InlineSetting6=Color | 255,255,0
InlinePattern6=(?U)^.*,.*:.*,.*,(.*),.*
InlineSetting7=Size | 14 
InlinePattern7=(?U)^.*,.*:.*,.*,.*,.*,.*,.*,.*,.*,(.*):(.*),.*:(.*),.*:(.*)
DynamicVariables=1
User avatar
balala
Rainmeter Sage
Posts: 12543
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: help with inline options

Post by balala »

xenium wrote:The only one I have not managed to make it work is the last measure, 15.
I can not increase the font.(Tmin: %15°)
Just add a $ character to the end of the InlinePattern7 expression: InlinePattern7=(?U)^.*,.*:.*,.*,.*,.*,.*,.*,.*,.*,(.*):(.*),.*:(.*),.*:(.*)[color=#FF0000]$[/color].
User avatar
xenium
Posts: 608
Joined: January 4th, 2018, 9:52 pm

Re: help with inline options

Post by xenium »

balala wrote:Just add a $ character to the end of the InlinePattern7 expression: InlinePattern7=(?U)^.*,.*:.*,.*,.*,.*,.*,.*,.*,.*,(.*):(.*),.*:(.*),.*:(.*)[color=#FF0000]$[/color].
:17drums
Thank you very much !
User avatar
balala
Rainmeter Sage
Posts: 12543
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: help with inline options

Post by balala »

Glad to help. :thumbup:
User avatar
xenium
Posts: 608
Joined: January 4th, 2018, 9:52 pm

Re: help with inline options

Post by xenium »

I was glad, too early. :D

When the text returned by Measures changes, the chosen options are not retained.
I noticed that when the returned text of the measure contains an extra comma, the chosen options are not retained.
I tried to add measures to inlinepattern but it still does not work (measureconditions, measuretemp, measure condition1). :17angry

Edited:

I tried to use, only Inlinepattern = [Measure].
It only works, Size and Color for [MeasureName], Size and Underline for [MeasureToday] and[MeasureDay1], Oblique for [MeasureCondition1].
Does not work Size and Color for [MeasureTemp]
It does not work Italic or Oblique for [MeasureConditions] (perhaps because the measure contains RegExpSubstitute = 1 and Substitute = "\ t": "", "# CRLF #":"" ? )
User avatar
FreeRaider
Posts: 804
Joined: November 20th, 2012, 11:58 pm

Re: help with inline options

Post by FreeRaider »

Perhaps if you post all your code, we can help you.
User avatar
xenium
Posts: 608
Joined: January 4th, 2018, 9:52 pm

Re: help with inline options

Post by xenium »

FreeRaider wrote:Perhaps if you post all your code, we can help you.
This is the code.
As mentioned above, [MeasureTemp] and [MeasureConditions] do not work with InlinePattern :-(

Code: Select all

[MeterTEXT]
Meter=String
MeasureName=MeasureName
MeasureName2=MeasureToday
MeasureName3=MeasureConditions
MeasureName4=MeasureTemp
MeasureName5=MeasureFeelsLike
MeasureName6=MeasureBarometer
MeasureName7=MeasureHumidity
MeasureName8=MeasureWindSpeed
MeasureName9=MeasureWindDirection
MeasureName10=MeasureVisibility
MeasureName11=MeasureDAY1
MeasureName12=MeasureCondition1
MeasureName13=MeasureTMAX1
MeasureName14=MeasureTMIN1
MeasureName15=MeasureUpdate
x=5
Y=10
w=1600
FontColor=255,255,255,255
FontSize=8
FontFace=arial
StringStyle=Bold
StringAlign=left
StringEffect=SHADOW
FontEffectColor=0,0,0,50
AntiAlias=1
Text=%1  |    %2 :  %3 ,   %4° ,  Feels Like: %5° ,  Pressure: %6 ,  Humidity: %7 ,  Wind: %8  %9 ,  Visibility: %10 ,  %11 :   %12 ,   ↑ %13° ,   ↓ %14°  ( Update:  %15 )
InlineSetting=Underline
InlinePattern=[MeasureToday]
InlineSetting2=Underline
InlinePattern2=[MeasureDAY1]
InlineSetting3=Color | 255,255,0  
InlinePattern3=[MeasureName]
InlineSetting4=Size | 10              
InlinePattern4=[MeasureName]
InlineSetting5=Size | 10              
InlinePattern5=[MeasureToday]
InlineSetting6=Size | 10              
InlinePattern6=[MeasureDAY1]
InlineSetting7=Oblique              
InlinePattern7=[MeasureCondition1]
DynamicVariables=1
Last edited by xenium on September 28th, 2018, 5:47 am, edited 1 time in total.
User avatar
FreeRaider
Posts: 804
Joined: November 20th, 2012, 11:58 pm

Re: help with inline options

Post by FreeRaider »

Code: Select all

InlineSetting=Underline
InlinePattern=[MeasureToday]
InlineSetting2=Underline
InlinePattern2=[MeasureDAY1]
InlineSetting3=Color | 255,255,0
InlinePattern3=[MeasureName]
InlineSetting4=Size | 10
InlinePattern4=[MeasureName]
InlineSetting5=Size | 10
InlinePattern5=[MeasureToday]
InlineSetting6=Size | 10
InlinePattern6=[MeasureDAY1]
; InlinePattern7 is for [MeasureConditions]
InlineSetting7=Italic
InlinePattern7=^.*\s:\s{1,}(.*)\,.*,.*Feels Like.*
; InlinePattern8 and 9 are for MeasureTemp 
InlineSetting8=Color | 255,0,0
InlinePattern8=^.*\,\s+(.*).*\,.*Feels Like:.*
InlineSetting9=Size | 14
InlinePattern9=^.*\,\s+(.*).*\,.*Feels Like:.*
DynamicVariables=1