It is currently October 25th, 2021, 7:53 am

Windows Shortcuts

Skins to open folders and launch applications and websites
User avatar
Judian81
Posts: 90
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 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 3.png

When pressing on the title opens a folder with all the windows shortcuts. You can copy them from there.

Hope you have fun with the skin.

Windows Shortcuts_v0.7.rmskin
fixed an error message that was comming up in log.
You do not have the required permissions to view the files attached to this post.
Last edited by Judian81 on July 27th, 2021, 4:42 am, edited 5 times in total.
windows 10
User avatar
Judian81
Posts: 90
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: 13344
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: 90
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: 13344
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: 90
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: 13344
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.