Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Pressing CTRL+ALT+DEL to lock computer...

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,37739
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Pressing CTRL+ALT+DEL to lock computer...
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Pressing CTRL+ALT+DEL to lock computer... - 9/13/2006 10:31:43 PM   
  anoop_pv7

 

Posts: 12
Score: 0
Joined: 7/30/2006
Status: offline
I need to press the CTRL+ALT+DEL keys simultaneously to lock the system. I am quoting the script-snippet that i am using to achieve this below:

  Set WshShell = WScript.CreateObject("WScript.Shell")
  WshShell.SendKeys "^(%({DELETE}))" 

Technically (as far as i know...) it has to work, but the code is not pressing the buttons (the code is compiled correctly).

If anyone can help me in this regard, it would be of great use....


Thanks a Lot in Advance,
Anoop P V.
 
 
Post #: 1
 
 RE: Pressing CTRL+ALT+DEL to lock computer... - 9/13/2006 11:57:33 PM   
  crazymatt

 

Posts: 296
Score: 0
Joined: 3/4/2005
From:
Status: offline
It has been discussed before.
I dont belive you are allowed to send "Ctrl+ALt+Del" via a script because of security issues.

Please read the following discussion for more info.

http://www.visualbasicscript.com/searchpro.aspx?phrase=ctrl+alt+delete&author=&forumid=ALL&topicreply=both&message=body&timeframe=%3E&timefilter=0&language=single&top=300&criteria=AND&submitbutton=+OK+

Hope it helps!

/CM

_____________________________

-There is only 10 sorts of people, those who understand binary and those who dont.

(in reply to anoop_pv7)
 
 
Post #: 2
 
 RE: Pressing CTRL+ALT+DEL to lock computer... - 9/14/2006 12:06:53 AM   
  mikeock


Posts: 124
Score: 1
Joined: 6/8/2006
Status: offline
This how it is done!


      

_____________________________

My sig sucks!

(in reply to crazymatt)
 
 
Post #: 3
 
 RE: Pressing CTRL+ALT+DEL to lock computer... - 9/14/2006 12:11:20 AM   
  crazymatt

 

Posts: 296
Score: 0
Joined: 3/4/2005
From:
Status: offline
 There is always away around :-D

Good job!

_____________________________

-There is only 10 sorts of people, those who understand binary and those who dont.

(in reply to mikeock)
 
 
Post #: 4
 
 RE: Pressing CTRL+ALT+DEL to lock computer... - 9/15/2006 6:25:29 PM   
  anoop_pv7

 

Posts: 12
Score: 0
Joined: 7/30/2006
Status: offline
Thanks a lot for the valuable advice.....

Actually, I need to unlock the computer by sending the CTRL+ALT+DEL keys, then enter the password by sending them to the active window (the system is in a network, so it needs to be unlocked), only then can i start the program automatically that i want to.

So the actual problem is "How to unlock an already locked system by pressing CTRL+ALT+DEL keys???"

Thanks in Advance,
Anoop P V

(in reply to crazymatt)
 
 
Post #: 5
 
 RE: Pressing CTRL+ALT+DEL to lock computer... - 9/15/2006 6:47:02 PM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
As CrazyMatt said:

quote:

ORIGINAL: crazymatt

It has been discussed before.
I dont belive you are allowed to send "Ctrl+ALt+Del" via a script because of security issues.

Please read the following discussion for more info.

http://www.visualbasicscript.com/searchpro.aspx?phrase=ctrl+alt+delete&author=&forumid=ALL&topicreply=both&message=body&timeframe=%3E&timefilter=0&language=single&top=300&criteria=AND&submitbutton=+OK+

Hope it helps!

/CM


_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to anoop_pv7)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Pressing CTRL+ALT+DEL to lock computer... Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts