-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathForm14.frm
251 lines (244 loc) · 7.36 KB
/
Form14.frm
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
VERSION 5.00
Begin VB.Form Form14
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Caption = "调整手机动画速度"
ClientHeight = 3960
ClientLeft = 7605
ClientTop = 5145
ClientWidth = 3315
FillColor = &H00FFFFFF&
BeginProperty Font
Name = "微软雅黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "Form14.frx":0000
LinkTopic = "Form14"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3960
ScaleWidth = 3315
Begin VB.VScrollBar VScroll3
Height = 375
Left = 2640
TabIndex = 11
Top = 1920
Width = 300
End
Begin VB.VScrollBar VScroll2
Height = 375
Left = 2640
TabIndex = 10
Top = 1320
Width = 300
End
Begin VB.VScrollBar VScroll1
Height = 375
Left = 2640
TabIndex = 9
Top = 720
Width = 300
End
Begin VB.CommandButton Command1
Appearance = 0 'Flat
BackColor = &H00C9A8FF&
Caption = "确定"
BeginProperty Font
Name = "微软雅黑"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1200
MaskColor = &H00C9A8FF&
Style = 1 'Graphical
TabIndex = 7
Top = 2760
Width = 975
End
Begin VB.TextBox Text3
Height = 375
Left = 1800
TabIndex = 6
Top = 1920
Width = 855
End
Begin VB.TextBox Text2
Height = 375
Left = 1800
TabIndex = 5
Top = 1320
Width = 855
End
Begin VB.TextBox Text1
Height = 375
Left = 1800
TabIndex = 4
Top = 720
Width = 855
End
Begin VB.Label Label7
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "恢复默认(1x)"
BeginProperty Font
Name = "微软雅黑"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00404040&
Height = 300
Left = 1080
TabIndex = 8
Top = 3480
Width = 1215
End
Begin VB.Label Label5
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "0x(关闭)-10x"
BeginProperty Font
Name = "微软雅黑"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 1800
TabIndex = 3
Top = 240
Width = 1230
End
Begin VB.Label Label4
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "动画程序时长"
BeginProperty Font
Name = "微软雅黑"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 360
TabIndex = 2
Top = 1920
Width = 1260
End
Begin VB.Label Label3
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "过渡动画缩放"
BeginProperty Font
Name = "微软雅黑"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 360
TabIndex = 1
Top = 1320
Width = 1260
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H00FFFFFF&
Caption = "窗口动画缩放"
BeginProperty Font
Name = "微软雅黑"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 360
TabIndex = 0
Top = 720
Width = 1260
End
End
Attribute VB_Name = "Form14"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim af, bf, cf As String
Command1.Enabled = 0
If InStr(Text1, "x") > 0 Then
af = Mid(Text1, 1, InStr(Text1, "x") - 1)
ElseIf InStr(Text1, "x") = 0 Then
af = Text1
End If
If InStr(Text2, "x") > 0 Then
bf = Mid(Text2, 1, InStr(Text2, "x") - 1)
ElseIf InStr(Text2, "x") = 0 Then
bf = Text2
End If
If InStr(Text3, "x") > 0 Then
cf = Mid(Text3, 1, InStr(Text3, "x") - 1)
ElseIf InStr(Text3, "x") = 0 Then
cf = Text3
End If
Shell "cmd /c adb shell settings put global window_animation_scale " & af
Shell "cmd /c adb shell settings put global transition_animation_scale " & bf
Shell "cmd /c adb shell settings put global animator_duration_scale " & cf
MsgBox "执行成功"
Command1.Enabled = 1
End Sub
Private Sub Form_Load()
VScroll1.Min = 40
VScroll1.Max = 0
VScroll1.Value = 4
VScroll2.Min = 40
VScroll2.Max = 0
VScroll2.Value = 4
VScroll3.Min = 40
VScroll3.Max = 0
VScroll3.Value = 4
End Sub
Private Sub Label7_Click()
Shell "cmd /c adb shell settings put global window_animation_scale 1"
Shell "cmd /c adb shell settings put global transition_animation_scale 1"
Shell "cmd /c adb shell settings put global animator_duration_scale 1"
MsgBox "已恢复默认"
VScroll3.Value = 4: VScroll1.Value = 4: VScroll2.Value = 4
End Sub
Private Sub VScroll1_Change()
AA = VScroll1.Value
Text1 = AA * 0.25 & "x"
End Sub
Private Sub VScroll2_Change()
BB = VScroll2.Value
Text2 = BB * 0.25 & "x"
End Sub
Private Sub VScroll3_Change()
CC = VScroll3.Value
Text3 = CC * 0.25 & "x"
End Sub