Code: Select all
[Variables]
Soundfile1=@music\Access Granted.wav
Soundfile2=@music\Access Denied.wav
Password=
DistanceLockInput=20
ShakeX = 0
FontSize=18
[BlurBehind]
Measure=Plugin
Plugin=FrostedGlass
UpdateDivider=-1
;Default=1 Determines if the blur is enabled or not
BlurEnabled=1
[MeterBlurredBackground]
Meter=Image
SolidColor=0,0,0,1
W=#VSCREENAREAWIDTH#
H=#SCREENAREAHEIGHT#
RightMouseUpAction=[]
MouseActionCursorName=..\..\..\..\..\..\..\..\Windows\Cursors\aero_arrow.cur
[ShakeAnim]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Wait 1|Repeat MoveLeft, 20, 3 | Wait 1 | Repeat MoveRight, 20, 6 | Wait 1 | Repeat MoveLeft, 20, 3
MoveLeft = [!SetVariable "ShakeX" "(CLAMP(#ShakeX# - 4, -10, 10))"][!Update][!Redraw]
MoveRight = [!SetVariable "ShakeX" "(CLAMP(#ShakeX# + 4, -10, 10))"][!Update][!Redraw]
ActionList2=Wait 500|OpenPasswordSetter
OpenPasswordSetter=[!CommandMeasure MeasureInput "ExecuteBatch 2"]
DynamicVariables=1
[MeterLock]
Meter=Image
ImageName=#@#lock-icon
W=256
H=256
X=(#PWORKAREAWIDTH# / 2 - [MeterLock:W] / 2 + #ShakeX#)
Y=([MeterBlurredBackground:H] / 2 - [MeterLock:H] / 2 - [InputBar:H] / 2 - #DistanceLockInput#)
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureInput "ExecuteBatch 1"]
[InputBar]
Meter=Image
SolidColor=230, 230, 230
X=([MeterLock:X])
Y=([MeterLock:Y] + [MeterLock:H] + #DistanceLockInput#)
W=256
H=30
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureInput "ExecuteBatch 1"]
[MeasureInput]
Measure=Plugin
Plugin=InputText
SolidColor=230,230,230
FontColor=0,0,0
FontFace=Seqoe UI
AntiAlias=1
FontSize=#FontSize#
X= ([InputBar:X] + 5)
Y=( [InputBar:Y])
H= [InputBar:H]
W= ([InputBar:W] - 10)
Command1=[!UpdateMeasure "MeasureInput"][!SetVariable "inputPass" "$UserInput$"][!UpdateMeasure "PasswordSetter"][play #Soundfile1#]
Command2=[!WriteKeyValue "Variables" "Password" "$UserInput$"][!HideFade][Refresh] DefaultValue="Create password" Password=0 [play #Soundfile2#][Stop #Soundfile1#]
TopMost=1
UpdateDivider=-1
IfMatch=(?=^1234$)(?=^[^\s]+$)
IfMatchAction=[!HideFade] [!UpdateMeasure MeasureInput][!SetVariable "Open" "1"]
IfNotMatchAction=
DynamicVariables=1
Password=1
FocusDismiss=0
OnDismissAction=[!UpdateMeasure PasswordSetter]
[PasswordSetter]
Measure=String
String=#Password#
IfMatch=^\s*$
IfMatchAction=[!CommandMeasure ShakeAnim "Execute 2"]
IfMatch2=(?=^#inputPass#$)
IfNotMatchAction2=[!CommandMeasure ShakeAnim "Execute 1"]
IfMatchMode=1
DynamicVariables=1
UpdateDivider=-1