It is currently June 16th, 2021, 10:04 am

Windows Shortcuts

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

Windows Shortcuts

Post by Judian81 »

hello people,

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 8 or more shortcuts it will be scrollable.

rainmeter windows shortcuts.png


version with scrollbar.
you can make the scrollbar invisible.

Code: Select all

vScrollBarHidden=1

rainmeter windows shortcuts 2.png
Windows Shortcuts_v0.5.rmskin
You do not have the required permissions to view the files attached to this post.
Last edited by Judian81 on May 28th, 2021, 2:40 pm, edited 3 times in total.
Judian81
Posts: 8
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
User avatar
balala
Rainmeter Sage
Posts: 12782
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.
Judian81
Posts: 8
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.
User avatar
balala
Rainmeter Sage
Posts: 12782
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]
...
Judian81
Posts: 8
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
User avatar
balala
Rainmeter Sage
Posts: 12782
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: