This repository has been archived by the owner on Jan 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
frmHelp.frm
273 lines (273 loc) · 8.92 KB
/
frmHelp.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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
VERSION 5.00
Begin VB.Form frmHelp
BackColor = &H00FFFFFF&
BorderStyle = 4 'Fixed ToolWindow
Caption = "Îêíî àêòèâíîé ïîìîùè"
ClientHeight = 2805
ClientLeft = 13290
ClientTop = 2205
ClientWidth = 3330
BeginProperty Font
Name = "Book Antiqua"
Size = 8.25
Charset = 238
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2805
ScaleWidth = 3330
ShowInTaskbar = 0 'False
Begin VB.Shape line
BackStyle = 1 'Íåïðîçðà÷íî
FillStyle = 0 'Çàëèâêà
Height = 14
Left = 378
Top = 2016
Visible = 0 'False
Width = 1148
End
Begin VB.Label lblParam
AutoSize = -1 'True
BackStyle = 0 'Ïðîçðà÷íî
Caption = "LBL"
BeginProperty Font
Name = "Book Antiqua"
Size = 10.5
Charset = 204
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 252
Index = 0
Left = 1638
TabIndex = 1
ToolTipText = "Äâîéíîé êëèê, ÷òîáû âûçâàòü ïîìîùü"
Top = 1764
Visible = 0 'False
Width = 392
End
Begin VB.Shape frame
BorderColor = &H00C0C0C0&
BorderWidth = 2
Height = 518
Index = 0
Left = 1386
Top = 1008
Visible = 0 'False
Width = 1148
End
Begin VB.Label lblFunc
AutoSize = -1 'True
BackStyle = 0 'Ïðîçðà÷íî
Caption = "LBL"
BeginProperty Font
Name = "Book Antiqua"
Size = 13.5
Charset = 204
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 322
Index = 0
Left = 1512
TabIndex = 0
ToolTipText = "Êëèêíèòå, ÷òîáû âûáðàòü"
Top = 1134
Visible = 0 'False
Width = 518
End
Begin VB.Menu mnuActionsHelp
Caption = "Ïîìîùü ïî äåéñòâèÿìè"
Visible = 0 'False
Begin VB.Menu mnuSelect
Caption = "&Âûáðàòü äåéñòâèå"
End
Begin VB.Menu mnuActionsInfo
Caption = "&Äîïîëíèòåëüíàÿ èíôîðìàöèÿ"
End
Begin VB.Menu mnuClose
Caption = "&Çàêðûòü îêíî àêòèâíîé ïîìîùè"
End
End
End
Attribute VB_Name = "frmHelp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Option Explicit
'Dim i As Integer, SelectedIndex As Integer
'
'Public Sub ShowHelp(HelpType As Long, Optional Func As String)
' If NowHelp = Func Then Exit Sub
' If HelpType = typFunc Then
' ShowFuncsInfo
' ElseIf HelpType = typParam Then
' Select Case Func
' Case cClick
' ShowParam 8
' ShowClickInfo
' Case cWait
' ShowParam 2
' ShowWaitInfo
' Case cSetCursorPos
' ShowParam 4
' ShowSetCursorPosInfo
' Case Else
' ShowFuncsInfo
' End Select
' End If
' If Not Me.Visible Then
' Left = frmMain.Left + frmMain.Width + 100
' Top = frmMain.Top + 500
' Show , frmMain
' If Me.WindowState = 1 Then frmMain.SetFocus
' End If
' NowHelp = Func
'End Sub
'
'Sub ShowWaitInfo()
' lblParam(1).Caption = "1. âðåìÿ îæèäàíèÿ :: ïî óìîë÷àíèþ = 1 ñåêóíäà"
' lblParam(2).Caption = "2. ðàíäîìèçèðîâàòü èíòåðâàë íà :: ïî óìîë÷àíèþ = 0 ìñ"
' lblParam(3).Caption = "Ïðèìåð: Æäàòü 10 ìèíóò, 0"
'End Sub
'
'Sub ShowSetCursorPosInfo()
' lblParam(1).Caption = "1. êîîðäèíàòû ïî îñè X :: ïî óìîë÷àíèþ = Òåêóùèå êîîðäèíàòû"
' lblParam(2).Caption = "2. êîîðäèíàòû ïî îñè Y :: ïî óìîë÷àíèþ = Òåêóùèå êîîðäèíàòû"
' lblParam(3).Caption = "3. çàäåðæêà ïåðåä äåéñòâèåì :: ïî óìîë÷àíèþ = 0"
' lblParam(4).Caption = "4. çàäåðæêà ïîñëå äåéñòâèÿ :: ïî óìîë÷àíèþ = 0"
' lblParam(5).Caption = "Ïðèìåð: Ïåðåäâèíóòü êóðñîð 100, 200, 0, 0"
'End Sub
'
'Sub ShowClickInfo()
' lblParam(1).Caption = "1. êîîðäèíàòû ïî îñè X :: ïî óìîë÷àíèþ = Òåêóùèå êîîðäèíàòû"
' lblParam(2).Caption = "2. êîîðäèíàòû ïî îñè Y :: ïî óìîë÷àíèþ = Òåêóùèå êîîðäèíàòû"
' lblParam(3).Caption = "3. ñîáûòèå (òèï íàæàòèÿ) :: ïî óìîë÷àíèþ = Êëèê"
' lblParam(4).Caption = "4. êíîïêà ìûøè :: ïî óìîë÷àíèþ = Ëåâàÿ"
' lblParam(5).Caption = "5. ñêîëüêî ðàç âûïîëíèòü äåéñòâèå :: ïî óìîë÷àíèþ = 1"
' lblParam(6).Caption = "6. çàäåðæêà ïåðåä äåéñòâèåì :: ïî óìîë÷àíèþ = 0"
' lblParam(7).Caption = "7. çàäåðæêà ïîñëå äåéñòâèÿ :: ïî óìîë÷àíèþ = 0"
' lblParam(8).Caption = "8. âåðíóòü êóðñîð íà ïðåæíåå ìåñòî :: ïî óìîë÷àíèþ = Äà"
' lblParam(9).Caption = "Ïðèìåð: Êëèê 100, 200, Âíèç, Ïðàâàÿ, 10, 500, 1000, Äà"
'End Sub
'
'
'Sub ShowParam(Optional ParamCount As Long, Optional HideAll As Boolean)
' Static LastIndex As Integer
' If HideAll Then
' For i = 0 To LastIndex
' lblParam(i).Visible = False
' Next i
' Exit Sub
' End If
' ShowFuncsInfo True 'ñêðûâàåì äåéñòâèÿ
' lblParam(0).Caption = "Ñèíòàêñèñ êîìàíäû: "
' lblParam(0).Left = 20
' lblParam(0).Top = 0
' lblParam(0).FontItalic = True
' lblParam(0).FontBold = True
' lblParam(0).Visible = True
' For i = 1 To LastIndex
' lblParam(i).Caption = ""
' Next i
' For i = 1 To ParamCount + 1
' If LastIndex < i Then Load lblParam(i)
' lblParam(i).Left = 20
' lblParam(i).Top = i * lblParam(0).Height + 20
' lblParam(i).Caption = "0"
' lblParam(i).ForeColor = 0
' lblParam(i).FontSize = 10
' lblParam(i).Visible = True
' Next i
' If ParamCount + 1 > LastIndex Then LastIndex = ParamCount + 1
' lblParam(ParamCount + 1).FontSize = 12
' lblParam(ParamCount + 1).ForeColor = &H8000000D
' lblParam(0).ForeColor = &H808080
' lblParam(0).FontItalic = False
' lblParam(0).FontBold = False
' Height = (ParamCount + 2) * (lblParam(1).Height + 10) + (Height - ScaleHeight)
' Width = lblParam(0).Width + 4500
'End Sub
'
'Sub ShowFuncsInfo(Optional HideAll As Boolean)
' Static LastIndex As Integer
' If HideAll Then
' For i = 0 To LastIndex
' lblFunc(i).Visible = False
' Next i
' Exit Sub
' End If
' ShowParam , True
' i = 0
' lblFunc(i).Caption = "Ñïèñîê êîìàíä: "
' lblFunc(i).Left = 20
' lblFunc(i).Top = i * lblFunc(0).Height
' lblFunc(i).FontItalic = True
' lblFunc(i).FontBold = True
' lblFunc(i).Visible = True
' For i = 1 To FuncsCount
' If LastIndex < i Then Load lblFunc(i)
' lblFunc(i).Left = 20
' lblFunc(i).Top = i * lblFunc(0).Height + 20
' lblFunc(i).Visible = True
' Next i
' LastIndex = FuncsCount
' lblFunc(0).ForeColor = &H808080
' lblFunc(0).FontItalic = False
' lblFunc(0).FontBold = False
' Height = (LastIndex + 1) * (lblFunc(1).Height + 10) + (Height - ScaleHeight)
' Width = lblFunc(0).Width + 1000
' lblFunc(1).Caption = ruClick
' lblFunc(2).Caption = ruWait
' lblFunc(3).Caption = ruSetCursorPos
' lblFunc(4).Caption = ruPress
' lblFunc(5).Caption = ruStartScript
' lblFunc(6).Caption = ruLoop
' lblFunc(7).Caption = ruExit
'End Sub
'
'Private Sub Form_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
' For i = 1 To lblFunc.UBound
' lblFunc(i).ForeColor = 0
' Next i
'End Sub
'
'Private Sub lblFunc_MouseMove(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
' If Index > 0 Then
' For i = 1 To lblFunc.UBound
' If i <> Index Then lblFunc(i).ForeColor = 0
' Next i
' lblFunc(Index).ForeColor = &H8000000D
' End If
'End Sub
'
'Private Sub lblFunc_MouseUp(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
' If Button = 1 Then
' If Index = 0 Then Exit Sub
' SelectFunc Index
' ElseIf Button = 2 Then
' SelectedIndex = Index
' PopupMenu mnuFuncsHelp
' End If
'End Sub
'
'Sub SelectFunc(Index As Integer)
' frmMain.SetFunc lblFunc(Index).Caption
' frmMain.SetFocus
'End Sub
'
'Private Sub mnuSelect_Click()
' SelectFunc SelectedIndex
'End Sub