im adding a 3 o'clock habit in my program every 3 pm in the computer clock an automatic voice will speak here is my code
my code in Hour Label
this will be put in my Form_Load
my problem is in the highlighted color what will i put... thanx
my code in Hour Label
Code:
lblhr.Caption = Format$(Now, "hh:mm:ss AM/PM")
Code:
If lblhr.caption=3:00:00 pm then
Dim app_path As String
app_path = App.Path
If Right$(app_path, 1) <> "\" Then
app_path = app_path & "\"
txtmusic.Text = app_path & "3oclockhabit.wav"
With mmcplayer
.Filename = txtmusic.text
.Command = "open"
.Command = "play"
End With
End If
End If