Das Projekt
Hi Joe,
ich hab’s mal schnell getippt, die Zeit ist doch OK? 
die Form:
Option Explicit
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Command1\_Click()
TrayDelete
End
End Sub
Private Sub Form\_Load()
TrayAdd Me.hwnd, Me.Icon, "date-writer", MouseMove
Me.Hide
End Sub
Private Sub Form\_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim cEvent As Single
cEvent = X / Screen.TwipsPerPixelX
Select Case cEvent
Case LeftUp
Form1.WindowState = 0
Me.Show
Case RightUp
Form1.WindowState = 0
Me.Show
End Select
End Sub
Private Sub Form\_QueryUnload(Cancel As Integer, UnloadMode As Integer)
TrayDelete
End
End Sub
Private Sub Form\_Resize()
If Me.WindowState = vbMinimized Then
Me.Hide
DoEvents
End If
End Sub
Private Sub Timer1\_Timer()
If GetAsyncKeyState(122) Then
SendKeys Date
End If
End Sub
Und ein Modul (irgendwann mal bei PlanetSourcecode.com geladen und leicht verändert) …
Option Explicit
Const NIF\_MESSAGE As Long = &H1
Const NIF\_ICON As Long = &H2
Const NIF\_TIP As Long = &H4
Const NIM\_ADD As Long = &H0
Const NIM\_MODIFY As Long = &H1
Const NIM\_DELETE As Long = &H2
Public Type NOTIFYICONDATA
cbSize As Long
hwnd As Long
uId As Long
uFlags As Long
uCallBackMessage As Long
hIcon As Long
szTip As String \* 64
End Type
Public Enum TrayRetunEventEnum
MouseMove = &H200
LeftUp = &H202
LeftDown = &H201
LeftDbClick = &H203
RightUp = &H205
RightDown = &H204
RightDbClick = &H206
MiddleUp = &H208
MiddleDown = &H207
MiddleDbClick = &H209
End Enum
Public Enum ModifyItemEnum
ToolTip = 1
Icon = 2
End Enum
Public Bild As String
Public Zaehler As Integer
Public TrayIcon As NOTIFYICONDATA
Public Declare Function Shell\_NotifyIcon Lib "shell32" Alias "Shell\_NotifyIconA" (ByVal dwMessage As Long, pnid As NOTIFYICONDATA) As Boolean
Public Sub TrayAdd(hwnd As Long, Icon As Picture, \_
ToolTip As String, ReturnCallEvent As TrayRetunEventEnum)
With TrayIcon
.cbSize = Len(TrayIcon)
.hwnd = hwnd
.uId = vbNull
.uFlags = NIF\_ICON Or NIF\_TIP Or NIF\_MESSAGE
.uCallBackMessage = ReturnCallEvent
.hIcon = Icon
.szTip = ToolTip & vbNullChar
End With
Shell\_NotifyIcon NIM\_ADD, TrayIcon
End Sub
Public Sub TrayDelete()
Shell\_NotifyIcon NIM\_DELETE, TrayIcon
End Sub
Public Sub TrayModify(Item As ModifyItemEnum, vNewValue As Variant)
Select Case Item
Case ToolTip
TrayIcon.szTip = vNewValue & vbNullChar
Case Icon
TrayIcon.hIcon = vNewValue
End Select
Shell\_NotifyIcon NIM\_MODIFY, TrayIcon
End Sub
Gruß, Rainer