#71079 - 2002-10-24 01:41 AM
script to display a message once a day
|
cigaweed74
Fresh Scripter
Registered: 2002-04-08
Posts: 20
|
Hi,
I need some ideas on how to write a script that only displays the message box if it is the user's first loggon on the day, until the next day...
thanks...
|
|
Top
|
|
|
|
#71081 - 2002-10-24 02:47 AM
Re: script to display a message once a day
|
cigaweed74
Fresh Scripter
Registered: 2002-04-08
Posts: 20
|
Lonkero,
Can you please post a sample script for me....
thanks,
|
|
Top
|
|
|
|
#71087 - 2002-10-24 04:39 AM
Re: script to display a message once a day
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
To me, @YDayNo would seem to be the easiest to piece of info to build this one message a day code around. I would use the registry to store the @YDayNo of the last message viewed. The key\value HKCU\software\Local\messagenumber for NT and higher and use HKLM on Win9x computer.
Basically, if the value store in the registry is less than the current @YDayNo then show the message and then update the registry.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|