首頁 > 系統教程 > Windows系列 > 如何防止 Windows 鍵、Alt+Tab 和黏滯鍵破壞您的遊戲

如何防止 Windows 鍵、Alt+Tab 和黏滯鍵破壞您的遊戲

WBOY
發布: 2024-06-19 12:58:00
原創
1342 人瀏覽過

Windows 是為一般電腦使用而設計的,而不是專門為遊戲而設計的。 Windows 鍵、Alt+Tab 以及黏滯鍵等其他鍵盤快速鍵可讓您退出全螢幕遊戲並返回桌面。幸運的是,禁用它們非常容易,因此您可以享受不間斷的遊戲。

如何停用 Windows 鍵

您可以透過多種方法停用 Windows PC 上的 Windows 鍵。讓我們詳細查看所有方法:

使用登錄編輯程式

停用電腦上的 Windows 鍵的最佳方法之一是使用登錄編輯程式。但是,在開始之前,備份登錄並建立還原點非常重要。即使在編輯過程中出現問題,這也將確保您的資料保持安全。

話雖如此,打開“開始”選單,在搜尋欄中鍵入“登錄編輯器”,然後按 Enter。

在登錄編輯器中,導航到以下位置:

#
<code class="hljs ">HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlKeyboard Layout</code> 
登入後複製

# 右鍵單擊“鍵盤佈局”項,選擇“新建”,然後選擇“二進位值”。然後,將該值命名為「Scancode Map」。

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

右鍵點選「掃描碼對應」值並選擇「修改」。

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

在「值資料」欄位中鍵入下列值,然後按一下「確定」。

<code class="hljs xml">00, 00, 00, 00, 00, 00, 00, 0003, 00, 00, 00, 00, 00, 5B, E0,00, 00, 5C, E0, 00, 00, 00, 00</code> 
登入後複製
How to Prevent the Windows Key, Alt+Tab, and Sticky Keys From Ruining Your Gaming

之後,重新啟動計算機,您會發現 Windows 鍵不再起作用。要在將來重新啟用 Windows 鍵,只需從登錄編輯器中刪除「Scancode Map」二進位值,Windows 鍵就會重新開始工作。

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

使用本機群組原則編輯器

如果您使用的是 Windows 專業版或企業版,則可以使用本機群組原則編輯器停用電腦上的 Windows 鍵。為此,請開啟本機群組原則編輯器並導覽至下列位置:

<code class="hljs xml">User Configuration > Administrative Templates > Windows Components > File Explorer</code> 
登入後複製

# 在右側窗格中,按兩下「關閉 Windows 鍵熱鍵」原則。

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

選擇“已啟用”,然後按一下“套用”和“確定”。

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

然後,重新啟動電腦以查看變更。如果要重新啟用 Windows 鍵,則需要將「關閉 Windows 鍵熱鍵」策略配置為「已停用」或「未設定」。

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

使用 Microsoft PowerToys

Microsoft PowerToys 是 Microsoft 的一款免費應用程序,可讓您停用 Windows PC 上的按鍵。若要使用它來停用 Windows 金鑰,請先從 Microsoft Store 安裝它,然後開啟它。

在左側邊欄中,選擇“鍵盤管理員”,然後按一下右側窗格中的“重新對應按鍵”。

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

選擇「新增按鍵重新映射」。

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

按一下「選擇」按鈕,然後按下鍵盤上的「Windows」鍵。選擇密鑰後按一下“確定”。

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

從「傳送」下拉式選單中,選擇「停用」。

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

Click "OK" and then select "Continue Anyway" to confirm disabling the Windows key.

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

When you want to start using the Windows key again, simply click the trash icon next to the key.

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

Using Your Keyboard Software

If you have a gaming keyboard, it likely has dedicated software that lets you configure how the keys work. Most gaming keyboards also have a gaming mode that, when enabled, disables keys that might interrupt your gaming session, including the Windows key.

For example, if you have an Alienware keyboard, you can use the Fn+F6 key combination to enable gaming mode. If you're unaware of the key combination for your keyboard, check the user manual for more information.

How to Disable the Alt+Tab Shortcut

Pressing Alt+Tab opens the app switcher, which lets you see and switch between different programs running on your computer. However, you might not want to hit this key combination during an intense gaming session because it will minimize your game. You can prevent this from happening by temporarily disabling this shortcut.

Using Microsoft PowerToys

Similar to disabling the Windows key, you can also use Microsoft PowerToys to turn off the Alt+Tab shortcut. To do this, open Microsoft PowerToys, go to "Keyboard Manager," select "Remap a Shortcut," and then click "Add Shortcut Remapping."

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

Click the pen icon next to "Shortcut," press the "Alt+Tab" keys together, and click "OK."

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

Choose "Disable" from the "Shortcut" dropdown menu under the "To" section.

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

Click "OK" to confirm the change.

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

When you're finished gaming on your computer, you can enable this shortcut combination again by clicking the trash can icon next to it.

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

Using AutoHotKey

AutoHotkey is a popular third-party tool that helps you manage keyboard shortcuts on your Windows computer. It allows you to disable specific keys or key combinations. To use it to disable the Alt+Tab shortcut, first, download and install AutoHotkey on your computer. Then, right-click anywhere on your desktop, select "New," and then "AutoHotkey Script."

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

Give a name to the script file and press Enter.

Right-click on the newly created script file, choose "Open With," and select "Notepad."

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

Clear any default text in the Notepad document, paste the following codes and press Ctrl+S to save the changes.

<code class="hljs xml">#=::Return; Disable Alt+Tab!Tab::Return</code> 
登入後複製
How to Prevent the Windows Key, Alt+Tab, and Sticky Keys From Ruining Your Gaming

Go back to your desktop, right-click on the script file again, select "Show More Options," and then choose "Run Script."

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

Alt+Tab 快捷鍵現在將會停用。要重新啟用它,只需右鍵單擊系統托盤中的 AutoHotkey 圖示並選擇“退出”即可。

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

如何停用黏滯鍵

Windows 10 和 11 在「設定」應用程式中都有專用的黏滯鍵切換開關。您可以使用此開關來打開或關閉它。若要在 Windows 10 上停用黏滯鍵,請開啟「設定」功能表並選擇「輕鬆存取」。

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

從左側邊欄中選擇「鍵盤」並停用右側的「使用黏滯鍵」開關。

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

然後,取消勾選「允許快速鍵啟動黏滯鍵」方塊。

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

對於 Windows 11,開啟“設定”,從左側選擇“輔助功能”,然後停用右側“黏滯鍵”的切換開關。

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

點擊「黏滯鍵」選項並停用它的鍵盤快速鍵。 ###### ### 就是這樣!您已成功在 Windows 電腦上停用黏滯鍵。要在將來再次啟用它,只需重新打開開關即可。

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

這就是關於如何停用 Windows 電腦上的某些按鍵和鍵盤快速鍵。現在,您可以享受不間斷的遊戲過程,而不會意外按下這些按鍵。但是,請記住稍後重新啟用這些鍵和快捷方式,因為永久停用它們可能會擾亂您在 Windows 中的常規工作流程。


以上是如何防止 Windows 鍵、Alt+Tab 和黏滯鍵破壞您的遊戲的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:howtogeek.com
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板