
sendkeys of ALT+CTRL+DELETE keys
hi Narahan,
Ctrl-Alt-Delete brings up the "Close Program" dialog, which allows you to
either "Shut Down" or else to terminate an app...
You can do either of these things via script.
You can shut down by using shell.run with the following:
"RunDll32.exe Shell32.dll,SHExitWindowsEx 0x1"
And, you can terminate an app using the wmi "process.terminate" function.
(For an example, search the archives of this ng).
cheers, jw
Quote:
> Hello:
> I am trying to send "ALT+CTRL+DELETE" using the sendkeys
> program. Nothing is happening. I dont know why. Please help.
> <?xml version="1.0"?>
> <job>
> <script language="Javascript">
> var WshShell = new ActiveXObject("WScript.Shell");
> WScript.Sleep(100);
> WScript.Echo("Ok I am doing it");
> WshShell.SendKeys("^%{DEL})");
> </script>
> </job>
> Would you guys know what could be wrong and why ?
> Thanks
> -Narahari.