It is currently November 28th, 2022, 2:18 pm

EXpandExplore

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

Re: EXpandExplore

Post by Jaime Méndez »

I've optimized and cleaned the code generally and specially in tiles.inc.tamplate. It is running much better now. A bit slow when you find a lot of large images in a folder though.

There is still one last thing to enhance, I don't find a way to have LeftMouseUpAction within an IfMatchAction statement

In tiles.inc.tamplate:

Code: Select all

[MeasureFileSize]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Index=%%
Type=FileSize
IfMatch=^$
;IfMatchAction=[!SetOption MeterTileSelection%% LeftMouseUpAction """[!CommandMeasure *mFilePath%%* """FollowPath"""][!SetVariable Path """[*mPath*]"""][!UpdateMeasure *mPath*][!CommandMeasure """*ScriptFactoryTiles*""" """Run((#*Amount*#-1))"""][!CommandMeasure """*ScriptRefresher*""" """Run()"""][!Refresh]"""]
;IfNotMatchAction=[!SetOption MeterTileSelection%% LeftMouseUpAction """[!CommandMeasure "*mFilePath%%*" """FollowPath"""]"""]

[MeterTileSelection%%]
Meter=Shape
Shape=Rectangle (#TILE_%%_X#+(#Tile_Width#-#Tiles_Selection_Width#)/2),#TILE_%%_Y#,(#Tiles_Selection_Width#),(#Tiles_Text_OY#+[MeterTileText%%:H]-(#FontSize#/1.5)) | Fill Color #Hover_Selection_Color#,(#Hover_Selection_Opacity#*#TILE_%%_SELECTION#*[MeasureTimerCalc:]) | Stroke Color #Hover_Selection_Color#, (#Hover_Selection_Border_Opacity#*#TILE_%%_SELECTION#*[MeasureTimerCalc:])
DynamicVariables=1
Group=SelectionGroup
MouseOverAction=[!SetVariable TILE_%%_SELECTION 1][!UpdateMeter "MeterTileSelection%%"][!Redraw]
MouseLeaveAction=[!SetVariable TILE_%%_SELECTION 0][!UpdateMeter "MeterTileSelection%%"][!Redraw]
MiddleMouseUpAction=["[MeasureFilePath%%]"]
LeftMouseUpAction=[!CommandMeasure mFilePath%% "FollowPath"][!SetVariable Path "[mPath]"][!UpdateMeasure mPath][!CommandMeasure "ScriptFactoryTiles" "Run((#Amount#-1))"][!CommandMeasure "ScriptRefresher" "Run()"][!Refresh]
RightMouseUpAction=[!CommandMeasure mFilePath%% "ContextMenu"]
Group=Main
Note: I finally got rid of the use of Magick.exe program :D

Find the font needed to be installed or be placed in "Fonts" folder in first post
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 14744
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: EXpandExplore

Post by balala »

Jaime Méndez wrote: November 13th, 2022, 2:02 pm I've optimized and cleaned the code generally and specially in tiles.inc.tamplate. It is running much better now. A bit slow when you find a lot of large images in a folder though.

There is still one last thing to enhance, I don't find a way to have LeftMouseUpAction within an IfMatchAction statement

In tiles.inc.tamplate:

Code: Select all

[MeasureFileSize]
Measure=Plugin
Plugin=FileView
Path=[mPath]
Index=%%
Type=FileSize
IfMatch=^$
"IfMatchAction=[!SetOption MeterTileSelection%% LeftMouseUpAction """[!CommandMeasure *mFilePath%%* """FollowPath"""][!SetVariable Path """[*mPath*]"""][!UpdateMeasure *mPath*][!CommandMeasure """*ScriptFactoryTiles*""" """Run((#*Amount*#-1))"""][!CommandMeasure """*ScriptRefresher*""" """Run()"""][!Refresh]"""]
"IfNotMatchAction=[!SetOption MeterTileSelection%% LeftMouseUpAction """[!CommandMeasure "*mFilePath%%*" """FollowPath"""]"""]

[MeterTileSelection%%]
Meter=Shape
Shape=Rectangle (#TILE_%%_X#+(#Tile_Width#-#Tiles_Selection_Width#)/2),#TILE_%%_Y#,(#Tiles_Selection_Width#),(#Tiles_Text_OY#+[MeterTileText%%:H]-(#FontSize#/1.5)) | Fill Color #Hover_Selection_Color#,(#Hover_Selection_Opacity#*#TILE_%%_SELECTION#*[MeasureTimerCalc:]) | Stroke Color #Hover_Selection_Color#, (#Hover_Selection_Border_Opacity#*#TILE_%%_SELECTION#*[MeasureTimerCalc:])
DynamicVariables=1
Group=SelectionGroup
MouseOverAction=[!SetVariable TILE_%%_SELECTION 1][!UpdateMeter "MeterTileSelection%%"][!Redraw]
MouseLeaveAction=[!SetVariable TILE_%%_SELECTION 0][!UpdateMeter "MeterTileSelection%%"][!Redraw]
MiddleMouseUpAction=["[MeasureFilePath%%]"]
LeftMouseUpAction=[!CommandMeasure mFilePath%% "FollowPath"][!SetVariable Path "[mPath]"][!UpdateMeasure mPath][!CommandMeasure "ScriptFactoryTiles" "Run((#Amount#-1))"][!CommandMeasure "ScriptRefresher" "Run()"][!Refresh]
RightMouseUpAction=[!CommandMeasure mFilePath%% "ContextMenu"]
Group=Main
Note: I finally got rid of the use of Magick.exe program :D

Find the font needed to be installed or be placed in "Fonts" folder in first post
I didn't download the posted package, because I know the code is quite complicated. But at least in the posted code I see you're exagerating with using quotes. For instance, using triple quotes in the !SetOption bang to delimitate what has to be set is alright, but you can't use the same triple quotes inside of the value which has to be set by the bang. This means that in the following option, taken from the posted code, the green triple quotes are ok, but the red ones are not and should be replaced by simple quotes: IfMatchAction=[!SetOption MeterTileSelection%% LeftMouseUpAction """[!CommandMeasure *mFilePath%%* """FollowPath"""][!SetVariable Path """[*mPath*]"""][!UpdateMeasure *mPath*][!CommandMeasure """*ScriptFactoryTiles*""" """Run((#*Amount*#-1))"""][!CommandMeasure """*ScriptRefresher*""" """Run()"""][!Refresh]"""].
Also, not sure why have you added the * characters around some measure names (also marked red above).
User avatar
Jaime Méndez
Posts: 87
Joined: August 31st, 2022, 10:00 pm

Re: EXpandExplore

Post by Jaime Méndez »

Ok. Now it is working, but only for the first file or folder icon (second tile in row)

Code: Select all

IfMatch=^$
IfMatchAction=[!SetOption MeterTileSelection%% LeftMouseUpAction """[!CommandMeasure mFilePath%% "FollowPath"][!SetVariable Path "[*mPath*]"][!UpdateMeasure mPath][!CommandMeasure "ScriptFactoryTiles" "Run((#*Amount*#-1))"][!CommandMeasure "ScriptRefresher" "Run()"][!Refresh]"""]
IfNotMatchAction=[!SetOption MeterTileSelection%% LeftMouseUpAction """[!CommandMeasure mFilePath%% "FollowPath"]"""]
"leftmouseupclick" on next tiles does nothing. I have checked "#@#include\tile.inc" file and it has been built ok. I should work

From index 1 to 19, all have been built on file

Code: Select all

IfMatch=^$
IfMatchAction=[!SetOption MeterTileSelection2 LeftMouseUpAction """[!CommandMeasure mFilePath2 "FollowPath"][!SetVariable Path "[*mPath*]"][!UpdateMeasure mPath][!CommandMeasure "ScriptFactoryTiles" "Run((#*Amount*#-1))"][!CommandMeasure "ScriptRefresher" "Run()"][!Refresh]"""]
IfNotMatchAction=[!SetOption MeterTileSelection2 LeftMouseUpAction """[!CommandMeasure mFilePath2 "FollowPath"]"""]
User avatar
Jaime Méndez
Posts: 87
Joined: August 31st, 2022, 10:00 pm

Re: EXpandExplore

Post by Jaime Méndez »

Hello people!

I finally finished with all I wanted to accomplish.

You'll find a new release EXpandExplore 3.0 in firs post

-Number of tiles in EXpandable and Items in its Explorer are fixed up to 20. You can scroll up and down to find more tiles and items with mouse action over the skin
-I Got rid of artifacts and glitches on transitions from expandable to explorer and viceversa
-Many bugs fixed