Click to See Complete Forum and Search --> : log in notification
josiborb
December 27th, 2006, 12:46 PM
in my office we run windows xp pro. i need to develop a program that will send a message to the engineers secretary when they log into their computers for the first time in the morning. i do not know where to start. can i do this in vb .net? if not then what. if so then where would i begin? any help is much appreciated. TIA
SuperKoko
December 27th, 2006, 04:44 PM
You can use HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Run to specify a program launched when explorer.exe is launched when the user logs in.
Testing whether it's the first time of the day is easy... Simply store somewhere (e.g. in a subkey of HKEY_CURRENT_USER/Software/ in the registry base) the last time the user has logged in, and if the last login date is before today 00h00, it means that the user logs in for the first time of the day.
josiborb
December 28th, 2006, 03:48 PM
is that for the engineers computers or for the secretary's computer?
PeejAvery
December 28th, 2006, 07:56 PM
Since it would be run at log in, it would be for the engineers computer. If you write a program to send a message, then put it in the registry, as suggested by SuperKoko, if will run as soon as the engineer logs in.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.