[python-win32] lock workstation
Steven James
steven.james at gmail.com
Thu Oct 11 17:55:09 CEST 2007
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 <singhai.nish at gmail.com> 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 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20071011/1c01f46a/attachment.htm
More information about the python-win32
mailing list