Thursday, March 30, 2017

Windows: Edit global shortcuts - how it works

If you can type quickly, saving time in Windows with keyboard shortcuts (including keyboard shortcuts, hot keys, or shortcuts). Because others have to go with their mice, trackpads and touch screens first. It is annoying when keyboard shortcuts for important programs do not work because they are already occupied by the operating system. In this article, you will learn how to configure global keyboard shortcuts to your liking. For example, the shortcutworld.com page provides an overview of Windows and program hotkeys.


Open applications quickly with Hotkeys


Set up keystrokes to start your most important applications. First, you need a link to the application. If you do not already have one, select the respective program in Windows Explorer ([Windows key] + [E]) and right-click on the Windows desktop. A menu will appear where you can create shortcut here.


Edit global keyboard shortcuts in the registry


Click the link to the right, and select Properties. Under the shortcut tab, place the cursor in the Key combination box and type the shortcut you want to use. We recommend combinations with [Ctrl], [Alt] and a letter, since these are usually not yet assigned. If you find that your newly created abbreviation conflicts with another one, simply delete the shortcut or enter a new keyboard shortcut. After restarting the system, the error is fixed.


Shut down combinations


If you do not want to guess possible keyboard shortcuts, but want to systematically look in a table, use the free, English-language tool Ethervane ActiveHotkeys. The program is also available in a portable version, which you do not have to install. Unfortunately, ActiveHotkeys only works under 32-bit operating systems.


Customize keyboard shortcuts for specific programs


After the start, ActiveHotkeys probably shows far too much information. Therefore, first make sure you are clear. Click Modifier keys / Clear All Selections. In the upper left corner, select the keyboard combination you want to examine. For example, look at Alt-Ctrl and Alphabetical. These are all combinations with the [Alt] or [Ctrl] keys together with a letter. Select Result list / Show only Inactive Hotkeys.


Now click Test Active Hotkeys on the bottom left, and you'll get a list of available keyboard shortcuts. Unfortunately Windows gives only information about which hotkeys are occupied. The programs that use these key combinations do not come to mind. Therefore, ActiveHotkeys can not display them.


Sharp Keys uses scancodes in the Windows registry to disable keys or to redirect other key functions. This is a method of key management. An alternative is to change the key functions in Windows 8 / 8.1 using group policies. Unfortunately, there is only an editor for these Windows settings in the Pro and Enterprise edition. If you want to change the policies in the standard edition, you need the registration editor.


How this works, we demonstrate by an example to turn off the key combination of the Windows key. Shortcuts such as [Win-E] (Start Explorer) or [Win-D] (switch to the desktop) no longer work. The Windows button alone is still in use. So you can toggle between your desktop and tile surface. To start the registration editor, type [Win-R] and enter the regedit command from the Run menu.


The registration editor opens. In the left window, navigate to the HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer key. If you do not already have the Explorer key, re-create it. To do this, right-click the Policies key, and then click New / Key.


Select the new key and right-click in the right window. In the context menu, choose New / DWORD value (32-bit). Name the new value, NoWinKeys, and give it the value 1. Close the registry editor, then log off and then log back on. The Windows keys no longer work.


If you want to use the keys again, delete the NoWinKeys value from the registry. Without a Windows key, you need alternative ways. If you are in the tile interface, simply type regedit.exe. On the desktop, right-click the start icon and select Run. Type regedit


If you do not want to switch off all shortcuts with the Windows key, you only have to use individual combinations like [Win-S], so there is also a registry trick. Start the Registry Editor with [Win-R] and regedit. In the left pane, select HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Advanced \.


Right-click in the right window, and use New / Value of the expandable string to specify a value called DisabledHotkeys. Double-click the entry you just created, and enter the upper-case letter, which you want to disable as a keyboard shortcut. In our example it is about [Win-S], so write S in the field.


Close the registry editor, and log off once again. Now you can use the keyboard combination [Win-S] within your application programs. By the way, all extended combinations, such as [Win-Ctrl-S], are also disabled.


You can disable up to 22 characters at a time. Type all unwanted letters in the field. For the keyboard combinations [Win-S] and [Win-E], write ES


Disable Windows key by key


The changes so far have been operating system-wide, so they were applied to all programs. But this is not always desirable. Sometimes you want to change certain keys only for a single program. With the free AutoHotkey, you can set your keyboard for each program as desired.


The following example shows how to do this: It is too cumbersome to use the [@GrG] key for the Mail @ sign. In the browser, however, you rarely need a plus sign. So why not put the @ sign on the plus key? In AutoHotkey, you just need two lines of code. Install the tool first. Right-click on a free area of ​​the desktop and choose New / AutoHotkey-Script. Give the file with the suffix ahk a handy label like AtzuPlus.ahk.


Right-click on this file and select Edit Script. A simple editor window appears, into which AutoHotkey has already entered a few data. The rows with the leading semicolons will be deleted. The remaining three lines leave you as they are. AutoShotkey scripts are easy to swap buttons. Write the key to be exchanged - in this case a plus sign - and after two double points the new key function - an @ sign.


+


However, it is not yet clear for which program the change should apply. This is the purpose of the
directive


#ifWinActive NameDesFensters


To find the name with which AutoHotkey identifies the correct window, there is the AU3_Spy tool that comes with AutoHotkey. You will find it in the same folder in which you installed AutoHotkey. Start the program and click the mouse button on your browser.


You will now see an entry in the AU3-Spy under the heading (Windows Title & Class) which begins with ahk_class. If you use the Firefox browser, the name might be called ahk_class MozillaWindowsClass. Add your script now so it looks like this:


#ifWinActive ahk_class MozillaWindowsClass +


If you are using a different browser, adjust the first line accordingly. Save the script and double-click it. You can see the green H of AutoHotkey in the system tray as a sign that the script is active. If you now start your browser and type something into the search input window, you will notice that every time you press the plus key, an @ sign appears.


In all other programs, nothing has changed. If you want to end the script, click the tray icon of AutoHotkey and select Exit. Refer to AutoHotkey documentation for how to re-assign special keys and key combinations. The principle is always the same as in our miniscript.


With AutoHotkey the turn on and off the WinKeys with a keyboard shortcut also works. In this case, you can insert or delete the desired registry entries by script. In the example, inserting is done with [Ctrl-Alt-W] and deleting with [Ctrl-Alt-A]


^! W :: RegWrite REG_DWORD, HKEY_CURRENT_USER, Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer, NoWinKeys, 1 ^! A :: RegDelete HKEY_CURRENT_USER, Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer, NoWinKeys Br>


You'll see, two key functions are assigned here, [Ctrl-Alt-W] and [Ctrl-Alt-A]. In the first case a registry value is written (RegWrite), in the second case it is deleted (RegDelete). The values ​​for deactivation are NoWinKeys and 1.


If you have saved the script, click on it on the right and select Compile Script. Now the script is converted to an .exe file. Click the exe file to the right. From the context menu, choose Properties. On the Compatibility tab, make sure that the program is run as an administrator. Click OK. Double-click the exe file to disable [Win] combinations. The function is active after logout and login.

No comments:

Post a Comment