Can I connect execution of a part of code with the event of unlock the computer? In another word, I want to add the following part in the login script:

DO
Sleep 3
IF user looked unlock his computer
SHELL "%COMSPEC% /E:1024 /C %WINDIR%\slide.pps"
ENDIF
$X=$X+1
Until $X=9600 ;9600=8 which is the working hours per day.

Is there any registry key changed if the user locked & unlocked his computer?

Thank you.


Edited by attiahia (2004-05-23 07:30 AM)