Need to run up a pop up box at a certain time of day.
At the moment i've done it as such....
FUNCTION
STRING sTime;
//Set sTime to "00:00" Format.
sTime=Time(0);
//Run Message at 6am and 6pm each day
IF "06:00" = sTime THEN
Message("info", "Reminder!, infoText^".", 0);
END
IF "18:00" = sTime THEN
Message("info", "Reminder!, infoText^".", 0);
END
Sleep(45)
END
Needing to know if that look right to all, or if there's a better way to run it.
At the moment i'm getting the Time and setting a string.
Then comparing that string to the time needed and running the message.\
All compiles but i can't run it until tomorrow, wanting to get a head start if someone can help.
At the moment i've done it as such....
FUNCTION
STRING sTime;
//Set sTime to "00:00" Format.
sTime=Time(0);
//Run Message at 6am and 6pm each day
IF "06:00" = sTime THEN
Message("info", "Reminder!, infoText^".", 0);
END
IF "18:00" = sTime THEN
Message("info", "Reminder!, infoText^".", 0);
END
Sleep(45)
END
Needing to know if that look right to all, or if there's a better way to run it.
At the moment i'm getting the Time and setting a string.
Then comparing that string to the time needed and running the message.\
All compiles but i can't run it until tomorrow, wanting to get a head start if someone can help.