-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChat.bas
35 lines (34 loc) · 1.02 KB
/
Chat.bas
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
Attribute VB_Name = "Chat"
Public Function AddChat(Color As String, MSG As String, Optional Fade As Boolean)
With frmMain.txtChan
If Len(.Text) > 100000 Then .Text = ""
.SelStart = Len(.Text)
.SelColor = "&H" & StrReverse("33FFCC")
.SelText = "[" & Time & "]"
.SelColor = Color
.SelText = " " & MSG & vbCrLf
.SelStart = Len(.Text)
End With
End Function
Public Function AddChat2(Color As String, MSG As String, Optional Fade As Boolean)
With frmMain.txtChan
If Len(.Text) > 100000 Then .Text = ""
.SelStart = Len(.Text)
.SelColor = Color
.SelText = " " & MSG & vbCrLf
.SelStart = Len(.Text)
End With
End Function
Public Function AddChat3(Color As String, MSG As String, User As String, Optional Fade As Boolean)
With frmMain.txtChan
If Len(.Text) > 100000 Then .Text = ""
.SelStart = Len(.Text)
.SelColor = "&H" & StrReverse("33FFCC")
.SelText = "[" & Time & "]"
.SelColor = vbYellow
.SelText = " <" & User & ">"
.SelColor = Color
.SelText = " " & MSG & vbCrLf
.SelStart = Len(.Text)
End With
End Function