4/11/2024 0 Comments Why windows 10 remap my keyboardYou should replace them with what works for you.īut here’s 2 tips that you might find handy when it comes to adding hotkeys. I’m launching a few directory paths and programs that you might not have, but I included them here so you can see what type of things I’m launching with global hotkeys. Occasionally I still use Vagrant and running Vagrant on Windows requires running it as admin and since I interact with vagrant.exe from inside of WSL, it requires launching a terminal as admin which is why I created this shortcut. The *RunAs allows you to run a program as admin. The second one includes #+t::Run, *RunAs. You’ll notice that I have 2 hotkeys to launch a terminal window. That’s handy for when I want to record courses, since I don’t want my personal settings coming up on video. I have Win + w set to open up a regular Chrome window, but Win + Shift + w opens up Chrome with incognito mode. We can see an example of that in the last line with #+w::Run chrome.exe -incognito. You could think of this as we’re binding Win + c to run the Windows file explorer program and open up a specific directory. D:\courses\deploying Optionally set the program’s arguments.explorer.exe The program you want to run.Run The thing you want to do (part of AHK’s API).:: Setting up a remapping (part of AHK’s API).# Modifier keys(s) ( here’s a full list).Let’s break down the first line: #c::Run, explorer.exe D:\courses\deploying. Also, if your caps lock key has a light, pressing escape will toggle it so you won’t lose that feature. The end effect is both keys will be swapped as if you switched them on your keyboard. In this case, we’re remapping caps lock to escape but we also need to remap escape to caps lock. It’s worth mentioning that you need to bind both sides of the remap. You can view a full list of keys on the official AHK site. To remap keys with AHK, you can add lines such as: KEY_OLD::KEY_NEW. I really like this change, and it only took about a day to get used to it. Since I started using Vim about a month ago, one thing I’ve done is remap my escape key with caps lock. There’s a number of things that are specific to my set up, so let’s break it down because chances are you’re going to end up modifying most of those global hotkeys to work for you. #+t::Run, *RunAs %UserProfile%\AppData\Local\wsltty\bin\mintty.exe -WSL="Ubuntu-18.04" -configdir="%UserProfile%\AppData\Roaming\wsltty" -~ #t::Run, %UserProfile%\AppData\Local\wsltty\bin\mintty.exe -WSL="Ubuntu-18.04" -configdir="%UserProfile%\AppData\Roaming\wsltty" -~ #n::Run, explorer.exe D:\src\sites\nickjanetakis #i::Run, C:\Program Files\GIMP 2\bin\gimp-2.10.exe #c::Run, explorer.exe D:\courses\deploying Lines that start with are considered comments and are ignored by AHK. Remapping Keys and Setting Global Hotkeys You can also choose to name it something else as long as it ends with. So, create a new file called hotkeys.ahk anywhere you want on your computer. You just create your script and then run the AHK file. One nice thing to note is unlike most “modern” applications running the AHK script that we’re going to create in this article only uses 2.5mb of RAM and doesn’t use any idle CPU resources at all.ĪHK is driven by a scripting language and doesn’t require doing anything too crazy to get it up and running. I recommend grabbing the latest stable release which is v1.1.x at the time of writing this article. You can download it from their downloads page. The tool we’re going to use is called Auto Hotkey (AHK) which is an open source tool for Windows that lets you automate all sorts of things, but remapping keys and setting global hotkeys is something it does very well. That means if you press it from anywhere, that action will trigger and in this article we’re going to go over how to set our own custom global hotkeys and even be able to override the ones that come with Windows without having to reboot or touch the Registry. Windows 10 comes with over 50 global hotkey combinations assigned to the Windows key, such as being able to press Win + e to open Windows file explorer, which is quite handy but personally I find most of the preassigned hotkeys to be not that useful.Ī global hotkey is a hotkey that works across your system, and isn’t tied into a specific application. Quick Jump: Downloading Auto Hotkey (AHK) | Creating the AHK Script | Running the AHK Script Updated on March 12th, 2019 in #dev-environment Remap and Set Global Hotkeys on Windows 10 with Auto Hotkey Remapping and overriding global hotkeys can be tricky, but here's an easy way to do it with a tool called AHK.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |