I need to you to create a service that will check the local computers idle time using something like getlastinput().
I need source code, and an .msi installer so that this can be pushed out over the network.
The service should be installed to run at startup of the PC - at startup it should connect to a network share to download settings ( Nobody but administrators should be able to stop the service.
The service should log the username and time the user logs in. It should then check every 5 minutes to see if there has been any activity. If not, it should set a flag of some type. It should continue to keep track of the time the user is inactive. Once the user resumes activity, the flag/counter should be reset and then record the downtime to a database (username, time stamp, length of inactivity in minutes). I don't want to write to the DB every 5 minutes, only when they login, are inactive, and when they log out or shut down.
In addition I need this service to kick off some vbscripts during the day. At each 5 minute check it should run a vbscript specified in the options (no need to interact, just start the script). Also it needs to be able to kick off a different script when the user has hit the inactivity threshold.
Options to pull from a text file on server:
Connection string to MS SQL database
Initial inactivity threshold (for instance if set to 15, don't record inactivity less than 15 minutes)
VBScript to run every 5 min
VBScript to run on inactivity
The database is very simple, it has only one table that you need to worry about and that only has 5 columns:
Activity (small int) 1=login 2=inactivity 3=logout
Inactivity (small int) Length of inactivity
16 freelancere byder i gennemsnit $432 på dette job
I have very recently worked on a solution and is almost ready as per your req. stated,Please open up the PM for the exact requirement and working of the segment you need.
i have done same thing in C++. just need to migrate whole code in C# if you want. i need a couple of hours to do this. if you are interested then i will send you a sample code in C++.
Hi, I'm a partime freelancer. And this task seems interesting to me. I would like to work on this. I have already done one similiar application for my own purpose.