{"id":3116,"date":"2016-05-15T18:43:02","date_gmt":"2016-05-15T13:13:02","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=3116"},"modified":"2023-06-18T09:22:46","modified_gmt":"2023-06-18T03:52:46","slug":"list-all-hotkeys-used-shortcuts-script","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/list-all-hotkeys-used-shortcuts-script\/","title":{"rendered":"List All Assigned Shortcut Keys for Shortcuts on Windows"},"content":{"rendered":"<p>If you&#8217;re not able to assign a particular <a href=\"https:\/\/www.winhelponline.com\/blog\/regjump-quickly-jump-registry-path-clipboard\/\">hotkey<\/a> combination for a shortcut, then it may have already been registered. But which shortcut is currently <a href=\"https:\/\/www.winhelponline.com\/blog\/assign-hotkey-windows-10-start-menu-shortcuts\/\">using the hotkey<\/a>, and from which folder path? You can find it out by running the script attached to this article.<!--more--><\/p>\n<h2>ListHotKeys.vbs Script<\/h2>\n<p>This script recursively searches for shortcuts in the Desktop and Start menu (per-user and per-machine locations), Quick Launch, Taskbar &#8211; User Pinned &amp; all of their subfolders, and shows the list of shortcuts with hotkey assignments in a popup window as in the image below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/05\/hotkeys-list3.png\" width=\"483\" height=\"748\" class=\"alignnone size-medium\" \/><\/p>\n<p><i>This script can&#8217;t get the hotkeys for .URL (Internet Shortcuts). That feature may be implemented in the future.<\/i><\/p>\n<ul>\n<li>Download the script <a href=\"https:\/\/gist.github.com\/winhelponline\/0f0d925a8dbf028d762e5ca862c6690e\/archive\/3183a1a2fb64627b8f0ced8db39ee334d41f3d1d.zip\">ListHotKeys.vbs<\/a> (zipped)<\/li>\n<li>Extract the contents to a folder.<\/li>\n<li>Double-click the script ListHotKeys.vbs to view the list of hotkeys currently assigned in your user account.<\/li>\n<\/ul>\n<h3>INFO: Contents of the script<\/h3>\n<p>So here are the contents of the script to list shortcut hotkeys.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/winhelponline\/0f0d925a8dbf028d762e5ca862c6690e.js\"><\/script><br \/>\n<noscript><\/p>\n<pre><code>\r\n\r\n'File: ListHotKeys.vbs\r\n'Script Info: Obtains the List of Shortcuts With a Hotkey assigned\r\n'Author: Ramesh Srinivasan, for The Winhelponline Blog\r\n'https:\/\/www.winhelponline.com\/blog\/list-all-hotkeys-used-shortcuts-script\/\r\n'Created on May 5 2016\r\n'Modified on May 19 2016\r\n'Reviewed on Jun 18 2023\r\n'URL: https:\/\/www.winhelponline.com\/blog\r\n\r\nOption Explicit\r\nDim objFSO: Set objFSO = CreateObject(\"Scripting.FileSystemObject\")\r\nDim WshShell: Set WshShell = WScript.CreateObject(\"WScript.Shell\")\r\nDim arrFolders, objFolder, fldr, colfiles, colFolders\r\nDim objFile, objSubFolder, oShellLink, strHotKey\r\n\r\narrFolders = Array ( _\r\nWshShell.SpecialFolders(\"AllUsersDesktop\") _\r\n, WshShell.SpecialFolders(\"Desktop\") _\r\n, WshShell.SpecialFolders(\"AllUsersStartMenu\") _\r\n, WshShell.SpecialFolders(\"StartMenu\") _\r\n, WshShell.SpecialFolders(\"AppData\") & _\r\n\"\\Microsoft\\Internet Explorer\\Quick Launch\" _\r\n)\r\n\r\nFor Each fldr In arrFolders\r\n\tIf objFSO.FolderExists (fldr) Then Call GetHotKeys (fldr)\r\nNext\r\n\r\nSub GetHotKeys (strFolder)\r\n\tSet objFolder = objFSO.GetFolder(strFolder)\r\n\tSet colFiles = objFolder.Files\r\n\tFor Each objFile In colFiles\r\n\t\tIf LCase(objFSO.GetExtensionName(objFile.Name)) = \"lnk\" Then\r\n\t\t\tSet oShellLink = WshShell.CreateShortcut(objFile.Path)\r\n\t\t\tIf Trim(oShellLink.Hotkey) <> \"\" Then\r\n\t\t\t\tstrHotKey = strHotKey & \"[\" & Trim(oShellLink.Hotkey) & _\r\n\t\t\t\t\"]\" & vbCrLf & objFile.Path & vbCrLf & vbCrLf\r\n\t\t\tEnd If\r\n\t\tEnd If\r\n\tNext\r\n\tSet colFolders = objFolder.SubFolders\r\n\tFor Each objSubFolder In colFolders\r\n\t\tGetHotKeys(objSubFolder)\r\n\tNext\r\nEnd Sub\r\n\r\nWshShell.PopUp strHotKey,,\"Hotkeys Curently in Use by Shortcuts\", 64\r\nSet WshShell = Nothing\r\nSet objFSO = Nothing\r\n\r\n<\/code><\/pre>\n<p><\/noscript><\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/master-list-keyboard-shortcuts-windows-10\/\">Windows 10 Keyboard Shortcuts (Complete List)<\/a><\/div>\n<hr \/>\n<h3>HotKeysList from Nirsoft<\/h3>\n<p>The HotKeysList from Nirsoft lists out all the hotkeys that are assigned currently &#8211; via shortcuts, website shortcuts (.url), and also the hotkeys used by the AutoHotKey script(s). However, one shortcoming of this utility is that it doesn&#8217;t show the corresponding file name (.LNK, or .URL) of a hotkey.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24113\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/05\/hotkeyslist-nirsoft.png\" alt=\"hotkeyslist\" width=\"700\" height=\"725\" \/><\/p>\n<p>Get HotKeysList from <code>http:\/\/www.nirsoft.net\/utils\/hot_keys_list.html<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re not able to assign a particular hotkey combination for a shortcut, then it may have already been registered. But which shortcut is currently using the hotkey, and from which folder path? You can find it out by running the script attached to this article.<\/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":[876,480],"class_list":["post-3116","post","type-post","status-publish","format-standard","hentry","category-windows","tag-gist","tag-scripts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":29797,"url":"https:\/\/www.winhelponline.com\/blog\/hotkey-show-hide-navigation-bar-explorer\/","url_meta":{"origin":3116,"position":0},"title":"Hotkey to Show\/Hide Navigation Bar in File Explorer","author":"Ramesh","date":"November 13, 2022","format":false,"excerpt":"The File Explorer in Windows 10 includes the keyboard shortcuts to enable or disable the Preview pane and the Details pane. However, there is no such shortcut available to toggle the navigation pane. So let's see how to overcome this limitation using AutoHotKey. Hotkey to Show\/Hide Navigation Bar in File\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":"","src":"","width":0,"height":0},"classes":[]},{"id":54807,"url":"https:\/\/www.winhelponline.com\/blog\/create-shortcut-lnk-non-existent-target\/","url_meta":{"origin":3116,"position":1},"title":"How to Create a Shortcut (.lnk) to a Non-Existent Target","author":"Ramesh","date":"June 19, 2023","format":false,"excerpt":"There are situations where you need to create a shortcut (.lnk) to a target that doesn't exist on the computer. For instance, you want to create a set of shortcuts for using them on another computer. However, the Create Shortcut wizard in Windows will not allow you to create a\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"create shortcut to a file that does not exist","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/create-shortcut-non-existent-target-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/create-shortcut-non-existent-target-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/create-shortcut-non-existent-target-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1694,"url":"https:\/\/www.winhelponline.com\/blog\/assign-hotkey-windows-10-start-menu-shortcuts\/","url_meta":{"origin":3116,"position":2},"title":"How to Assign HotKeys for Windows 10 Start Menu Shortcuts","author":"Ramesh","date":"February 29, 2016","format":false,"excerpt":"Here is a quick tip for users who've just upgraded to Windows 10 and wondering how to assign shortcut keys for Start menu shortcuts in All apps, as well as for Pinned items. Click Start, click All apps. Locate and right-click the shortcut for which you want to assign a\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":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-sm-hotkeys-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-sm-hotkeys-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-sm-hotkeys-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":5112,"url":"https:\/\/www.winhelponline.com\/blog\/capture-screen-region-snippingtool-clip-shortcut-windows-10\/","url_meta":{"origin":3116,"position":3},"title":"Snipping Tool Command-line to Capture Screen Region","author":"Ramesh","date":"January 11, 2017","format":false,"excerpt":"Windows 10 (Creators Update and higher) and Windows 11 includes the capability to capture a screen region using Win + Shift + S shortcut key, as mentioned in the article Screenshot a Portion of the Screen [Winkey+Shift+S]. Contents Create Snipping Tool Shortcut to Capture Screen Region Using Snipping Tool Issue:\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":"snippingtool.exe \/clip command-line","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/snipping-tool-clip-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/snipping-tool-clip-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/snipping-tool-clip-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":8806,"url":"https:\/\/www.winhelponline.com\/blog\/turn-off-monitor-shortcut-command-windows\/","url_meta":{"origin":3116,"position":4},"title":"Turn Off Monitor Using Shortcut or Command-line in Windows","author":"Ramesh","date":"April 23, 2019","format":false,"excerpt":"My new Samsung Curved monitor has the power button on the rear end, perhaps for aesthetic purposes. I have been using monitors that have controls on the front or underneath the bezel all these years. Now, with the new monitor, I find it a little bit inconvenient to reach out\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"controlmymonitor turn off primary monitor using desktop shortcut","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/controlmymonitor.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/controlmymonitor.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/controlmymonitor.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":18617,"url":"https:\/\/www.winhelponline.com\/blog\/open-file-folder-path-clipboard-using-shortcut\/","url_meta":{"origin":3116,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3116","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=3116"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3116\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=3116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=3116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=3116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}