I trying to disable my SHIFT+DELETE option on my laptop.For that, I found an answer to use the script(below) in AutoHotkey program to prevent SHIFT+DELETE. It is working perfectly when I am doing locally, But this is not working while accessing through remote control.

KeyWait Shift
Send {Delete}
  • Sounds like an XY problem. Why do you want to disable Shift+Del? – gronostaj Nov 19 '17 at 18:58
  • I am giving access to my computer to someone remotely.So for my need, I just want to explore options. – user819529 Nov 21 '17 at 10:18
  • You haven't actually answered my question, I still don't know what problem you're trying to solve and I have to guess. If you want to prevent people from permanently deleting files, then disabling Shift+Del is not sufficient, one can alternatively right-click a file and click Delete while holding Shift (so you'd have to disable Shift entirely, which is not an acceptable solution I suppose). – gronostaj Nov 21 '17 at 10:39
up vote 0 down vote accepted


+Del::return ; do nothing


Shift & Del::return


#If GetKeyState("Shift","P")


  • How can I bypass SHIFT+DELETE file to some specific location – user819529 Nov 20 '17 at 3:17
  • You can make this hotkey definition context-sensitive by using the #If or the #IfWinExist/#IfWinActive directive. – user3419297 Nov 20 '17 at 7:09

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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