Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like AppsKey + Delete to simulate LCtrl+LAlt+Del, and I thought the following script would do it, but it doesn't:

AppsKey & Delete::  
SendInput {LAlt down}{LCtrl down}{Delete}{LAlt up}{LCtrl up} 
MsgBox "You pressed AppsKey & Delete"

Any thoughts why?

Note 1:: The MsgBox command above works though and I get a window.

Note 2:: I tested this on Windows 7 64bit and Windows XP 32bit with no success.

share|improve this question
Try removing the spaces between adjacent braces. Also, can you verify that the script is actually executed when you hit AppsKey + Delete? (Put a messagebox in there to check) – Breakthrough Aug 29 '11 at 13:24
Thanks @Breakthrough, I just updated the post. The MsgBox statement works, but AutoHotkey doesn't seem to send LCtrl+LAlt+Del – Amelio Vazquez-Reina Aug 29 '11 at 13:51
up vote 2 down vote accepted

Read the SendInput and Send help document, in some part says the following:

the operating system does not allow simulation of the CTRL-ALT-DELETE combination, doing something like Send ^!{Delete} will have no effect

I think you need to find an alternative way to block the system, maybe using some Win API function call.

Link of the fr doc:

Link of the us doc:

share|improve this answer
Thanks @voodoomsr, do you know by any chance what ^!means in Send ^!{Delete}? – Amelio Vazquez-Reina Aug 29 '11 at 15:01
Yes, !=Alt and ^=Ctrl – mjsr Aug 29 '11 at 15:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.