It is currently March 28th, 2024, 1:56 pm

EXpandExplore

Skins to open folders and launch applications and websites
User avatar
Jaime Méndez
Posts: 98
Joined: August 31st, 2022, 10:00 pm

Re: EXpandExplore

Post by Jaime Méndez »

Hi!

You'll find new update ver 1.16 in first post

-A bug fixed related to file and folder count error. Some times it didn't show all files in Expandable folder
-Now skin shows real Windows 10 icons in main folder
User avatar
Jaime Méndez
Posts: 98
Joined: August 31st, 2022, 10:00 pm

Re: EXpandExplore

Post by Jaime Méndez »

Sorry!!!
I didn´t upload the correct version in last post, so if you just downloaded it you´ll have to download it again to make sure you have the correct last version 1.16
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: EXpandExplore

Post by balala »

Jaime Méndez wrote: November 2nd, 2022, 7:09 pm Sorry!!!
I didn´t upload the correct version in last post, so if you just downloaded it you´ll have to download it again to make sure you have the correct last version 1.16
Your two posts seem to coincide. I don't see a difference between the two files.
User avatar
Jaime Méndez
Posts: 98
Joined: August 31st, 2022, 10:00 pm

Re: EXpandExplore

Post by Jaime Méndez »

balala wrote: November 2nd, 2022, 8:42 pm Your two posts seem to coincide. I don't see a difference between the two files.
I had to add a Measure in EXpandable.inc

Code: Select all

[MeasureTotalCount]
Measure=Calc
Formula=(MeasureFoldersCount + MeasureFileCount)
OnChangeAction=[!CommandMeasure "ScriptFactoryTiles" "Run((#Amount#-1))"][!Delay 0][!CommandMeasure "ScriptRefresher" "Run()"][!SetOption MeterHitbox Hidden 0]
User avatar
Jaime Méndez
Posts: 98
Joined: August 31st, 2022, 10:00 pm

Re: EXpandExplore

Post by Jaime Méndez »

I would like to limit the number of ScriptFactoryTiles iterations to 100

Expandable.inc:

Code: Select all

[MeasureFoldersCount]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FolderCount
OnChangeAction=[!CommandMeasure "ScriptFactoryTiles" "Run((#Amount#-1))"][!Delay 0][!CommandMeasure "ScriptRefresher" "Run()"][!SetOption MeterHitbox Hidden 0]

[MeasureFileCount]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Type=FileCount
OnChangeAction=[!CommandMeasure "ScriptFactoryTiles" "Run((#Amount#-1))"][!Delay 0][!CommandMeasure "ScriptRefresher" "Run()"][!SetOption MeterHitbox Hidden 0]

[MeasureTotalCount]
Measure=Calc
Formula=(MeasureFoldersCount + MeasureFileCount)

[MeasureLimitIterations]
Measure=Calc
IfCondition=(MeasureTotalCount >= 20)
IfTrueAction=[!SetOption MeasureLimitIterations Formula "20"]
IfFalseAction=[!SetOption MeasureLimitIterations Formula "MeasureTotalCount"]
OnChangeAction=[!CommandMeasure "ScriptFactoryTiles" "Run((#Amount#-1))"][!Delay 0][!CommandMeasure "ScriptRefresher" "Run()"][!SetOption MeterHitbox Hidden 0]
ExpandVariables.inc:

Code: Select all

[Variables]
;Amount=([MeasureFileCount:]+[MeasureFoldersCount:]+1)
Amount=([MeasureLimitIterations:]+1)
I tried this but didn't work. I set limitation up to 20 to easily see the results
How would you do it?
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: EXpandExplore

Post by balala »

Instead of setting the Formula option of the [MeasureLimitIterations] measure through the !SetOption bangs of the IfTrueAction and IfFalseAction options of the measure itself, I probably better would directly add the following foumla to the [MeasureLimitIterations] measure: Formula=( Clamp ( MeasureTotalCount, 0, 20 )). If you do this, you can remove the IfCondition (and the appropriate IfTrueAction and IfFalseAction) option of the [MeasureLimitIterations] measure.
User avatar
Jaime Méndez
Posts: 98
Joined: August 31st, 2022, 10:00 pm

Re: EXpandExplore

Post by Jaime Méndez »

It worked, thank you :thumbup:
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: EXpandExplore

Post by balala »

Jaime Méndez wrote: November 3rd, 2022, 6:35 pm It worked, thank you :thumbup:
:thumbup:
User avatar
Jaime Méndez
Posts: 98
Joined: August 31st, 2022, 10:00 pm

Re: EXpandExplore

Post by Jaime Méndez »

Ok, now it is possible to limit number of files to show. You'll find an option to enter a number of files to be shown in "EX" button.

There is a problem though. I had to set a [!Delay 5000] to deactivate config in "OnUnFocusAction" of [Rainmeter] and other [!Delay 5000] in "LeftMouseUpAction" of [FileLimit] measure

Menus\Expand.ini:

Code: Select all

[Rainmeter]
Update=100
AccurateText=1
Group=FileExplorer

@include=#@#\Includes\Variables.inc
@include2=#@#\Includes\Menu.inc

OnUnFocusAction=[!Refresh "EXpandExplore"][!Delay 5000][!DeactivateConfig]
;----------------------------------------------------
; Meters
;----------------------------------------------------

[Background]
Meter=Image
MeterStyle=BackgroundStyle
H=(12 * (#FontSize# ))

[EName]
Meter=String
MeterStyle=TextStyle | MenuStyle
Y=5
Text=Choose aspect ratio
ToolTipText="How much does it expand horizontally?"

[ENum0]
Meter=Image
MeterStyle=ButtonStyle

[EName0]
Meter=String
MeterStyle=TextStyle | MenuStyle
Y=(#FontSize# * 2)
W=50
Text= 0
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor #HighlightColor#,150][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor ""][!Redraw]
LeftMouseUpAction=[!WriteKeyValue Variables Expander 0 "#@#ExpandVariables.inc"][!DeactivateConfig]

[ENum1]
Meter=Image
MeterStyle=ButtonStyle

[EName1]
Meter=String
MeterStyle=TextStyle | MenuStyle
W=50
Text= 1
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor #HighlightColor#,150][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor ""][!Redraw]
LeftMouseUpAction=[!WriteKeyValue Variables Expander 1 "#@#ExpandVariables.inc"][!DeactivateConfig]

[ENum2]
Meter=Image
MeterStyle=ButtonStyle

[EName2]
Meter=String
MeterStyle=TextStyle | MenuStyle
W=50
Text= 2
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor #HighlightColor#,150][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor ""][!Redraw]
LeftMouseUpAction=[!WriteKeyValue Variables Expander 2 "#@#ExpandVariables.inc"][!DeactivateConfig]

[ENum3]
Meter=Image
MeterStyle=ButtonStyle

[EName3]
Meter=String
MeterStyle=TextStyle | MenuStyle
W=50
Text= 3
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor #HighlightColor#,150][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor ""][!Redraw]
LeftMouseUpAction=[!WriteKeyValue Variables Expander 3 "#@#ExpandVariables.inc"][!DeactivateConfig]

[FileLimit]
Meter=String
MeterStyle=TextStyle
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor #HighlightColor#,150][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor ""][!Redraw]
X=5
Y=(#FontSize#*8)
Text="Files to show?"
ToolTipText="Enter number of files to show."
ToolTipWidth=200
LeftMouseUpAction=[!CommandMeasure "MeasureFileLimit" "ExecuteBatch 1"][!Delay 5000][!DeactivateConfig]

[MeasureFileLimit]
Measure=PLUGIN
Plugin=InputText
FontColor=#FontColor#
StringEffect=Border
FontEffectColor=#FontOutline#
FontSize=#FontSize#
FontFace=#FontFace#
AntiAlias=1
DynamicVariables=1
X=5
Y=(#FontSize#*9.5)
W=50
H=(#FontSize#*1.5)
AntiAlias=1
UpdateDivider=-1
Command1=[!WriteKeyValue Variables ExLimit """$UserInput$""" "#@#ExpandVariables.inc"]
FocusDismiss=1
DefaultValue=59
How could you fix this?
Attachments
EXpandExplore_1.17b.rmskin
(1.9 MiB) Downloaded 95 times
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: EXpandExplore

Post by balala »

Jaime Méndez wrote: November 3rd, 2022, 10:17 pm There is a problem though. I had to set a [!Delay 5000] to deactivate config in "OnUnFocusAction" of [Rainmeter] and other [!Delay 5000] in "LeftMouseUpAction" of [FileLimit] measure
Jaime Méndez wrote: November 3rd, 2022, 10:17 pm How could you fix this?
I don't follow. What has to be fixed? What would you like to achieve?
Post Reply