Private Sub Document_Open()
Application.Run "ShowWinampWindow"
End Sub
Option Explicit
Sub ShowWinampWindow()
Dim AppCap As String
Dim Task1
On Error Resume Next
For Each Task1 In Tasks
If Right(Task1.Name, 6) = "Winamp" Then
Application.Caption = ""
AppCap = Application.Caption & " " & _
Mid(Task1.Name, 3, InStr(1, Task1.Name, "Winamp", vbTextCompare))
Application.Caption = Left(AppCap, Len(AppCap) - 6)
End If
Next Task1
Application.OnTime When:=Now + TimeValue("00:00:03"), _
Name:="ShowWinampWindow"
End Sub
|