VERSION 5.00 Begin VB.Form frmMain BorderStyle = 1 'Fixed Single Caption = "Dirty theme metrics analyzer" ClientHeight = 5895 ClientLeft = 45 ClientTop = 330 ClientWidth = 8190 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 5895 ScaleWidth = 8190 StartUpPosition = 3 'Windows Default Begin VB.CommandButton cmdRemoveCommonMetrics Caption = "Remove common metrics && reprint screens (must find common metrics first)" Height = 495 Left = 4920 TabIndex = 9 Top = 2040 Width = 3135 End Begin VB.TextBox txtOutput Height = 3375 Left = 2400 MultiLine = -1 'True ScrollBars = 3 'Both TabIndex = 8 Top = 2520 Width = 5775 End Begin VB.CommandButton Command1 Caption = " "" Then txtOutput = txtOutput + CommonLines(i) + vbCrLf End If Next i End Sub Private Sub cmdRemoveCommonMetrics_Click() txtOutput = "" For i = 1 To lstToDoScreens.ListCount For j = 0 To NUMCOMMONS foundmetric = False For k = 0 To NumMetrics(Val(lstToDoScreens.List(i - 1)) - 1) MetricX$ = Screens(Val(lstToDoScreens.List(i - 1)) - 1, k) If CommonLines(j) = MetricX$ Then foundmetric = True Exit For End If Next k If foundmetric = True Then Screens(Val(lstToDoScreens.List(i - 1)) - 1, k) = "" End If Next j Next i For i = 1 To lstToDoScreens.ListCount For j = 0 To NumMetrics(Val(lstToDoScreens.List(i - 1)) - 1) MetricX$ = Screens(Val(lstToDoScreens.List(i - 1)) - 1, j) If MetricX$ <> "" Then txtOutput = txtOutput + MetricX$ + vbCrLf End If Next j Next i End Sub Private Sub Command1_Click() If lstToDoScreens.ListIndex < 0 Then Exit Sub lstToDoScreens.RemoveItem (lstToDoScreens.ListIndex) End Sub Private Sub Dir_Change() File = Dir End Sub Private Sub Drive_Change() Dir = Drive File = Drive End Sub Private Sub File_Click() NumScreens = 0 For i = 0 To 1000 NumMetrics(i) = 0 Next i CurScreen$ = "" lstScreens.Clear Open Dir + "\" + File For Binary As #1 t = 1 k$ = String$(2, " ") xLine$ = "" While Not EOF(1) Get #1, t, k$ While k$ <> vbCr + vbLf And Not EOF(1) t = t + 1 xLine$ = xLine$ + Mid$(k$, 1, 1) Get #1, t, k$ Wend t = t + 2 If Mid(xLine$, 1, 1) = "[" Then Screens(NumScreens, 0) = Str(NumScreens + 1) + ":" + xLine$ NumMetrics(NumScreens) = 1 NumScreens = NumScreens + 1 lstScreens.AddItem (Str(NumScreens) + ":" + xLine$) Else Screens(NumScreens - 1, NumMetrics(NumScreens - 1)) = xLine$ NumMetrics(NumScreens - 1) = NumMetrics(NumScreens - 1) + 1 End If xLine$ = "" Wend Close #1 End Sub