{"id":4543,"date":"2016-11-17T16:54:05","date_gmt":"2016-11-17T11:24:05","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=4543"},"modified":"2019-05-12T02:53:06","modified_gmt":"2019-05-12T02:53:06","slug":"launch-alt-tab-switcher-script-command-line-mouse","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/launch-alt-tab-switcher-script-command-line-mouse\/","title":{"rendered":"Create Shortcut to Launch the Alt-Tab Switcher (for Mouse users)"},"content":{"rendered":"<p>The most useful and frequently used <a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/79869\" target=\"_blank\" rel=\"noopener noreferrer\"><kbd>Alt<\/kbd> + <kbd>Tab<\/kbd> keyboard shortcut<\/a> has been there since the Windows 3.1 era. If you&#8217;re are primarily a mouse user and want to open the <kbd>Alt<\/kbd> + <kbd>Tab<\/kbd> switcher screen using shortcut or script, this post tells you how to do that in Windows 7 and higher, which includes Windows 10.<!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/switcher-0.png\" alt=\"launch alt-tab switcher using shortcut\" width=\"220\" height=\"165\" class=\"alignright size-full wp-image-4544\" \/><\/p>\n<p>Windows Vista introduced a fancier version of the task switcher named Flip3D, which is invoked using <kbd>WinKey<\/kbd> + <kbd>Tab<\/kbd> keystroke or by clicking on the Taskbar shortcut. Flip3D was dropped in Windows 8 and higher.<\/p>\n<p>In Windows 8, <kbd>WinKey<\/kbd> + <kbd>Tab<\/kbd> lists only the metro apps. Whereas in Windows 10, it opens the &#8220;Task View&#8221; mode wherein you can switch windows, as well as create new <a href=\"https:\/\/www.winhelponline.com\/blog\/make-window-visible-all-virtual-desktops-windows-10-taskview\/\">virtual desktops<\/a> or switch to an existing virtual desktop.<\/p>\n<p>Although the fancy task switchers &#8220;Flip3D&#8221; and &#8220;Task View&#8221; came into existence, many users still prefer the classic window switcher to change program windows &#8212; due to the force of habit, or because it&#8217;s much faster.<\/p>\n<h2>Launch Alt + Tab switcher using Script or Command-line<\/h2>\n<p>Both Flip3D and Task View have a Taskbar shortcut by default, but the Alt-Tab switcher doesn&#8217;t have one. Here is how to create it.<\/p>\n<h3>Method 1: Using Windows Script<\/h3>\n<p>Copy the following lines to Notepad and save the file with a &#8220;.vbs&#8221; extension, say &#8220;switcher.vbs&#8221;.<\/p>\n<pre><code>Set WshShell = WScript.CreateObject(\"WScript.Shell\")\r\nWshShell.SendKeys \"^%{TAB}\"<\/code><\/pre>\n<p>Create a shortcut to the script by prefixing &#8220;wscript.exe&#8221; as below:<\/p>\n<pre>wscript.exe d:\\scripts\\switcher.vbs<\/pre>\n<p>Customize the shortcut icon as desired.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/switcher-2.png\" alt=\"launch alt-tab switcher using shortcut\" width=\"292\" height=\"357\" class=\"alignnone size-full wp-image-4546\" \/><\/p>\n<p>You can pin the shortcut to the Start menu or Taskbar if you so prefer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/switcher-1.png\" alt=\"launch alt-tab switcher using shortcut\" width=\"239\" height=\"131\" class=\"alignnone size-full wp-image-4545\" \/><\/p>\n<p>Double-clicking the script or clicking its Taskbar icon would open the Alt-Tab switcher and make it remain on the screen until you select a window or dismiss the switcher using mouse click.<\/p>\n<p>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/alttab4.png\" alt=\"alt+tab transparent\" width=\"600\" height=\"337\" class=\"aligncenter size-full wp-image-3214\" \/>\n<\/p>\n<h3>Method 2: Using NirCmd<\/h3>\n<p>If you&#8217;re using the excellent, multipurpose automation tool <a href=\"https:\/\/www.winhelponline.com\/blog\/tag\/nircmd\/\">NirCmd<\/a>, you can create a shortcut with the following target:<\/p>\n<pre>nircmd sendkeypress ctrl+alt+tab<\/pre>\n<p>Customize the shortcut icon, and place or pin the shortcut wherever you want.<\/p>\n<p>The above script and the NirCmd command-line methods send the keystroke: <kbd>Ctrl<\/kbd> + <kbd>Alt<\/kbd> + <kbd>Tab<\/kbd>.<\/p>\n<h3>Alt + Tab Vs. Ctrl + Alt + Tab<\/h3>\n<p>When you press <kbd>Alt<\/kbd> + <kbd>Tab<\/kbd> in the Keyboard, with the <kbd>Alt<\/kbd> key unreleased, the window switcher remains on the screen. Releasing the <kbd>Alt<\/kbd> key would dismiss the window switcher, and the last application that you accessed comes to the front with active window focus on it.<\/p>\n<p>Whereas, pressing <kbd>Ctrl<\/kbd> + <kbd>Alt<\/kbd> + <kbd>Tab<\/kbd> launches the window switcher and keeps it on the screen even if the keys are released. The switcher remains on the screen until the user makes a selection, presses <kbd>{ESC}<\/kbd> or clicks on an area that&#8217;s outside the switcher grid.<\/p>\n<p><strong>Related article:<\/strong> This post <a href=\"https:\/\/www.winhelponline.com\/blog\/make-alt-tab-background-transparent\/\">How to Make Alt + Tab Background Fully Transparent?<\/a> may be of interest to you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The most useful and frequently used Alt + Tab keyboard shortcut has been there since the Windows 3.1 era. If you&#8217;re are primarily a mouse user and want to open the Alt + Tab switcher screen using shortcut or script, this post tells you how to do that in Windows 7 and higher, which includes &#8230; <a title=\"Create Shortcut to Launch the Alt-Tab Switcher (for Mouse users)\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/launch-alt-tab-switcher-script-command-line-mouse\/\" aria-label=\"Read more about Create Shortcut to Launch the Alt-Tab Switcher (for Mouse users)\">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_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[335,480],"class_list":["post-4543","post","type-post","status-publish","format-standard","hentry","category-windows","tag-nircmd","tag-scripts"],"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":4543,"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":4607,"url":"https:\/\/www.winhelponline.com\/blog\/disable-switch-virtual-desktop-mouse-hover-task-view-interface\/","url_meta":{"origin":4543,"position":1},"title":"Disable Virtual Desktop Switching on Mouse Hover in the Task View Interface","author":"Ramesh","date":"November 18, 2016","format":false,"excerpt":"Virtual Desktops feature in Windows 10 provides a nice way to keep your program windows organized. You can move a set of work-related programs to a separate virtual desktop, having your entertainment and social networking stuff in another virtual desktop. When required, you can also make a program window or\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":"disable virtual desktop switching on mouse hover","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/09\/taskview-show-window-all-vdesktops.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/09\/taskview-show-window-all-vdesktops.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/09\/taskview-show-window-all-vdesktops.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3211,"url":"https:\/\/www.winhelponline.com\/blog\/make-alt-tab-background-transparent\/","url_meta":{"origin":4543,"position":2},"title":"How to Make Alt+Tab Background Fully Transparent","author":"Ramesh","date":"June 22, 2016","format":false,"excerpt":"On Windows 10, when you use Alt + Tab to switch windows, the grid background is black by default, and the background windows and desktop icons are displayed as shown in this image. This post unveils some hidden registry settings to configure how the Alt+Tab switcher displays. (Desktop icons shown\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":"alt+tab transparent","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/alttab1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/alttab1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/alttab1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3178,"url":"https:\/\/www.winhelponline.com\/blog\/winkey-e-shortcut-target-change\/","url_meta":{"origin":4543,"position":3},"title":"How to Change Win + E Shortcut Target in Windows 10\/11","author":"Ramesh","date":"June 1, 2016","format":false,"excerpt":"The WinKey + E keystroke, as well as the File Explorer shortcut on the taskbar, open Quick access view by default. You can change the default folder to This PC using Folder Options General tab, or make it open to the Downloads\u00a0folder using a registry method. But, how to make\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":"File Explorer shortcut","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/winkey-e-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4728,"url":"https:\/\/www.winhelponline.com\/blog\/create-shortcut-open-task-manager-startup-tab-directly\/","url_meta":{"origin":4543,"position":4},"title":"How to Open Task Manager to a Specific Tab Directly","author":"Ramesh","date":"December 2, 2016","format":false,"excerpt":"Task Manager opens to Processes tab by default in Windows 8 and 10. If you want it to open to the Startup tab directly, this article tells you how to do it. Windows 10 v1903 Task Manager update In version 1903 and higher, you can set a default tab in\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":"task manager default tab","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/task-manager-default-tab.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":26081,"url":"https:\/\/www.winhelponline.com\/blog\/master-list-keyboard-shortcuts-windows-11\/","url_meta":{"origin":4543,"position":5},"title":"Master List of Keyboard Shortcuts in Windows 11","author":"Ramesh","date":"February 2, 2022","format":false,"excerpt":"This page has the complete list of keyboard shortcuts for Windows 11. Keyboard Shortcuts Windows 11 (General) Windows Logo key (Winkey) Command Prompt Dialog box File Explorer Virtual Desktops Taskbar Settings Accessibility Windows 11 Master List of Keyboard Shortcuts General Shortcuts Press this key To do this Ctrl + X\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/4543","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=4543"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/4543\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=4543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=4543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=4543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}