It is currently November 26th, 2022, 9:53 am

Windows Shortcuts

Skins to open folders and launch applications and websites
User avatar
Judian81
Posts: 169
Joined: May 6th, 2021, 2:57 pm

Windows Shortcuts

Post by Judian81 »

Hey Hello people,

I have made a launcher where you can put windows shortcuts in a folder, then it will be listed in the skin.
If you put 3 shortcuts in the folder and refresh the skin it will automatically be reduced in a smaller or bigger version.
If we have more then 8 shortcuts it will be scrollable.

windows shortcuts.png
Windows Shortcuts_1.rmskin


thinks i still want to maken is having folders in the shortcuts directory.
so fist you get the folder. and below that 2 shortcuts files.
and below that other folder with 5 shortcuts following up in the list.
so we then can make different catagories.
You do not have the required permissions to view the files attached to this post.
Last edited by Judian81 on May 7th, 2022, 1:04 pm, edited 8 times in total.
windows 10
User avatar
Judian81
Posts: 169
Joined: May 6th, 2021, 2:57 pm

Re: Windows Shortcuts

Post by Judian81 »

Can somebody help me out? We can scroll, but if it is going to fast it will go one were it has to stop.

Some of the code is like this:

Code: Select all


[Variables]

;this makes it possible to use shortcuts in the folder the right way.
vPath="#CURRENTPATH#Shortcuts"

;this is used for the scrollbar to work. you do not need to change this.
vScrollIndex=0

[MeasureScrollUp]
Measure=Calc
;this measures if we are at the beginning. if so we want this to stop going on.
Formula=(#vScrollIndex# - 1) >= 0 ? 1 : 0
DynamicVariables=1

[MeterScrollUp]
Meter=Image
ImageName="#CURRENTPATH#Theme\arrow up.png"
X=185
Y=30
W=15
H=16
;when pressed we go up in fileview plugin. the variable vscrollindex is measured. if at the beginning the scrollbar have to stop going upwards.
LeftMouseUpAction=[!CommandMeasure mFolderParent "IndexUp"][!UpdateMeasure mFolderParent][!SetVariable vScrollIndex "(#vScrollIndex#-[&MeasureScrollUp])"][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
DynamicVariables=1
if we do this step for step everything is cool. but if we rush the scrollbar is going to far
windows 10
User avatar
balala
Rainmeter Sage
Posts: 14742
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Windows Shortcuts

Post by balala »

Judian81 wrote: May 17th, 2021, 3:56 pm Can somebody help me out? We can scroll, but if it is going to fast it will go one were it has to stop.
First, congratulation for the skin. It's a big idea to have the skin working with link placed into a folder. It's great and i love it. No need for settings!
However I'm not sure what you mean by the above, because:
WinShort.gif
Detail a little bit please what you mean.
You do not have the required permissions to view the files attached to this post.
User avatar
Judian81
Posts: 169
Joined: May 6th, 2021, 2:57 pm

Re: Windows Shortcuts

Post by Judian81 »

balala wrote: May 17th, 2021, 7:05 pm First, congratulation for the skin. It's a big idea to have the skin working with link placed into a folder. It's great and i love it. No need for settings!
However I'm not sure what you mean by the above, because:
WinShort.gif
Detail a little bit please what you mean.
thank you so much for the compliment.
think you have downloaded the first skin. that one is without a scrollbar. i want to create a scrollbar alsof for projects in the future.
i will show what is going wrong.

rainmeter windows shortcuts scrollbar demo.gif
this is what happens when i scroll to fast. when doing this step by step the scrolling will stop just on time.
You do not have the required permissions to view the files attached to this post.
windows 10
User avatar
balala
Rainmeter Sage
Posts: 14742
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Windows Shortcuts

Post by balala »

Judian81 wrote: May 18th, 2021, 2:54 pm think you have downloaded the first skin. that one is without a scrollbar. i want to create a scrollbar alsof for projects in the future.
i will show what is going wrong.
Right. Didn't even realize there are two different skins. My bad! Now I got the right one.
So the solution to your problem is a small modification of the !SetVariable vScrollIndex ... bangs of the LeftMouseUpAction, MouseScrollUpAction and MouseScrollDownAction options of the [MeterScrollUp], [MeterScrollDown] and [MeterScrollBackground] meters. You have to limit the achievable value of the vScrollIndex variable, for instance through some Clamp function. Something like this:

Code: Select all

[MeterScrollUp]
...
LeftMouseUpAction=[!CommandMeasure mFolderParent "IndexUp"][!UpdateMeasure mFolderParent][!SetVariable vScrollIndex "(Clamp((#vScrollIndex#-[&MeasureScrollUp]),0,([mFileCountParent]-8)))"][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
...

[MeterScrollDown]
...
LeftMouseUpAction=[!CommandMeasure mFolderParent "IndexDown"][!UpdateMeasure mFolderParent][!SetVariable vScrollIndex "(Clamp((#vScrollIndex#+[&MeasureScrollDown]),0,([mFileCountParent]-8)))"][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
...

[MeterScrollBackground]
...
MouseScrollUpAction=[!CommandMeasure mFolderParent "IndexUp"][!UpdateMeasure mFolderParent][!SetVariable vScrollIndex "(Clamp((#vScrollIndex#-[&MeasureScrollUp]),0,([mFileCountParent]-8)))"][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
MouseScrollDownAction=[!CommandMeasure mFolderParent "IndexDown"][!UpdateMeasure mFolderParent][!SetVariable vScrollIndex "(Clamp((#vScrollIndex#+[&MeasureScrollDown]),0,([mFileCountParent]-8)))"][!UpdateMeasureGroup Children][!UpdateMeter *][!Redraw]
...
User avatar
Judian81
Posts: 169
Joined: May 6th, 2021, 2:57 pm

Re: Windows Shortcuts

Post by Judian81 »

balala wrote: May 18th, 2021, 5:43 pm for instance through some Clamp function.
thanks this is working perfect
windows 10
User avatar
balala
Rainmeter Sage
Posts: 14742
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Windows Shortcuts

Post by balala »

Judian81 wrote: May 19th, 2021, 10:44 am thanks this is working perfect
Great! :great:
User avatar
GrinDog
Posts: 1
Joined: October 12th, 2021, 9:47 am

Re: Windows Shortcuts

Post by GrinDog »

Hi, am a new user of rainmeter, and your job.

Only I found that some icons do not load well.
https://imgur.com/nGMowPN
May be also if we can rearranged, "drag" icon
inside the skin or in edit skin.

BTW, I am not good at all in coding :)
just asking.
User avatar
Judian81
Posts: 169
Joined: May 6th, 2021, 2:57 pm

Re: Windows Shortcuts

Post by Judian81 »

GrinDog wrote: October 12th, 2021, 12:06 pm Only I found that some icons do not load well.
hello, sorry for my later response.

i found myself too that sometimes the icons are not always display they way they should normaly in windows.
sometimes there are very small or not displaying at all.

there is nothing i can do to change that. i use the fileplugin and that is the way it works.

GrinDog wrote: October 12th, 2021, 12:06 pm May be also if we can rearranged, "drag" icon
inside the skin or in edit skin.
hmm yes it is possible to add custom pictures to map. and use them to be displayed. you do not even have to use ico files.
it could be any file like png and jpg.

going to think about this.
windows 10
User avatar
Judian81
Posts: 169
Joined: May 6th, 2021, 2:57 pm

Re: Windows Shortcuts

Post by Judian81 »

balala wrote: May 19th, 2021, 12:53 pmGreat! :great:
i have a question about something. i have made use of the fileview plugin.
i hide the extensions and make a list of shortcuts. and when i click on any icon it will open a lnk file.
but the url file to some website it just does nothing.

so i created a duplicate so it will open url file or any other files. is this normal?! because i find it strange. when i have a hidden extention it will open lnk files automaticly.
windows 10