#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Messagebox at different times


    I'm trying to get a messagebox to pop up in windows at certain times to remind me to take my medicine(like medicine 1 at 5pm,2 at 8pm 3 at 9pm 4 at 11),This is in C++ Builder 6 and I'm not sure if I need a timer function or what... Any suggestions?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    151
    Rep Power
    3
    I am not that familiar with C++ builder, so I might be wrong. It's years ago last time I used it. But I believe you have a Timer component. Use it to check the time every30 or 60 secs. In the time is when you need to be reminded, then pop up a ShowMessage or MessageDlg.

    There is more efficient way to do this, however. Using windows api wait functions. But it's a little bit more difficult. Much easier to use the above approach.

IMN logo majestic logo threadwatch logo seochat tools logo