It's not very clear what you want to do here. Can you link the skin you're trying to modify? And explain what modifications you want to bring.Jaime Méndez wrote: ↑September 1st, 2022, 5:07 am Hello, I hope someone can help me. I am trying to get a thumbnail from a photo file instead of its icon, but i couldn't get FileChoose PlugIn to work at all. The original code of "EXpandable" skin uses FileView PlugIn:
It is currently September 16th, 2024, 10:26 am
FileChoose [Ver.1.2.0.1]
-
- Rainmeter Sage
- Posts: 1398
- Joined: April 24th, 2021, 8:13 pm
Re: FileChoose [Ver.1.2.0.1]
from the Realm of Death
-
- Posts: 98
- Joined: August 31st, 2022, 10:00 pm
Re: FileChoose [Ver.1.2.0.1]
Hi, It is an interesting skin code that expands folders in a very intuitive mode. Unfortunately it won't show thumbnails when folder files are photos or videos, it just shows the icon assigned to its type of file. The code uses FileView plugIn.death.crafter wrote: ↑September 1st, 2022, 2:00 pm It's not very clear what you want to do here. Can you link the skin you're trying to modify? And explain what modifications you want to bring.
I would like to translate it so it can run with FileChoose plugin instead so it can show photo files thumbnails and not just its icon whenever I mouseover.
You ca find a demo of the skin here: https://youtu.be/WEQzOHPr5ho
And the skin here: https://github.com/juh9870/EXpandableFolder/releases/tag/1.0.0
Thank you for trying to help!
-
- Rainmeter Sage
- Posts: 1398
- Joined: April 24th, 2021, 8:13 pm
Re: FileChoose [Ver.1.2.0.1]
Ohh I see. But filechoose plugin isn't the right choice here tbh. What you can do is check for file extensions, and use the file itself as image if the extension is jpg, png or some other supported image formatJaime Méndez wrote: ↑September 1st, 2022, 3:23 pm Hi, It is an interesting skin code that expands folders in a very intuitive mode. Unfortunately it won't show thumbnails when folder files are photos or videos, it just shows the icon assigned to its type of file. The code uses FileView plugIn.
I would like to translate it so it can run with FileChoose plugin instead so it can show photo files thumbnails and not just its icon whenever I mouseover.
You ca find a demo of the skin here: https://youtu.be/WEQzOHPr5ho
And the skin here: https://github.com/juh9870/EXpandableFolder/releases/tag/1.0.0
Thank you for trying to help!
from the Realm of Death
-
- Posts: 98
- Joined: August 31st, 2022, 10:00 pm
Re: FileChoose [Ver.1.2.0.1]
How could In do it?death.crafter wrote: ↑September 1st, 2022, 3:42 pm Ohh I see. But filechoose plugin isn't the right choice here tbh. What you can do is check for file extensions, and use the file itself as image if the extension is jpg, png or some other supported image format
Could you give an example how to get an image from a image format file?
The example code that comes with the downloaded FileChoose plugin works great. It shows a thumbnail and read.txt says you can get the icon with any other method than a specific user action like "LeftMouseUpAction" in order to get the file info
"ChooseFile N", "ChooseFolder N", "ChooseImage N"
N is a number. When finished choosing, the option CommandN will be executed.
Examples:
LeftMouseUpAction=[!CommandMeasure MeasureChoose "ChooseFile 1"]
"Resolve N PATH"
N is a number. When finished choosing, the option CommandN will be executed.
PATH is a string of a file's path. Must not contain "".
This bang enable users to send a filepath to the plugin, then reslove the path
as if the path is chosen by "ChooseFile". This means you can get a path with
another method and just use the plugin to resolve it, and get the information.
You do not have the required permissions to view the files attached to this post.
Last edited by Jaime Méndez on September 1st, 2022, 4:02 pm, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 1398
- Joined: April 24th, 2021, 8:13 pm
Re: FileChoose [Ver.1.2.0.1]
I am not really at my PC rn, so it's hard for me to cook an example right away. If you could give me more time, I can make one for you tonight.Jaime Méndez wrote: ↑September 1st, 2022, 3:47 pm How could In do it?
Could you give an example how to get an image from a image format file?
from the Realm of Death
-
- Posts: 98
- Joined: August 31st, 2022, 10:00 pm
Re: FileChoose [Ver.1.2.0.1]
oh! I just edited my past reply, thank you! I definitely wait any time you need for your help.death.crafter wrote: ↑September 1st, 2022, 3:48 pm I am not really at my PC rn, so it's hard for me to cook an example right away. If you could give me more time, I can make one for you tonight.
Thank you
-
- Rainmeter Sage
- Posts: 8146
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: FileChoose [Ver.1.2.0.1]
Here's what you need to do. Open your [SkinFolder]\@Resources\include\tiles.inc.template file in your favorite text editor and:Jaime Méndez wrote: ↑September 1st, 2022, 5:07 am Hello, I hope someone can help me. I am trying to get a thumbnail from a photo file instead of its icon, but i couldn't get FileChoose PlugIn to work at all. The original code of "EXpandable" skin uses FileView PlugIn. [...]
1) comment the OnChangeAction line in the [MeasureFileIcon%%] measure by adding a ; at the start of the line:
Code: Select all
; OnChangeAction=[!SetOption MeterTileIcon%% ImageName [MeasureFileIcon%%]]
Code: Select all
[MeasureFileType%%]
Measure=Plugin
Plugin=FileView
Path=[MeasureFolder]
Index={%%+1}
Type=FileType
IfMatch=(?i)^(?:png|jpg|bmp|gif|tif|webP|ico)$
IfMatchAction=[!SetOption MeterTileIcon%% ImageName "[MeasureFilePath%%]"]
IfNotMatchAction=[!SetOption MeterTileIcon%% ImageName "[MeasureFileIcon%%]"]
IfMatchMode=1
Code: Select all
PreserveAspectRatio=1
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 1398
- Joined: April 24th, 2021, 8:13 pm
Re: FileChoose [Ver.1.2.0.1]
Well, Yinco just did what I had in mind. Thanks Yincognito, for saving me the trouble
from the Realm of Death
-
- Rainmeter Sage
- Posts: 1398
- Joined: April 24th, 2021, 8:13 pm
Re: FileChoose [Ver.1.2.0.1]
That aside, the performance won't be great, because you'd be rendering the very large in size images themselves and not their thumbnails.
from the Realm of Death
-
- Rainmeter Sage
- Posts: 8146
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: FileChoose [Ver.1.2.0.1]
No problem, crafter of all which is script under the Sun - I thought you might appreciate enjoying a beer tonight instead of writing code.death.crafter wrote: ↑September 1st, 2022, 5:26 pm Well, Yinco just did what I had in mind. Thanks Yincognito, for saving me the trouble
Hopefully it will be what the OP had in mind as well.
Yep, noticed that. There would be a proportional delay in displaying several big images in the skin, indeed.death.crafter wrote: ↑September 1st, 2022, 5:29 pm That aside, the performance won't be great, because you'd be rendering the very large in size images themselves and not their thumbnails.
This is unfortunately, unavoidable - Rainmeter needs time to read and scale those images from the drive.