Advertisement
Brandan

HTML Code

Jul 6th, 2012
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 7.58 KB | None | 0 0
  1.             If CheckBox14.Checked = True Then
  2.                 text = text.ToLower
  3.             End If
  4.             Dim keyValue As Object
  5.             keyValue = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\NopWorks\ECW", "Name", Nothing)
  6.             If CheckBox8.Checked = True Then
  7.                 If RadioButton1.Checked = True Then
  8.                     If text.Contains("Has Joinned " & IRC_CHANNEL) Then
  9.                         colorize(stamp & text, join_part_color)
  10.                     ElseIf text.Contains("Has Left " & IRC_CHANNEL) Then
  11.                         colorize(stamp & text, join_part_color)
  12.                     ElseIf wordquest(" ", text, 0) = keyValue & ":" Then
  13.                         colorize(stamp & text, user_chat_color)
  14.                     ElseIf wordquest(" ", text, 0) = My.Computer.Name & ":" Then
  15.                         colorize(stamp & text, user_chat_color)
  16.                     ElseIf text.Contains("PVT:") Then
  17.                         colorize(stamp & text, user_chat_color)
  18.                     Else
  19.                         colorize(stamp & text, standard_chat_color)
  20.                     End If
  21.                 Else
  22.                     If text.Contains("Has Joinned " & IRC_CHANNEL) Then
  23.                         colorize(stamp & text, join_part_color)
  24.                     ElseIf text.Contains("Has Left " & IRC_CHANNEL) Then
  25.                         colorize(stamp & text, join_part_color)
  26.                     ElseIf wordquest(" ", text, 0) = keyValue & ":" Then
  27.                         colorize(stamp & text, user_chat_color)
  28.                     ElseIf wordquest(" ", text, 0) = My.Computer.Name & ":" Then
  29.                         colorize(stamp & text, user_chat_color)
  30.                     ElseIf text.Contains("PVT:") Then
  31.                         colorize(stamp & text, user_chat_color)
  32.                     Else
  33.                         colorize(stamp & text, standard_chat_color)
  34.                     End If
  35.                 End If
  36.             Else
  37.                 If text.Contains("Has Joinned " & IRC_CHANNEL) Then
  38.                     colorize(text, join_part_color)
  39.                 ElseIf text.Contains("Has Left " & IRC_CHANNEL) Then
  40.                     colorize(text, join_part_color)
  41.                 ElseIf wordquest(" ", text, 0) = keyValue & ":" Then
  42.                     colorize(text, user_chat_color)
  43.                 ElseIf wordquest(" ", text, 0) = My.Computer.Name & ":" Then
  44.                     colorize(stamp & text, user_chat_color)
  45.                 ElseIf text.Contains("PVT:") Then
  46.                     colorize(text, user_chat_color)
  47.                 Else
  48.                     colorize(text, standard_chat_color)
  49.                 End If
  50.             End If
  51.             If CheckBox6.Checked = True Then
  52.                 Dim file = "Chatlog_" & Date.Today.Month & "-" & Date.Today.Day & "-" & Date.Today.Year & ".html"
  53.                 Dim fileExists As Boolean
  54.                 fileExists = My.Computer.FileSystem.FileExists("Logs\" & file)
  55.                 If fileExists Then
  56.                     If text.Contains("Has Joinned " & IRC_CHANNEL) Then
  57.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""j"">" & stamp & text & "</font></br>" & vbNewLine, True)
  58.                     ElseIf text.Contains("Has Left " & IRC_CHANNEL) Then
  59.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""j"">" & stamp & text & "</font></br>" & vbNewLine, True)
  60.                     ElseIf wordquest(" ", text, 0) = keyValue & ":" Then
  61.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""u"">" & stamp & text & "</font></br>" & vbNewLine, True)
  62.                     ElseIf wordquest(" ", text, 0) = My.Computer.Name & ":" Then
  63.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""u"">" & stamp & text & "</font></br>" & vbNewLine, True)
  64.                     ElseIf text.Contains("PVT:") Then
  65.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""u"">" & stamp & text & "</font></br>" & vbNewLine, True)
  66.                     Else
  67.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""s"">" & stamp & text & "</font></br>" & vbNewLine, True)
  68.                     End If
  69.                 Else
  70.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "<html>" & vbNewLine, False)
  71.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "<head>" & vbNewLine, True)
  72.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "<title>ECW CHAT - " & Date.Today.Month & "/" & Date.Today.Day & "/" & Date.Today.Year & " " & stamp.Replace("[", Nothing).Replace("]", Nothing) & "</title>" & vbNewLine, True)
  73.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "<style>" & vbNewLine, True)
  74.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "<!--" & vbNewLine, True)
  75.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "body {font-family: """ & ComboBox6.Text & """; font-size: " & NumericUpDown2.Value & "pt; color: #CE9C31}" & vbNewLine, True)
  76.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, ".j {color: #32CD32}" & vbNewLine, True)
  77.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, ".s {color: #F4A460}" & vbNewLine, True)
  78.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, ".u {color: #89CFF0}" & vbNewLine, True)
  79.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, ".s2 {color: #F0FFFF}" & vbNewLine, True)
  80.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "-->" & vbNewLine, True)
  81.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "</style>" & vbNewLine, True)
  82.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "</head>" & vbNewLine, True)
  83.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "<body bgcolor=""#404040"">" & vbNewLine, True)
  84.                     My.Computer.FileSystem.WriteAllText("Logs\" & file, "<p class=""y"">ECW Chat - " & Date.Today.Month & "/" & Date.Today.Day & "/" & Date.Today.Year & " " & stamp.Replace("[", Nothing).Replace("]", Nothing) & "</p>" & vbNewLine, True)
  85.                     If text.Contains("Has Joinned " & IRC_CHANNEL) Then
  86.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""j"">" & stamp & text & "</font></br>" & vbNewLine, True)
  87.                     ElseIf text.Contains("Has Left " & IRC_CHANNEL) Then
  88.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""j"">" & stamp & text & "</font></br>" & vbNewLine, True)
  89.                     ElseIf wordquest(" ", text, 0) = keyValue & ":" Then
  90.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""u"">" & stamp & text & "</font></br>" & vbNewLine, True)
  91.                     ElseIf wordquest(" ", text, 0) = My.Computer.Name & ":" Then
  92.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""u"">" & stamp & text & "</font></br>" & vbNewLine, True)
  93.                     ElseIf text.Contains("PVT:") Then
  94.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""u"">" & stamp & text & "</font></br>" & vbNewLine, True)
  95.                     Else
  96.                         My.Computer.FileSystem.WriteAllText("Logs\" & file, "<font class=""s"">" & stamp & text & "</font></br>" & vbNewLine, True)
  97.                     End If
  98.                 End If
  99.             End If
  100.         End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement