It is currently April 24th, 2024, 5:16 pm

Open first File in Folder?

Get help with creating, editing & fixing problems with skins
User avatar
balala
Rainmeter Sage
Posts: 16166
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Open first File in Folder?

Post by balala »

milt wrote: October 26th, 2022, 1:33 pm I had to turn-up the font size because of my vision and I now have 10 of the skins so far on my Surface Pro 7. I tried to Hide/Show (See text in Red) But it's not working.
As tass_co already said, whenever are you posting codes, you should include them into <code> tags. This can be done by the </> button in the menu of this forum. If you do this, you can't color parts of codes, as you did with plain text. I added the needed tags, but didn't remove the [color] tags, but as you can see, it is not applied in codes.
However, none of the posted options are not valid in the form you've used them. They all are options which should not be used in the code of your skin, but into the [Skin] section of the Rainmeter.ini. Rainmeter.ini is the file which stores all skins-related settings. It can be accessed by a right-click to the Rainmeter icon in the Notification Area, then a click to Edit settings. You get opening the Rainmeter.ini file into the default text editor. Here you should identify the name of your config. All three options (HideOnMouseOver, FadeDuration and AlphaValue) should be added in the appropriate secztion of this file, with the following mentions:
  • HideOnMouseOver is a deprecated (5th point here) option and has been replaced by OnHover.
  • FadeDuration might be used as a bang as well (but I think this is not what you want).
  • AlphaValue - no comment here.
Besides this, question is what exactly would you want to achieve, because same way as tass_co, me didn't really understood your intention either.
milt
Posts: 13
Joined: October 23rd, 2022, 2:34 am

Re: Open first File in Folder?

Post by milt »

Hello,

What I would like is that the skin/button to be hidden and visible on hover.
Screenshot (2).png

Code: Select all

[Rainmeter]
Update=1000

[Variables]
Path="C:\Users\miltb\OneDrive\Documents\Bible Studies\M&E"

[MeaLuaScript]
Measure=Script
ScriptFile=#@#DeleteFiles.lua

[Meamp3]
Measure=Plugin
Plugin=FileView
Path=#Path#
ShowDotDot=0
ShowFolder=0
SortType=Name
;SortDateType=Created
SortAscending=1
Extensions="mp3;srt"
Count=2
DynamicVariables=1
UpdateDivider=60

[MeaChild1]
Measure=Plugin
Plugin=FileView
Path=[Meamp3]
Type=FilePath
Index=1
DynamicVariables=1
UpdateDivider=60

[MeaChild2]
Measure=Plugin
Plugin=FileView
Path=[Meamp3]
Type=FilePath
Index=2
DynamicVariables=1
UpdateDivider=60

[MeaChild11]
Measure=Plugin
Plugin=FileView
Path=[Meamp3]
Type=FileName
Index=1
DynamicVariables=1
UpdateDivider=60

[MeaChild21]
Measure=Plugin
Plugin=FileView
Path=[Meamp3]
Type=FileName
Index=2
DynamicVariables=1
UpdateDivider=60

[MtrFileNames]
Meter=String
MeasureName=MeaChild11
MeasureName2=MeaChild21
X=0
Y=0
W=300
H=60
StringStyle=Normal
StringAlign=Left
FontSize=15
FontColor=31, 81, 255
ClipString=1
AntiAlias=1
Text=%1#CRLF#%2
DynamicVariables=1

[BtnRefresh]
Meter=String
X=35
Y=40
W=60
H=20

FontColor=31, 81, 255
FontFace=Seqoe UI
FontSize=20
StringAlign=Center
StringStyle=Bold
Text=M&E
MouseOverAction=
LeftMouseUpAction=["[MeaChild1]"]["[MeaChild2]"]
AntiAlias=1

MouseOverAction=[!ShowMeter App1Text][!UpdateMeter "M&E"][!Redraw]
MouseLeaveAction=[!HideMeter App1Text][!UpdateMeter "M&E"][!Redraw]


[BtnDelete]
Meter=String
X=50
Y=70
W=80
H=50

FontColor=255, 0, 0
FontFace=Seqoe UI
FontSize=20
StringAlign=Center
StringStyle=Bold
Text=DELETE!
LeftMouseUpAction=[!CommandMeasure MeaLuaScript "DeleteFiles()"][!Delay 2000]["#@#DeleteFiles.bat"][!Delay 1000][!Refresh]
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
milt
Posts: 13
Joined: October 23rd, 2022, 2:34 am

Re: Open first File in Folder?

Post by milt »

tass_co,

I added the code you provided.

Code: Select all

[Rainmeter]
Update=1000

[Variables]
Path="C:\Users\miltb\OneDrive\Documents\Bible Studies\M&E"

[MeaLuaScript]
Measure=Script
ScriptFile=#@#DeleteFiles.lua

[Meamp3]
Measure=Plugin
Plugin=FileView
Path=#Path#
ShowDotDot=0
ShowFolder=0
SortType=Name
;SortDateType=Created
SortAscending=1
Extensions="mp3;srt"
Count=2
DynamicVariables=1
UpdateDivider=60

[MeaChild1]
Measure=Plugin
Plugin=FileView
Path=[Meamp3]
Type=FilePath
Index=1
DynamicVariables=1
UpdateDivider=60

[MeaChild2]
Measure=Plugin
Plugin=FileView
Path=[Meamp3]
Type=FilePath
Index=2
DynamicVariables=1
UpdateDivider=60

[MeaChild11]
Measure=Plugin
Plugin=FileView
Path=[Meamp3]
Type=FileName
Index=1
DynamicVariables=1
UpdateDivider=60

[MeaChild21]
Measure=Plugin
Plugin=FileView
Path=[Meamp3]
Type=FileName
Index=2
DynamicVariables=1
UpdateDivider=60

[MtrFileNames]
Meter=String
MeasureName=MeaChild11
MeasureName2=MeaChild21
X=0
Y=0
W=300
H=60
StringStyle=Normal
StringAlign=Left
FontSize=15
FontColor=31, 81, 255
ClipString=1
AntiAlias=1
Text=%1#CRLF#%2
DynamicVariables=1
MouseOverAction=[!ShowMeter BtnRefresh][!ShowMeter BtnDelete]




[BtnRefresh]
Meter=String
X=35
Y=40
W=60
H=20

FontColor=31, 81, 255
FontFace=Seqoe UI
FontSize=20
StringAlign=Center
StringStyle=Bold
Text=M&E
MouseOverAction=LeftMouseUpAction=["[MeaChild1]"]["[MeaChild2]"]
AntiAlias=1
LeftMouseUpAction=["[MeaChild1]"]["[MeaChild2]"][!HideMeter BtnRefresh][!HideMeter BtnDelete]
Hidden=1




[BtnDelete]
Meter=String
X=50
Y=70
W=80
H=50

FontColor=255, 0, 0
FontFace=Seqoe UI
FontSize=20
StringAlign=Center
StringStyle=Bold
Text=DELETE!
LeftMouseUpAction=[!CommandMeasure MeaLuaScript "DeleteFiles()"][!Delay 2000]["#@#DeleteFiles.bat"][!Delay 1000][!Refresh]
AntiAlias=1
Hidden=1
MeaChild 1 and 2 are not hidden. And if I hover off a meter it stays visible unless I delete it.
User avatar
tass_co
Posts: 517
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Open first File in Folder?

Post by tass_co »

milt wrote: October 26th, 2022, 8:59 pm tass_co,

I added the code you provided.
MeaChild 1 and 2 are not hidden. And if I hover off a meter it stays visible unless I delete it.
I think I understand what you want to do.
I don't know the code :oops:

(Back to the old code)
Hover over Skin and right click;
. Settings>OnHover>Fade in
. Settings>Transparency>%100

In this way, the skins will be in their current places but will not be visible.
They will appear when you hover over them with the mouse.
I don't know where i going from here, but i promise it won't be boring... :great:
milt
Posts: 13
Joined: October 23rd, 2022, 2:34 am

Re: Open first File in Folder?

Post by milt »

tass_co,

Not sure where to put:
Hover over Skin and right click;
. Settings>OnHover>Fade in
. Settings>Transparency>%100

Also if I right click wont it pop up the small Manage Rainmeter window?
User avatar
tass_co
Posts: 517
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Open first File in Folder?

Post by tass_co »

milt wrote: October 26th, 2022, 10:28 pm tass_co,

Not sure where to put:
Hover over Skin and right click;
. Settings>OnHover>Fade in
. Settings>Transparency>%100

Also if I right click wont it pop up the small Manage Rainmeter window?
GIF 27.10.2022 06-40-21.gif
You do not have the required permissions to view the files attached to this post.
I don't know where i going from here, but i promise it won't be boring... :great:
User avatar
balala
Rainmeter Sage
Posts: 16166
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Open first File in Folder?

Post by balala »

milt wrote: October 26th, 2022, 8:59 pm MeaChild 1 and 2 are not hidden.
[MeaChild1] and [MeaChild2] are measures. Measures have no visual elements, they are not visible and accordingly can't be set hidden or shown.

On the other hand, if tass_co found a solution to your problem, itQs alright. If he didn't, please summarize a little bit what you want to do, because I'm not sure anymore I follow everything. I thinking to something like:
  • I'd like to have the skin not-visible / visible.
  • The X meter(s) should be visible / not-visible.
  • When hovering the mouse over something to get visible the X meter
  • And so on.
milt
Posts: 13
Joined: October 23rd, 2022, 2:34 am

Re: Open first File in Folder?

Post by milt »

tass_co,

Old school works great.

Thank again tass_co and balala
User avatar
tass_co
Posts: 517
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Open first File in Folder?

Post by tass_co »

milt wrote: October 27th, 2022, 10:29 am tass_co,

Old school works great.

Thank again tass_co and balala
Sorry if i didn't help.
balala can help better :thumbup:
I don't know where i going from here, but i promise it won't be boring... :great:
User avatar
balala
Rainmeter Sage
Posts: 16166
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Open first File in Folder?

Post by balala »

tass_co wrote: October 27th, 2022, 1:53 pm Sorry if i didn't help.
balala can help better :thumbup:
I think this time you've been much more helpful than me. But fortunately, this is not a race...