![]() Once you have it as a binary, place it in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup so it will run after your computer boots. ![]() You’ll have to compile it yourself, but you shouldn’t really be running random executables you find on the internet, anyway. Std::this_thread::sleep_for(std::chrono::milliseconds(4000)) * Sleep for a few seconds to make sure Explorer has time toĪttempt to register the Office hotkeys, and get blocked by RegisterHotKey(NULL, i, 0x1 0x2 0x4 0x8 | MOD_NOREPEAT, offendingKeys) These map to W, T, Y, O, P, D, L, X, N, and Space, respectively. The upside is that you can rest easy knowing that you’re 1-0 in the fight against Microsoft’s marketing department for control of your keyboard. Just upgraded to Windows 1903 and hit this myself, seems Microsoft decided to assign the keyboard shortcut for the new Office App to Win Ctrl Alt Shift (aka HYPR key combination for QMK users) Changing the open command for this keyboard shortcut to rundll32 resolved the issue for me. It’s not super intrusive, but it’s enough to notice. If your PC takes a second to load the startup apps, it will close any File Explorer windows you have open. The only downside is that because we’re restarting explorer, when this program runs on startup, it will flash the desktop black for a split second before restarting. Explorer doesn’t even get sent a message when you press these key combinations. It cuts off the Office key hotkeys entirely. ![]() This solution works perfectly, and allows the actual Office key or emulated Hyper key to use every shortcut on the keyboard with no risk of opening random Microsoft apps. This deregisters the hotkeys in the process, which allows them to be used by other programs. ALT SHIFT F Add extra config if needed e.g. Run command Set the shortcut you want to use e.g. Choose an action in the config screen e.g. Pre-defined actions are available, or you can create your own. When Explorer starts back up, it tries to register the Office key hotkeys like normal but is blocked because our program already registered them. It only tries to do this on startup, so all we have to do is wait a few seconds and then exit the program. HyperKeys allows you to map any keyboard shortcut to a specific action. It then registers each Office-key related hotkey we want to disable and restarts Explorer. So this solution works like this: The Office-key fixing program closes Explorer, which frees up the hotkeys to be overwritten. And if you restarted Explorer, it would reregister the hotkeys when it starts back up. Unfortunately, closing Explorer isn’t a very viable solution, as you’d be stuck without a usable computer. This means if you can close the program that registered the hotkeys, you can disable them. However, when programs exit, they automatically deregister their hotkeys.
0 Comments
Leave a Reply. |