Lock the computer with nncron?

nnCron and nnCron LITE discussion

Lock the computer with nncron?

Postby semko » Mon, 11 Feb 2013, 18:14

Is there a way to lock the computer with nncron? I tried it with SEND-KEYS: "$l" (WIN + l) but that did not work. I'm using Win7 64bit, nncron v1.93b10.

Thanks
semko
 
Posts: 46
Joined: Sat, 08 Oct 2005, 17:42
Location: Germany

Re: Lock the computer with nncron?

Postby VoidVolker » Tue, 12 Feb 2013, 14:03

Code: Select all
: LOCK-PC   \ ( -- ) \ Lock PC. N/a in console.
  S" rundll32.exe user32.dll,LockWorkStation" START-APP
;
95% вопросов уже обсуждались на форуме или ответы на них есть в мануале.        nnCron 1.93 b15.exe
Как правильно задавать вопросы.
User avatar
VoidVolker
Site Admin
 
Posts: 2898
Joined: Tue, 25 Apr 2006, 17:56

Re: Lock the computer with nncron?

Postby semko » Thu, 14 Feb 2013, 17:02

Works perfectly. Thank you very much.
semko
 
Posts: 46
Joined: Sat, 08 Oct 2005, 17:42
Location: Germany

Re: Lock the computer with nncron?

Postby gavind » Sat, 16 Feb 2013, 18:16

Sorry, I was not able to follow. How do we apply that code?
gavind
 
Posts: 11
Joined: Sat, 08 Dec 2012, 23:11

Re: Lock the computer with nncron?

Postby VoidVolker » Sat, 16 Feb 2013, 21:47

Code: Select all
#( Task_224516022013
NoActive
SingleInstance
Action:
S" rundll32.exe user32.dll,LockWorkStation" START-APP
)#


Code: Select all
<%
: LOCK-PC   \ ( -- ) \ Lock PC. N/a in console.
  S" rundll32.exe user32.dll,LockWorkStation" START-APP
;
%>

#( Task_224616022013
NoActive
SingleInstance
Action:
LOCK-PC
)#

Or place code:
Code: Select all
: LOCK-PC   \ ( -- ) \ Lock PC. N/a in console.
  S" rundll32.exe user32.dll,LockWorkStation" START-APP
;

in a file lock.spf and install it like plugin.
95% вопросов уже обсуждались на форуме или ответы на них есть в мануале.        nnCron 1.93 b15.exe
Как правильно задавать вопросы.
User avatar
VoidVolker
Site Admin
 
Posts: 2898
Joined: Tue, 25 Apr 2006, 17:56


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 1 guest

cron