In Windows 11 21H2 and all versions of Windows 10, you can close the Task Manager window by pressing the {Esc} key. This is no longer possible in the revamped Task Manager in Windows 11 22H2 and higher.
However, here’s an AutoHotKey solution that should help.
Workaround
- Download AutoHotKey 2.0 and install it.
- Copy the following lines to Notepad.
#HotIf WinActive("ahk_exe Taskmgr.exe") Esc:: { Send("!{F4}") return }
- Save the file as “tmclose.ahk”. Ensure you save it to a permanent folder.
- Right-click “tmclose.ahk” and choose “Run as administrator”. The script will run in the background.
- Now, open Task Manager and press Esc to see if it closes correctly.
Note:
To automatically run the above AHK script file elevated at logon, use Task Scheduler and configure it to run under your user account and with the highest privileges.
One small request: If you liked this post, please share this?
One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!