forked from blackdtools/Cheatlyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmGlobalSettings.vb
199 lines (148 loc) · 8.62 KB
/
frmGlobalSettings.vb
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
Public Class frmGlobalSettings
Dim dragStatus As Boolean = False
Dim mouseX As Integer
Dim mouseY As Integer
Private Sub cmdClose_Click(sender As System.Object, e As System.EventArgs) Handles cmdClose.Click
applyAndClose()
End Sub
Private Sub applyAndClose()
Dim strAll As String
Dim saveTo As String
Dim friends() As String
Dim totalFriends As Integer = 0
Dim friendName As String
strAll = "[Global]" & vbCrLf & _
"AddressFile=" & Me.txtConfigName.Text & vbCrLf & _
"timerMS=" & Me.txtTimer.Text
friends = Split(txtFriends.Text, vbCrLf)
For i = 0 To UBound(friends)
friendName = Trim$(friends(i))
If Not (friendName = "") Then
strAll = strAll & vbCrLf & "friend" & CStr(i) & "=" & friendName
totalFriends = totalFriends + 1
End If
Next i
ReDim currentFriend(0)
currentTotalFriends = totalFriends
If currentTotalFriends > 0 Then
totalFriends = 0
ReDim currentFriend(currentTotalFriends - 1)
For i = 0 To UBound(friends)
friendName = Trim$(friends(i))
If Not (friendName = "") Then
currentFriend(totalFriends) = friendName
totalFriends = totalFriends + 1
End If
Next i
End If
strAll = strAll & vbCrLf & "totalFriends=" & totalFriends
saveTo = getMyCurrentAppPath() & "\settings.ini"
My.Computer.FileSystem.WriteAllText(saveTo, strAll, False, System.Text.ASCIIEncoding.ASCII)
Me.Hide()
frmMain.LoadTibiaAddresses()
End Sub
Private Sub btnClose_Click(sender As System.Object, e As System.EventArgs) Handles btnClose.Click
applyAndClose()
End Sub
Private Sub txtTimer_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles txtTimer.Validating
If IsNumeric(txtTimer.Text) = False Then
e.Cancel = True
txtTimer.Text = "100"
End If
End Sub
Private Sub lblLeftDeco_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblLeftDeco.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblLeftDeco_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblLeftDeco.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblLeftDeco_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblLeftDeco.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblRightDeco_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblRightDeco.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblRightDeco_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblRightDeco.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblRightDeco_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblRightDeco.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblBottomDeco_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblBottomDeco.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblBottomDeco_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblBottomDeco.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblBottomDeco_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblBottomDeco.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblTitle_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblTitle.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblTitle_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblTitle.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblTitle_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblTitle.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub picIcon_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles picIcon.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub picIcon_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles picIcon.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub picIcon_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles picIcon.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblAuxIcon_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblAuxIcon.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblAuxIcon_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblAuxIcon.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblAuxIcon_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblAuxIcon.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub frmGlobalSettings_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Me.TopMost = True
End Sub
Private Sub frmGlobalSettings_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub frmGlobalSettings_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub frmGlobalSettings_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblMemory_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblMemory.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblMemory_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblMemory.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblMemory_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblMemory.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblTimer_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblTimer.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblTimer_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblTimer.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblTimer_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblTimer.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblFriendTitle_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblFriendTitle.MouseDown
handleSpecialFormDragMODE_MouseDown(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblFriendTitle_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblFriendTitle.MouseMove
handleSpecialFormDragMODE_MouseMove(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub lblFriendTitle_MouseUp(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles lblFriendTitle.MouseUp
handleSpecialFormDragMODE_MouseUp(Me, dragStatus, mouseX, mouseY)
End Sub
Private Sub txtFriends_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtFriends.TextChanged
End Sub
End Class