It is currently March 28th, 2024, 5:53 pm

Help Skin + Notepad input

Get help with creating, editing & fixing problems with skins
Post Reply
User avatar
Skyayashane
Posts: 7
Joined: August 2nd, 2017, 12:22 pm

Help Skin + Notepad input

Post by Skyayashane »

Hi, to all some can anyone help me i'm creating a skin which i can re roll or input to back the current password in notepad.inc
went I unload the skin.

Notepad.inc
[Variables]
Unlock=1 - default

when i load a skin and a user enter new password to unlock ex: 1123

Notepad.inc
[Variables]
Unlock=1123 - New Input

then when is correct i will go back to previous default unlock 1.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help Skin + Notepad input

Post by jsmorley »

Skin:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
OnCloseAction=[!WriteKeyValue Variables Password "Default" "#CURRENTPATH#Test.inc"]

[Variables]
@Include=#CURRENTPATH#Test.inc

[MeterBack]
Meter=Shape
Shape=Rectangle 0.75, 0.75, 202, 24 | StrokeWidth 1.5 | Stroke Color 150,150,150,150 | Fill Color 211,211,211,255
LeftMouseUpAction=[!CommandMeasure MeasureInput "ExecuteBatch 1"]

[MeasureInput]
Measure=Plugin
Plugin=InputText
X=4
Y=3
W=198
H=22
SolidColor=211,211,211,255
FontColor=47,47,47,255
FontSize=11
AntiAlias=1
FocusDismiss=1
UpdateDivider=-1
DynamicVariables=1
Password=1
Command1=[!WriteKeyValue Variables Password "$UserInput$" "#CURRENTPATH#Test.inc"][!SetVariable Password "[MeasureInput]"][!UpdateMeter MeterPassword][!Redraw]

[MeterPassword]
Meter=String
Y=5R
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
DynamicVariables=1
Text=Password: #Password#
Test.inc:

Code: Select all

[Variables]
Password=Default
If I understand you correctly, this will load, and get the password "Default" from the .inc file. You can then use InputText to change the password, which will be written to the .inc file and also updated immediately in the skin without having to refresh.

Then when you unload the skin, the password "Default" is written back to the .inc file, so it you load the skin again you are starting over.
User avatar
Skyayashane
Posts: 7
Joined: August 2nd, 2017, 12:22 pm

Re: Help Skin + Notepad input

Post by Skyayashane »

thanks you sir, its really help. :D
User avatar
Skyayashane
Posts: 7
Joined: August 2nd, 2017, 12:22 pm

Re: Help Skin + Notepad input

Post by Skyayashane »

Sir, why a skin always change to position stay topmost but i always, change it to normal then when it load again it change to stay topmost. if their's a command like these draggable?

OnRefreshAction=[!Draggable "0"]
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help Skin + Notepad input

Post by jsmorley »

Skyayashane wrote:Sir, why a skin always change to position stay topmost but i always, change it to normal then when it load again it change to stay topmost. if their's a command like these draggable?

OnRefreshAction=[!Draggable "0"]
There is:

https://docs.rainmeter.net/manual/bangs/#ZPos

You should look for an OnRefreshAction with that in the top of your skin, in the [Rainmeter] section, and either get rid of it, or change it to the value you want.

-2 for On desktop
-1 for Bottom
0 for Normal
1 for On top
2 for Always on top.
Post Reply