I figured I'd post a few lines of code for an app I have sitting on the taskbar and checking minute intervals. Maybe you'll find it useful...
Step 1: Create a timer control on your form and disable it by default. Set it for however m/s you want it to check the current time against the wakeup time. This is very low CPU intensive.
Step 2: From form_load() or a sub of your choosing set initial parameters, then exit the sub (i.e. app sits idle) and enable the timer which does a compare of current time to interval in minutes:
Private Sub Form_Load()
'Store current minute
StartMin = Mid$(Time$, 4, 2)
'add code here to create a taskbar icon
'Enable timer and sleep the app
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
'Compare current time to a preset interval of x minutes.
'and the start time of the app. If the current time
'is past the interval then "wake up"
If Mid$(Time$, 4, 2) >= StartMin + CInt(txtInterval.Text) Then
'add main code to run here
'also add any taskbar icon change if
'conditions warrant
'Store the new current minute
StartSec = Mid$(Time$, 4, 2)
End If
End Sub
CGFiend
[There's no chr$(27)!]