Skip to content

Helldivers 2

Mango Yen edited this page Aug 9, 2026 · 21 revisions

在 Helldivers 2 中控制中文輸入法

Helldivers 2 目前無法可靠地處理中文輸入法的狀態。進入遊戲時若系統還在中文模式,按鍵會被輸入法攔走,而遊戲內沒有穩定的方式切回英數。

這一頁說明怎麼把這個遊戲固定綁在英文輸入語言上。需要 v0.7.0 或更新版本

為什麼一般的輸入法工具在這裡沒用

遊戲直接讀取鍵盤,不接受一般程式用來切換輸入法的那種指令。而且它的防作弊機制不讓其他程式看見它是哪一個程式 —— 所以「指定某個執行檔用英文」這種設定對它永遠不會生效。

本工具改用兩個方式繞過:用視窗類別(一種每個視窗都有的名稱)來辨識它,並透過 Windows 自己的輸入法設定去切換,而不是對遊戲下指令。

一件必要的前提

本工具必須以管理員身分執行,這個遊戲才看得見。 遊戲本身就是以管理員身分執行的,而 Windows 不讓權限較低的程式讀取權限較高的程式的視窗 —— 連視窗類別都讀不到。

沒有提權的話,托盤提示的「當前程式」會顯示 (未知),你連要填什麼都看不到。

安裝時選 為所有使用者安裝 就會提權。已經裝成「只為我安裝」的話,在托盤選單點 以管理員身分重新啟動 即可。

設定步驟

  1. Releases 安裝 v0.7.0 或更新版本,選擇 為所有使用者安裝,並勾選 開機時自動啟動

  2. 啟動 Helldivers 2,然後 Alt-Tab 回到桌面。

  3. 到通知區域找到圖示 —— 螢幕右下角、時鐘左邊。Windows 11 預設把新圖示收起來,要先點時鐘旁的 才看得到。圖示是藍色圓角方塊裡一個白色的「中」。

  4. 在圖示上按右鍵程式綁定輸入語言…

  5. 用視窗類別。欄位會自動填入:

    class:stingray_window
    
  6. 輸入語言英文 (美國),或你想固定的語言。

  7. 新增/更新。清單裡會出現這條規則。

  8. 回到遊戲。輸入語言會自動切換。

你不需要自己查那串 class:stingray_window —— 用視窗類別 會用你切過來之前那個程式自動填好。

確認是否生效

把滑鼠停在通知區域的圖示上,不要點它。停留就會顯示狀態;點下去會讓遊戲失去焦點,你看到的就不是它了。

成功時應該是:

內容
當前程式 class:stingray_window
綁定語言 英文 (美國)
實際語言 英文 (美國)
上次切換嘗試 已生效

「當前程式」顯示 class: 而不是檔案路徑是正常的,不是故障 —— 防作弊不讓任何程式讀取它的位置,所以本工具改用它唯一看得到的辨識方式。

只想要遊戲的規則,不要全域行為

本工具預設會把你最後選的輸入模式帶到下一個視窗。如果你只想要「遊戲固定英文」,在右鍵選單取消勾選 跨程式維持輸入模式。綁定規則不受影響。

疑難排解

症狀 處理
當前程式顯示 (未知) 本工具沒有以管理員身分執行。托盤選單 → 以管理員身分重新啟動
當前程式顯示 class:stingray_window 正常,繼續設定就好
綁定語言顯示 (無規則) 規則沒對上。核對清單裡的內容與提示文字顯示的 class: 完全一致
上次切換嘗試顯示未生效 切換沒成功。歡迎回報,但請看下面「不會做的事」
更新時要求先關閉程式 你是用「只為我安裝」裝的,之後手動提權執行。改用「為所有使用者安裝」重裝一次就不會再問
開機沒有自動啟動 安裝時要勾 開機時自動啟動。提權的自動啟動由安裝程式建立,托盤那個「一般權限」的選項無法啟動提權的程式

它對遊戲做了什麼、沒做什麼

完全沒有做的事:不修改遊戲檔案、不讀寫它的記憶體、不注入程式碼或 DLL、不在它裡面建立執行緒、不掛勾它、不裝驅動程式、不模擬按鍵、不附加除錯器。

只做這些:讀取「哪個視窗在最前面」和「那個視窗的類別名稱」(每個視窗都有的公開屬性,任何程式都在讀)、詢問一次它的檔案位置(會被拒絕),然後透過 Windows 自己的輸入法設定去切換語言 —— 這一步完全不接觸遊戲,是作業系統去做的。

v0.7.1 起,對於讀不到檔案位置的程式(也就是有防作弊的那些),本工具會直接走作業系統那條路,不再對遊戲視窗發送任何訊息

這樣就一定不會被封嗎? 沒有人能保證防作弊系統的判斷,我也不能。上面是完整清單,你可以據此自行判斷,或拿去問官方客服。如果你不願承擔任何殘餘風險,最安全的做法就是不要在遊戲執行時使用任何第三方工具,改用手動切換輸入法。

其他遊戲

同樣的做法適用於任何看不到執行檔的程式:用視窗類別 按鈕會自動填入該程式的類別,不必知道它叫什麼。用同一套引擎開發的遊戲,類別名稱可能相同。


Controlling the Chinese IME in Helldivers 2 (English)

Helldivers 2 does not reliably handle IME state. If the system is in Chinese mode when you enter the game, keystrokes are intercepted by the IME and there is no dependable in-game way back to alphanumeric.

This page pins the game to English. Requires v0.7.0 or newer.

Why ordinary IME tools fail here

The game reads the keyboard directly and does not accept the kind of instruction other programs use to switch input languages. Its anti-cheat also stops other programs from seeing which program it is — so a rule that names an executable never applies to it.

This utility works around both: it identifies the window by its class (a name every window has) and switches through Windows' own input settings rather than instructing the game.

One requirement

The utility must run as administrator or it cannot see this game at all. The game itself runs as administrator, and Windows does not let a lower-privileged program read a higher-privileged one's windows — not even the window class. Without it, the app line reads (unknown) and there is nothing to enter.

Choose Install for all users during setup, or use Restart as administrator in the tray menu.

Steps

  1. Install v0.7.0 or newer from Releases, choosing Install for all users and ticking Start automatically at logon.
  2. Start Helldivers 2, then Alt-Tab back to the desktop.
  3. Find the tray icon at the bottom right — Windows 11 hides new icons behind the chevron next to the clock.
  4. Right-click it → App language bindings...
  5. Press Use window class. The field fills with class:stingray_window.
  6. Choose English (United States) under Language.
  7. Press Add / update.
  8. Return to the game.

You do not need to look that class up — the button fills it in from the program you were last in.

Checking it worked

Hover the tray icon; do not click it. Clicking makes the game lose focus, so you see the wrong thing. On success the app line reads class:stingray_window, the bound and actual languages match, and the last attempt says it took effect.

class: rather than a file path is expected, not a fault: anti-cheat blocks reading the game's location, so the utility uses the only identity it can see.

Only want the game rule

Untick Keep mode across windows in the tray menu. Bindings keep working.

Troubleshooting

Symptom What to do
App shows (unknown) Not running as administrator. Tray menu → Restart as administrator
Bound language shows (no rule) The rule does not match. Check it is exactly the class: string the tooltip shows
Last attempt says it did not take effect Please report it, but see below
Updating asks you to close the program You installed for me only and elevated by hand. Reinstall for all users
It does not start at logon Tick Start automatically at logon during setup. Elevated autostart is set up by the installer; the tray's normal-privileges option cannot start an elevated program

What this does not do

It does not modify the game, read its memory, or interfere with it. Switching goes through Windows' own input settings, and where that does not work it gives up quietly rather than forcing anything — those techniques are what anti-cheat exists to catch, and a false positive costs you the account.

Other games

The same approach works for any program whose executable cannot be seen: Use window class fills in its class for you. Games built on the same engine may share a class name.

Clone this wiki locally