sendkeys of ALT+CTRL+DELETE keys 
Author Message
 sendkeys of ALT+CTRL+DELETE keys

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.



Tue, 22 Jul 2003 03:04:49 GMT  
 sendkeys of ALT+CTRL+DELETE keys
AFAIK, that combination can't be sent via SendKeys.  It's a sequence that has special meaning to the
OS and is probably only recognized if it actually comes from the keyboard.

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--

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.



Tue, 22 Jul 2003 08:19:46 GMT  
 sendkeys of ALT+CTRL+DELETE keys
The documentation for Sendkeys specifically mentions that that key
combination won't work.


: AFAIK, that combination can't be sent via SendKeys.  It's a sequence that
has special meaning to the
: OS and is probably only recognized if it actually comes from the keyboard.
:
: --
: Michael Harris
: Microsoft.MVP.Scripting
: --

: Please do not email questions - post them to the newsgroup instead.
: --
:
:
:

: > 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.
: >
:



Tue, 22 Jul 2003 11:29:54 GMT  
 sendkeys of ALT+CTRL+DELETE keys
It can't be done with SendKeys, but it can be done somehow.  PC Anywhere
does it.  VNC does it also.

You might want to search the web for VNC (a remote control program).  It has
source code available.  There is a Win32 client and Java client available.
I use the Java client and it has a "Send Ctl-Alt-Del" button that tells the
server to do a Ctl-Alt-Del when clicked.


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.



Tue, 22 Jul 2003 11:34:50 GMT  
 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.



Wed, 23 Jul 2003 01:47:07 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Sendkeys - Ctrl+Alt+Del

2. Trying to use SendKeys() to hit Ctrl-Alt-Del

3. Sendkeys ctrl+alt+del

4. {CTRL}{ALT}{DEL} w/ SendKeys ???

5. {CTRL}{ALT}{DEL} w/ SendKeys ???

6. Trapping Function Keys and Alt-Key Combinations

7. Ctrl + alt + del

8. ctrl + alt + del under win2000

9. CTRL ALT DEL in VBScript

10. CTRL+ALT+DEL

11. disable ctrl alt del

12. CTRL ALT CANC Keystrokes...

 

 
Powered by phpBB® Forum Software