Page 1 of 1 1
Topic Options
#119982 - 2004-05-23 06:41 AM Unlock event
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
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)

Top
#119983 - 2004-05-23 02:46 PM Re: Unlock event
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
have no idea what you are going for there bud.
you talking about locking/unlocking computer but your semi-batch-semi-pseudo code has nothing to do with that.
_________________________
!

download KiXnet

Top
#119984 - 2004-05-24 06:21 AM Re: Unlock event
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
AFAIK, you cannot programmatically unlock a locked computer except via reboot and maybe logoff commands.
_________________________
There are two types of vessels, submarines and targets.

Top
#119985 - 2004-05-24 09:07 AM Re: Unlock event
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
More importantly.. Why does he need to know when the computer is unlocked or not? If he needs to run application at a odd time, then SRVANY/INSTSRV from the Resource Kit would do.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1240 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.05 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org