Disable Disruptive Hotkeys While Gaming With This Script

Disable Disruptive Hotkeys While Gaming With This Script

Some keyboard keys can be a nuisance for gamers (ever accidentally hit the Windows key while gaming?) The How-To Geek saves us from accidentally ripping ourselves out of our games and other hotkey mishaps with a script.

Picture: Mr. Seb/Flickr

Instead of prying the Windows key off of your computer, you can download AutoHotKey, the awesome scripting program, and disable the keys when a game is running. Then you can re-enable them when you’re done gaming.

The script is simple, and presented in a commented fashion so you can easily comment the keys in or out of use. Just download AutoHotkey (if you haven’t already) and paste the following into a text file with the .ahk extension:

; Disable Alt+Tab

!Tab::Return

; Disable Windows Key + Tab

#Tab::Return

; Disable Left Windows Key

LWin::Return

; Disable Right Windows Key

RWin::Return

This will disable Alt+Tab, Windows+Tab and both Windows keys. You can find all of How-To Geek’s guidance on temporarily disabling your the Windows, Alt+Tab and Sticky keys at the link below.

How to Prevent the Windows Key, Alt+Tab, and Sticky Keys From Ruining Your Gaming [How-to Geek]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


2 responses to “Disable Disruptive Hotkeys While Gaming With This Script”