Re: How do I simulate Ctrl+Alt+Del?
From: Lawrence Tse (tsechl_at_hotmail.com)
Date: 11/07/04
- Next message: xmsatellite: "Re: floopy startup"
- Previous message: Steve Duff [MVP]: "Re: Help! "There was an internal error and one of the windows.....""
- In reply to: KD: "How do I simulate Ctrl+Alt+Del?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 7 Nov 2004 10:41:08 +0800
Do you means that your script really need to interact with the UI? As what
Pegasus said, if the script is independent to the UI, or even user
information, there should have no problem even the user is not logged on.
However, if you really want to know how to simulate key stroke, even this
does not work for your case, you can use the following WSH code by saving
them into *.VBS file and execute:
==============
Dim oWsh
Set oWsh = CreateObject("WScript.Shell")
oWsh.sendKeys "^{ESC}" REM This will send a {Ctrl}+{Escape} to your
Explorer and pop up your start menu
==============
Please refer to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthsendkeys.asp
PS: but I tried, needly everything special key will work except the
combination of {Ctrl} + {Alt} + {Del}, as Microsoft seems like to protect
this keystroke from easy execution.
-- Lawrence Tse MCT, MCSE:Messaging, MCSA:Messaging, MCDBA, MCSD, MCSE+Internet, MCP+Site Building "KD" <KD@discussions.microsoft.com> wrote in message news:F293AAEE-9C16-46AF-9046-59AA60F1A545@microsoft.com... >I need to execute some tasks on my servers during night. My scripts need >the > windows session to be open. The problem is that the sessions on the > servers > are locked during night (or whenever we are not using them). > > I tried to put my script in the task scheduler, but it didn't run when it > was supposed to, the scheduler says that it couldn't start, probably > because > the session was locked. > > What I need is a way to simulate the Ctrl+Alt_Del buttons to open/unlock > the > session so I could run my script on my server. Anybody got an idea? > > Thanks for helping, > > KD > mvectra@email.com
- Next message: xmsatellite: "Re: floopy startup"
- Previous message: Steve Duff [MVP]: "Re: Help! "There was an internal error and one of the windows.....""
- In reply to: KD: "How do I simulate Ctrl+Alt+Del?"
- Messages sorted by: [ date ] [ thread ]