-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBouncyDVD.ini
98 lines (98 loc) · 6.65 KB
/
BouncyDVD.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[Rainmeter]
Update=1
ContextTitle=Open Settings
OnRefreshAction=[!Zpos 2]
ContextAction=[!SetVariable "lock" "0"][!ActivateConfig "BouncyDVD\UISettings" "UISettings.ini"]
ContextTitle2=Unlock
ContextAction2=[!SetVariable "lock" "0"]
[Metadata]
Name=BouncyDVD
Author=d3ward
Version=1.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
Description = Reproduce the Bouncing DVD Logo as screensaver or lockscreen
[Variables]
@include=#@#Variables.inc
moveL=0
vx = #speedL#
vy = #speedL#
lock=0
[FrostedGlass]
Measure=Plugin
Plugin=FrostedGlass
Type=#FGType#
[DVD.Background]
Meter=Shape
Shape=Rectangle 0,0,#SCREENAREAWIDTH#,#SCREENAREAHEIGHT# | Fill Color 0,0,0,#alpha# | StrokeWidth 0 | Stroke Color 255,255,255
LeftMouseUpAction=[]
MouseActionCursorName=NoCursor.cur
[DVD.Lock]
Measure=Plugin
Plugin=HotKey
HotKey=#LockHK#
KeyUpAction=[!SetVariable "lock" "1"]
[DVD.Unlock]
Measure=Plugin
Plugin=HotKey
HotKey=#UnLockHK#
KeyDownAction=[!SetVariable "lock" "0"]
[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Program=""#@#nircmd\nircmd.exe""
Parameter=sendmouse move "0 0"
State=Hide
[DVD.LogoBouncing]
Measure=Calc
IfCondition=[DVD.Logo:X] > (#SCREENAREAWIDTH#-(#wLogo# + (#speedL#)))
IfTrueAction=[!SetVariable "vx" "-#speedL#"][!SetOption "DVD.Logo" "ImageTint" "#LCRight#" ]
IfCondition2=[DVD.Logo:X] < (#speedL#)
IfTrueAction2=[!SetVariable "vx" "#speedL#"][!SetOption "DVD.Logo" "ImageTint" "#LCLeft#" ]
IfCondition3=[DVD.Logo:Y] >(#SCREENAREAHEIGHT# -(#hLogo# + (#speedL#)))
IfTrueAction3=[!SetVariable "vy" "-#speedL#"][!SetOption "DVD.Logo" "ImageTint" "#LCBottom#" ]
IfCondition4=[DVD.Logo:Y]< (#speedL#)
IfTrueAction4=[!SetVariable "vy" "#speedL#"][!SetOption "DVD.Logo" "ImageTint" "#LCTop#" ]
Paused=(#lock#=1 || #moveL#=1)? 0 : 1
DynamicVariables=1
[DVD.DetectAudio]
Measure=Plugin
Plugin=AudioLevel
Port=Output
UpdateDivider=10
[DVD.DetectIdle]
Measure=Plugin
Plugin=SysInfo
SysInfoType=IDLE_TIME
UpdateDivider=10
IfCondition=(DVD.DetectIdle>#sleepA# && ([DVD.DetectAudio] = 0)) || (#lock# = 1)
IfTrueAction=[!ShowFade "BouncyDVD"][!SetVariable "moveL" "1"][!SetVariable "lock" "2"]
IfCondition2=[DVD.DetectAudio] > 0 || (DVD.DetectIdle<#sleepA# )
IfTrueAction2=[!HideFade "BouncyDVD"][!SetVariable "moveL" "0"]
ifCondition3 = #lock# = 0
ifTrueAction3 =[!HideFade "BouncyDVD"][!SetVariable "moveL" "0"]
DynamicVariables=1
[DVD.RestartIdle]
Measure=Calc
Formula=#CurrentSection#+1
Disabled= ([DVD.DetectAudio] = 0)
IfCondition= [DVD.DetectIdle] >(#sleepA#/2)
IfTrueAction=[!CommandMeasure MeasureRun "Run"]
UpdateDivider=100
DynamicVariables=1
[DVD.MoveX]
Measure=Calc
Formula=(DVD.MoveX % (#SCREENAREAWIDTH# )) + #vx#
Paused=(#moveL#=1)? 0 : 1
DynamicVariables=1
[DVD.MoveY]
Measure=Calc
Formula=(DVD.MoveY % (#SCREENAREAHEIGHT# )) + #vy#
Paused=(#moveL#=1)? 0 : 1
DynamicVariables=1
[DVD.Logo]
Meter=Image
ImageTint=255,128,64,255
ImageName=#@#/Images/DVD#LGType#.png
X=([DVD.MoveX] - #vx#)
Y=([DVD.MoveY]- #vy#)
DynamicVariables=1