Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • 4 Ways to Access the Control Panel in Windows 8

    Getting used to Windows 8? Since I am a computer technician, one place I always go to on my computer is the Control Panel. I'm just so used to hitti

  • How to Transfer Music From an Old iPod to a Computer Tutorials
  • Best texas instruments ti-30xa scientific calculator 2020

    Best texas instruments ti-30xa scientific calculator 2020. 1 - Protective Case for Texas Instruments TI-30XA / TI30XA Top Reviews

  • OTT Explains: What Is a TIFF File? Computer Tips
  • What Is Stream Sniping 2022 Gaming
  • The five best download managers for Chrome and Firefox 2023 How-To
  • How to Fix if AirPods Noise Cancellation Not Working? Hardware
  • How To Make a Custom Zoom Background 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 Save Money While Shopping Online in India How-To
  • Change the Registered Owner Name in Windows 7/8/10 How-To
  • 3 Best Host File Editor for Windows 10 How-To
  • How to Tunnel VNC over SSH How-To
  • This Android App Lets You See Other Android App’s Trackers How-To
  • How To Sort Gmail By Sender, Subject, Or Label 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 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
  • SmartDNS vs VPN – What’s the Difference?
  • How to go Back to the old YouTube Layout (2017)
DMCA.com Protection Status

Recent Posts

  • How to Bypass Chromecast DNS and Circumvent Geo Blocking
  • 5 Cool Websites to Find Good Movies and TV Shows on Netflix
  • SmartDNS vs VPN “What’s the Difference?”
  • How to go Back to the old YouTube Layout (2013)
  • A Simple Trick to Get 50% Discount on Audible for Three Months

Recent Comments

  1. A Simple Trick to Get 50% Discount on Audible for Three Months on Private Browsing: What is it and What it is not
  2. 6 Best PayPal Alternatives (2017) on How to Save Money While Shopping Online in India
  3. Automatically Transcribe YouTube Video/Audio with Google Docs on 5 Best Team Management Apps (For Small and Large Teams)
  4. 6 Things You Need Know About Email Encryption on Delete All Emails from Gmail With Once Click
  5. Looking For YouTube Alternative? Try These 7 Video Sharing Sites on Ten Best YouTube Video Editing Software 2023
  • 5 Best Typing Apps for Kids

    5 Best Typing Apps for Kids. Typing is currently one of the most important computer and technical skills that students must master in 2020. Student

  • Remove Desktop Background Wallpapers in Windows Computer Tips
  • Force Windows 7 to Use Wired Connection over Wireless Networking
  • Change Android DNS settings With These 5 DNS Changer Apps How-To
  • Fix “Word Cannot Start the Converter MSWRD632.WPC/SSPDFCG_x64.CNV” Error Office Tips
  • How do I open a JAR file in Windows? Free Software Downloads
  • How to Set Up a Daily Routine on Amazon Echo Dot with Alexa App How-To
  • How to Make Flowcharts in PowerPoint MS Office Tips

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version