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_LoadCode:lblhr.Caption = Format$(Now, "hh:mm:ss AM/PM")
my problem is in the highlighted color what will i put... thanxCode: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




Reply With Quote