Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • how to crop a screenshot on Mac Tutorials
  • 5 Ways To Get Free Robux 2022 Gaming
  • Best hp rpn calculator 2020

    Best hp rpn calculator 2020. 1 - HP Prime Graphing Calculator Top Reviews Fantastic calculator that got me through my e

  • How to Add a Wireless or Network Printer in Windows 10 Windows 10
  • How To Download Your Twitch Streams 2021 Computer Tips
  • How to Open the On-Screen Keyboard on Mac macOS
  • Emby Vs Plex, Which Is Better?
  • Authy vs Google Authenticator Which one is Better? How-To

Disable Keyboard Keys in Windows with AutoHotKey

Posted on October 8, 2020 By blog_786 No Comments on Disable Keyboard Keys in Windows with AutoHotKey

When you sit at the keyboard, there is not so much unpleasantness as accidentally pressing the intermittent key. For example, the Windows key can minimize some full-screen applications.

After doing that, pressing the Alt key can sometimes block all keystrokes completely. If you accidentally hit these keys without realizing it, it can cause serious inconvenience and confusion.

Many of the common solutions to disable key entry in Windows are outdated. For example, Simple Disable Key is no longer free software. Both SharpKeys and KeyTweak are not officially supported by the latest versions of Windows. So what do you do when you have no options? You build yourself!

AutoHotKey” />

But don’t be afraid – it’s very simple. In this article, we’ll show you how you can disable any key you want using a free Windows app called AutoHotKey The best part is that it doesn’t require a complicated setup or reboot to take effect.

Download and install AutoHotKey

The first step to disabling keyboard input on your Windows computer is to download a program called AutoHotKey . The link to the latest version will be at the top of the page in a blue button. After downloading AutoHotKey, run the installer.

– /

AutoHotKey” />

Proceed with the installation using the default options shown above. When the installation is complete, you can close it completely. We don’t need to run AutoHotKey yet.

Build your own AutoHotKey script

Now that you’ve downloaded AutoHotKey, it’s important to understand what it does. AutoHotKey allows you to create your own scripts that it will compile and run. Think of AutoHotKey as a lightweight programming language specifically designed to automate and create Windows keyboard shortcuts .

Learning a programming language is tricky, but we’re here to make it easy for you to use AutoHotKey‘s capabilities to disable any key input on your keyboard.

Choose your keys

Choose your keys

The first step is to choose which keys you want to disable. Go to the AutoHotKey documentation site to find a list of all supported keys .

AutoHotKey” />

For this example, we want to disable the Caps Lock key. On this page, you can see that AutoHotKey refers to this key as “CapsLock”. The left column shows the name (s) of the link, and the right column shows which key it matches.

Open a text editor

Open a text editor

Next, open any text editor. It may even be the Notepad that we will be using. In a blank document, enter the key reference name followed by “:: return”.

This is what our Caps Lock example looks like:

AutoHotKey” />

Can you believe this is the only line of code needed to disable the key? If you decide you want to disable more than one, you can repeat the same single line of text on a new line for each additional key.

Save your script

Save your script

The next step is to save the script so that it can be run. You will want to choose a permanent location for this, perhaps not on your desktop, because I’ll show you how to make this script run on startup later.

AutoHotKey” />

In this example, we have selected the “Scripts” folder in our documents. After choosing the location to save, change the “File Type” to “All Files”. Then enter a filename of your choice and be sure to add the extension “.ahk”. It is very important.

Saving a file as AHK lets your system know that it is meant to be compiled and run using AutoHotKey

Run your AutoHotKey script

After saving the AHK file, navigate to where you saved it in Windows Explorer . You should see that the file icon is a piece of paper with an “H” on it, which means it is associated with an AutoHotKey

AutoHotKey” />

Double click the file. You may not notice anything, but you should see an AutoHotKey icon in the taskbar of the taskbar.

AutoHotKey” />

When you see it, it may be hidden, so you will need to click the up arrow icon to show the hidden taskbar icons in this case.

Now try using the key you disabled. It works? If not, then you have successfully disabled the key! If so, you may have done something wrong. Read the instructions carefully and try again.

Control your AutoHotKey software

Right-clicking on the AutoHotKey icon in the taskbar of the taskbar opens the following menu:

AutoHotKey” />

It is worth touching on two important parameters: “Reload this script” and “Suspend hotkeys”.

There may come a time when you want to edit the AutoHotKey script while it is actively running. Maybe you want, for example, to add another key to lock. After saving the changes to the AHK file, select the Reload this script option. This will allow you to download the changes to the script without having to close and reopen the file.

If you ever want AutoHotKey not to block any keys, select the Pause Hotkeys option. The AutoHotKey taskbar icon changes from “H” to “S” to indicate that hotkeys are locked. To re-enable all hotkeys, repeat the same action again.

The script runs on startup

Now that your script is working, you may decide that it is so important that you want it to automatically start with Windows. It’s easy to do.

AutoHotKey” />

Press Windows Key + R to open the Run window. Enter “% appdata%” in it and press Enter. You will be taken to the “Roaming” folder inside “AppData”.

Here navigate through the following folders: Microsoft Windows Start Programs Startup. In another Windows Explorer menu, navigate to the folder where you saved the AutoHotKey script. Right-click it and choose Create Shortcut. This will create a shortcut to the file in the same folder.

Drag this shortcut to your Startup folder.

AutoHotKey” />

Adding a script to startup in this way allows you to make changes to the original file location rather than navigating to that folder each time. If you make frequent edits, it will save a lot of time.

That’s all it takes. With one simple line in your AutoHotKey script, you can disable any standard key on your keyboard and get rid of hours of headache. Don’t search the Internet for a simple and free solution to this problem, follow this guide and make it yourself!

–

Share this:

  • Twitter
  • Facebook
How-To

Post navigation

Previous Post: How to Use If and Nested If Statements in Excel
Next Post: Automatically Scroll Down Pages in Your Web Browser

Related Posts

  • How to Remove Audio From Video on Windows 10 How-To
  • How to Get iPhone SE 2020 Wallpapers on any device How-To
  • How do I fix chromecast source not supported? How-To
  • A Simple Trick to Get 50% Discount on Audible for Three Months How-To
  • How To Create Your Own Personal Stickers On WhatsApp (Android) How-To
  • Best Ways to Send Large Files above 2 GB Over the Internet How-To

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • How to reset your SIM card
  • This Simple Trick Lets You Play YouTube in the Background on iOS
  • How to go Back to the old YouTube Layout (2013)
  • How to Bypass Chromecast DNS and Circumvent Geo Blocking
  • 5 Cool Websites to Find Good Movies and TV Shows on Netflix
DMCA.com Protection Status

Recent Posts

  • MailTag: Real-time Email Tracking, Made Easy
  • Pokemon Sleep: what is it and how to play
  • How to Respond to Messages on Instagram (Mobile and PC)
  • How to reset your SIM card
  • This Simple Trick Lets You Play YouTube in the Background on iOS

Recent Comments

  1. This Simple Trick Lets You Play YouTube in the Background on iOS on YouTube Not Working? Here Are Quick Fixes To Try
  2. How to Bypass Chromecast DNS and Circumvent Geo Blocking on 5 Cool Websites to Find Good Movies and TV Shows on Netflix
  3. 5 Cool Websites to Find Good Movies and TV Shows on Netflix on check netflix video quality internet explorer
  4. SmartDNS vs VPN “What’s the Difference?” on How to Watch Apple TV on Roku
  5. How to go Back to the old YouTube Layout (2013) on 10 Things to Check Before Publishing a YouTube Video
  • How To Change Default Download Location In Windows 10 Windows 10
  • How to Move or Transfer Email Accounts from One ISP to Another Computer Tips
  • What is Iphlpsvc in Windows 10 (And Is It Safe?) Windows 10
  • Best small calculator handheld 2020

    Best small calculator handheld 2020. 1 - ONXE Q5 Handheld Desktop Calculator with12 Digit Display and Solar Dual Power Supply Standard Function Calc

  • How To Install or Uninstall Safari Extensions on Mac , iPad and iPhone iPad
  • Customize Taskbar, Notification Area and Action Center in Windows 10 Windows 7
  • BSD vs Linux: The Basic Differences Linux Tips
  • Why Does Windows Have More Viruses Than Linux and OS X? Computer Tips

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version