It is currently December 6th, 2022, 2:06 pm

!SetOption Not working

Get help with creating, editing & fixing problems with skins
User avatar
Jaime Méndez
Posts: 91
Joined: August 31st, 2022, 10:00 pm

!SetOption Not working

Post by Jaime Méndez »

Hello.

I can't get [MeterTileTextFolder] to work with each "MeasureName" but if I write them manually to see if skin is working, it goes ok

Code: Select all

[MeasurePathFolderNameX]
Measure=String
String=#EPath#
RegExpSubstitute=1
Substitute="^.*\\(.*)$":"\1"
;DynamicVariables=1

[MeasurePathFolderNameR]
Measure=String
String=[mIndex0NName]
;DynamicVariables=1

[CheckFolderName]
Measure=Calc
IfCondition=(#CheckName# = 1)
IfTrueAction=!SetOption "MeterTileTextFolder" "MeasureName" "MeasurePathFolderNameX"
IfCondition2=(#CheckName# = 0)
IfTrueAction2=!SetOption "MeterTileTextFolder" "MeasureName" "MeasurePathFolderNameR"

[MeterTileTextFolder]
Meter=String
Text=%1
X=(#TILE_F_X_O#+#Tiles_Text_OX#+5)
Y=(#TILE_F_Y_O#+#Tiles_Text_OY#)
ClipStringW=#Tiles_Text_Width#
ClipStringH=#Tiles_Text_Height#
FontColor=255,255,255,255
StringAlign=CenterTop
ClipString=2
FontSize=9.5
AntiAlias=0
; FontFace=Segoe UI
StringEffect=Shadow
FontEffectColor=0,0,0,255
; UpdateDivider=-1
Group=Main
User avatar
tass_co
Posts: 429
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: !SetOption Not working

Post by tass_co »

Jaime Méndez wrote: September 28th, 2022, 3:50 pm Hello.

I can't get [MeterTileTextFolder] to work with each "MeasureName" but if I write them manually to see if skin is working, it goes ok
Can you try this code?
(ps: You don't have all of your code but...)

Code: Select all

[MeasurePathFolderNameX]
Measure=String
String=#EPath#
RegExpSubstitute=1
Substitute="^.*\\(.*)$":"\1"
;DynamicVariables=1

[MeasurePathFolderNameR]
Measure=String
String=[mIndex0NName]
;DynamicVariables=1

[CheckFolderName]
Measure=Calc
Formula=#CheckName#
IfCondition= CheckFolderName = 1
IfTrueAction=[!SetOption MeterTileTextFolder MeasureName "MeasurePathFolderNameX"]
IfCondition2= CheckFolderName = 0
IfTrueAction2=[!SetOption MeterTileTextFolder MeasureName "MeasurePathFolderNameR"]
IfConditionMode=1

[MeterTileTextFolder]
Measure=String
MeasureName=MeasurePathFolderNameX ; or MeasurePathFolderNameR
X=(#TILE_F_X_O#+#Tiles_Text_OX#+5)
Y=(#TILE_F_Y_O#+#Tiles_Text_OY#)
ClipStringW=#Tiles_Text_Width#
ClipStringH=#Tiles_Text_Height#
FontColor=255,255,255,255
StringAlign=CenterTop
ClipString=2
FontSize=9.5
AntiAlias=0
; FontFace=Segoe UI
StringEffect=Shadow
FontEffectColor=0,0,0,255
; UpdateDivider=-1
Group=Main
DynamicVariables=1
I don't know where i going from here, but i promise it won't be boring... :great:
User avatar
Jaime Méndez
Posts: 91
Joined: August 31st, 2022, 10:00 pm

Re: !SetOption Not working

Post by Jaime Méndez »

It doesn't substitute "Mesurename" still with your changes :(
User avatar
tass_co
Posts: 429
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: !SetOption Not working

Post by tass_co »

Jaime Méndez wrote: September 28th, 2022, 4:34 pm It doesn't substitute "Mesurename" still with your changes :(
So try like this

Code: Select all

[MeasurePathFolderNameX]
Measure=String
String=#EPath#
RegExpSubstitute=1
Substitute="^.*\\(.*)$":"\1"
;DynamicVariables=1

[MeasurePathFolderNameR]
Measure=String
String=[mIndex0NName]
;DynamicVariables=1

[CheckFolderName]
Measure=Calc
Formula=#CheckName#
IfCondition= CheckFolderName = 1
IfTrueAction=[!SetOption MeterTileTextFolder Text "[MeasurePathFolderNameX]"]
IfCondition2= CheckFolderName = 0
IfTrueAction2=[!SetOption MeterTileTextFolder Text "[MeasurePathFolderNameR]"]

[MeterTileTextFolder]
Meter=String
Text=
X=(#TILE_F_X_O#+#Tiles_Text_OX#+5)
Y=(#TILE_F_Y_O#+#Tiles_Text_OY#)
ClipStringW=#Tiles_Text_Width#
ClipStringH=#Tiles_Text_Height#
FontColor=255,255,255,255
StringAlign=CenterTop
ClipString=2
FontSize=9.5
AntiAlias=0
; FontFace=Segoe UI
StringEffect=Shadow
FontEffectColor=0,0,0,255
; UpdateDivider=-1
Group=Main
DynamicVariables=1


I don't know where i going from here, but i promise it won't be boring... :great:
User avatar
Jaime Méndez
Posts: 91
Joined: August 31st, 2022, 10:00 pm

Re: !SetOption Not working

Post by Jaime Méndez »

It doesn't want to work :???:

It only goes ok like this:

Code: Select all

[MeterTileTextFolder]
Meter=String
MeasureName=MeasurePathFolderNameX
Text=%1
or

Code: Select all

[MeterTileTextFolder]
Meter=String
MeasureName=MeasurePathFolderNameR
Text=%1

Is there a condition in a code that prevents !SetOption to work at all? Other parts of my code work ok with this !Bang
Last edited by balala on September 28th, 2022, 5:19 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting codes. It's the </> button.
User avatar
balala
Rainmeter Sage
Posts: 14766
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: !SetOption Not working

Post by balala »

Jaime Méndez wrote: September 28th, 2022, 5:01 pm Is there a condition in a code that prevents !SetOption to work at all? Other parts of my code work ok with this !Bang
No, there is nothing. What am I not sure about is how are set the values for the CheckName variable. If these values are set with !SetVariable bangs, you have to add a DynamicVariables=1 option to the [CheckFolderName] measure, which uses the dynamically set variable. Try adding it and let me know if you get it working. If you don't, please post the whole code of your skin.
User avatar
Jaime Méndez
Posts: 91
Joined: August 31st, 2022, 10:00 pm

Re: !SetOption Not working

Post by Jaime Méndez »

#CheckName# is a global variable (!WriteVariable) and it is defined ok. tasted!
User avatar
balala
Rainmeter Sage
Posts: 14766
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: !SetOption Not working

Post by balala »

Jaime Méndez wrote: September 28th, 2022, 5:33 pm #CheckName# is a global variable (!WriteVariable) and it is defined ok. tasted!
A !WriteVariable bang doesn't exist. Not sure what you mean by tasted, however as asked, post please the whole code.
User avatar
Jaime Méndez
Posts: 91
Joined: August 31st, 2022, 10:00 pm

Re: !SetOption Not working

Post by Jaime Méndez »

Ah! "!WriteKeyValue" sorry

The part of the code with the problem begins in line 156 of EXpandable.ini file
You do not have the required permissions to view the files attached to this post.
User avatar
Jaime Méndez
Posts: 91
Joined: August 31st, 2022, 10:00 pm

Re: !SetOption Not working

Post by Jaime Méndez »

It consists in two parts, one expandable folder you can navigate with through middle mouse button and execute action with left mouse button. The other part is an explorer that you can hide or show with a click in the little box in the upper right corner. The expandable folder supports drag and drop actions of files outside the skin and thumbnail pictures icons. It needs several plugins like DragDrop.dll and ImageMagick program.