Never tried it, but you might want to see if "WTSRegisterSessionNotification" [ http://msdn2.microsoft.com/en-us/library/aa383841.aspx] works in the python win32 API. You can register your window to receive notification automatically when a user logs in, logs out, locks the machine, unlocks, etc.
Steven James On 10/11/07, kNish <[EMAIL PROTECTED]> wrote: > > Hi, > > Need : To track time when a workstation is locked and when it > is unlocked. Store this time. > > My approach : 1st Option > > Trap the key "ctrl+alt+del" or "windows+l". trigger a procedure > to save the time in and time out into a database. > > 2nd Option > > Run a procedure that has a while true loop. In this loop there > can be a event capture device to know that a ctrl+alt+del has been pressed. > > Now run the save to database procedure. > > I think of doing this using python, tkinter, ctype opendesktop. > > > To trap the keys, I need to find a bind function. Is it possible > to do this. Any suggestion. > > > BRgds, > > kNish > > _______________________________________________ > python-win32 mailing list > python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 > >
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32