{"id":76314,"date":"2024-08-12T11:38:12","date_gmt":"2024-08-12T06:08:12","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=76314"},"modified":"2024-08-12T11:43:02","modified_gmt":"2024-08-12T06:13:02","slug":"ahk-close-taskmgr-escape-key","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/ahk-close-taskmgr-escape-key\/","title":{"rendered":"How to Close Task Manager by pressing ESC in Windows 11"},"content":{"rendered":"<p>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.<\/p>\n<p>However, here&#8217;s an AutoHotKey solution that should help.<\/p>\n<h2>Workaround<\/h2>\n<ol>\n<li>Download <a href=\"https:\/\/www.autohotkey.com\/\" target=\"_blank\" rel=\"noopener\">AutoHotKey 2.0<\/a> and install it.<\/li>\n<li>Copy the following lines to Notepad.\n<pre>#HotIf WinActive(\"ahk_exe Taskmgr.exe\")\nEsc::\n{\nSend(\"!{F4}\")\nreturn\n}<\/pre>\n<\/li>\n<li>Save the file as &#8220;tmclose.ahk&#8221;. Ensure you save it to a permanent folder.<\/li>\n<li>Right-click &#8220;tmclose.ahk&#8221; and choose &#8220;Run as administrator&#8221;. The script will run in the background.<\/li>\n<li>Now, open Task Manager and press Esc to see if it closes correctly.<\/li>\n<\/ol>\n<p><strong>Note:<\/strong><\/p>\n<p>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s an AutoHotKey solution that should help. Workaround Download AutoHotKey 2.0 and install it. Copy the &#8230; <a title=\"How to Close Task Manager by pressing ESC in Windows 11\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/ahk-close-taskmgr-escape-key\/\" aria-label=\"Read more about How to Close Task Manager by pressing ESC in Windows 11\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[869],"tags":[762],"class_list":["post-76314","post","type-post","status-publish","format-standard","hentry","category-windows-11","tag-autohotkey"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":9721,"url":"https:\/\/www.winhelponline.com\/blog\/clear-all-notifications-action-center-using-keyboard-shortcut\/","url_meta":{"origin":76314,"position":0},"title":"Clear all notifications in Action Center using Keyboard or Shortcut","author":"Ramesh","date":"June 9, 2019","format":false,"excerpt":"The Action Center in Windows 10 is a slide-out pane where all system notifications are displayed and it has quick action buttons to various Windows settings. Any notification shown on your taskbar will be added to the Action Center. The unread (new) notifications count is also displayed on the Action\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"clear all notifications shortcut action center","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/clear-action-center-shortcut-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/clear-action-center-shortcut-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/clear-action-center-shortcut-2.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/clear-action-center-shortcut-2.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":746,"url":"https:\/\/www.winhelponline.com\/blog\/run-task-manager-administrator-default-w7-vista\/","url_meta":{"origin":76314,"position":1},"title":"How to Start Task Manager As Administrator (Elevated) by Default in Window 7","author":"Ramesh","date":"October 22, 2008","format":false,"excerpt":"Task Manager in Windows Vista and Windows 7 runs in non-elevated mode by default, showing only those processes running under the current user context. To be able to terminate or manage a process running under other user accounts, or to log off other users, you need to elevate Task Manager\u2026","rel":"","context":"In &quot;Windows 7&quot;","block_context":{"text":"Windows 7","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-7\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/taskmgr-elev.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9779,"url":"https:\/\/www.winhelponline.com\/blog\/insert-date-time-in-any-program-using-keyboard-hotkey\/","url_meta":{"origin":76314,"position":2},"title":"Insert Date\/Time in Any Program Using Keyboard Hotkey","author":"Ramesh","date":"June 15, 2019","format":false,"excerpt":"When you're writing content such as technical content, news articles, etc., you may sometimes want to insert the current date or timestamp in a program or editor you're using. In Notepad, you can add the timestamp by pressing the F5 key. Microsoft Office Word, OneNote allows the Alt + Shift\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"insert date\/time in any program","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/autohotkey-insert-date-timestamp.gif?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/autohotkey-insert-date-timestamp.gif?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/autohotkey-insert-date-timestamp.gif?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":166,"url":"https:\/\/www.winhelponline.com\/blog\/clear-recent-files-history-in-a-single-click-in-windows\/","url_meta":{"origin":76314,"position":3},"title":"Clear Recent Files history Using Script in Windows 10","author":"Ramesh","date":"April 7, 2008","format":false,"excerpt":"Did you notice that in Windows it takes exactly half a dozen mouse clicks to clear the recent items history? This post has a VBScript to clear the recent documents history in a single click in Windows 10 and earlier. Clear Recent Files history in Windows In Windows 10, here\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"clear quick access history","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-quickaccess-3.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":18617,"url":"https:\/\/www.winhelponline.com\/blog\/open-file-folder-path-clipboard-using-shortcut\/","url_meta":{"origin":76314,"position":4},"title":"How to Open File or Folder Path from the Clipboard Using Shortcut","author":"Ramesh","date":"September 15, 2020","format":false,"excerpt":"Sometimes we may need to copy a file or folder path from your email or chat window to the clipboard, and open the file or folder manually. Most people open the file or folder by launching the Run dialog, pasting the path from the Clipboard, and clicking OK. If your\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"copy path to clipboard to Run dialog","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/09\/copy-path-clipboard-run-dialog.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":6510,"url":"https:\/\/www.winhelponline.com\/blog\/taskbar-volume-control-not-working-windows-10-sndvol\/","url_meta":{"origin":76314,"position":5},"title":"Taskbar Volume Control Icon does not Work in Windows 10\/11","author":"Ramesh","date":"August 26, 2018","format":false,"excerpt":"Sometimes, the Taskbar volume control icon in Windows may not respond to the mouse click. The slider doesn't appear when you click on the speaker icon, and nothing happens when you right-click on it. The audio may still work in all applications, but only the controls don't open. Due to\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"volume control slider autohotkey","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/volume-osd.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/volume-osd.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/volume-osd.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/76314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=76314"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/76314\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=76314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=76314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=76314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}