-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Windows 小工具,控制輸入法在程式之間的行為:切換視窗時延續你最後選擇的輸入模式(中文/英數),並可把指定程式固定在某個輸入語言(中文/英文/日文…)—— 連讀不到執行檔的程式也能綁定,例如有防作弊的全螢幕遊戲。
- 到 Releases 下載
...-setup.exe(或...-x64.zip解壓即用)。 - 安裝時會問要為所有使用者安裝還是只為我安裝。建議選前者 —— 理由見下方常見問題。
- 勾選 開機時自動啟動。
- 裝好後會常駐在通知區域 —— 螢幕右下角、時鐘左邊。Windows 11 預設把新圖示收起來,要先點時鐘旁的 ⌃ 才看得到。圖示是藍色圓角方塊裡一個白色的「中」。
裝好就會開始運作,不需要任何設定。
檔案沒有簽章,所以第一次執行 Windows 會出現藍色的警告視窗 —— 點「更多資訊」再點「仍要執行」。
在 A 視窗用中文打字,切到 B 視窗時中文模式會被還原。你在 B 按 Shift 改成英數,切到 C 視窗還原的就是英數 —— 它跟著你最近一次的手動切換走。
不想要這個行為的話,在右鍵選單取消勾選就好。
把特定程式固定在某個輸入語言:終端機永遠英文、Word 永遠中文。切到該程式時自動切換。
右鍵選單 → 程式綁定輸入語言…
- 用 瀏覽 選出程式的執行檔,這條規則就只對那個位置的程式生效
- 或只填檔名(例如
notepad.exe),這樣不管程式裝在哪都適用 - 用剛才的程式 會自動填入你開這個視窗之前用的那個程式
- 在 Helldivers 2 中控制中文輸入法 —— 遊戲類的程式常常看不到執行檔,要改用視窗類別綁定。同樣的步驟適用於其他這類程式。
把滑鼠停在通知區域的圖示上,不要點。停留就會顯示目前狀態;點下去反而會讓你想查的程式失去焦點,看到的就不是它了。
會顯示四行:
| 行 | 意思 |
|---|---|
| 當前程式 | 目前在最前面的程式 |
| 綁定語言 | 這個程式被規則指定的語言 |
| 實際語言 | 它現在真正在用的語言 |
| 上次切換嘗試 | 有沒有成功切換 |
「綁定語言」和「實際語言」一致就代表正常運作。
左鍵雙擊圖示會顯示更完整的狀態視窗。
「當前程式」顯示 class: 開頭的東西,不是程式路徑
這是正常的,不是故障。有些程式(多半是有反作弊的遊戲)不允許其他程式讀取它的檔案位置,這時本工具會改用視窗類別來辨識它。那串 class:... 就是綁定規則要填的內容。
安裝時要選「為所有使用者」還是「只為我」? 建議 為所有使用者(會提權)。Windows 不讓權限較低的程式讀取權限較高的程式的視窗,而多數有防作弊的遊戲都是以管理員身分執行 —— 不提權就完全看不到它們,連要綁定什麼都顯示不出來。
提權安裝的開機自動啟動是一個排程工作,不會每次登入彈 UAC。
如果你只在意一般程式、不想要任何提權,選 只為我安裝 也完全可用,之後想改主意可以從托盤選單點 以管理員身分重新啟動。
綁定的是語言,不是特定的輸入法 中文、英文、日文可以分別綁定。但如果你同一個語言裝了多個輸入法(注音和倉頡都算中文),本工具無法指定其中某一個,會用第一個已安裝的。
有些程式切換後又自己變回去 本工具會重試幾次,若該程式堅持要用自己的設定就不再勉強 —— 這是刻意的,避免和程式互相搶。
改不了以管理員身分開啟的程式(例如系統管理員終端機) Windows 的權限保護。用「為所有使用者安裝」,或從托盤點 以管理員身分重新啟動。左鍵雙擊圖示可以看到目前是否以管理員身分執行。
會不會被反作弊誤判? 本工具不修改遊戲、不讀寫它的記憶體、不注入任何東西、不模擬按鍵。切換是交給 Windows 自己的輸入法設定去做的,對有防作弊的程式更是完全不發送任何訊息。完整清單與判斷依據在 Helldivers 2 那頁 —— 但沒有人能保證防作弊系統的判斷,所以那頁也寫了不願承擔殘餘風險時該怎麼做。
介面語言跟著 Windows 的顯示語言自動選繁體中文或英文。安裝程式的畫面目前只有英文。深色模式只作用在視窗標題列。
Windows utility for controlling how input methods behave across programs: it carries the input mode you last chose (native or alphanumeric) to the next window, and can pin a program to a fixed input language — including programs whose executable cannot be read, such as anti-cheat protected fullscreen games.
Download ...-setup.exe from Releases, or the ...-x64.zip portable build. Setup asks whether to install for all users (elevated — recommended, see below) or for me only, and offers Start automatically at logon. It then runs in the notification area at the bottom right; Windows 11 hides new icons behind the ⌃ chevron next to the clock.
It works as soon as it is installed; no configuration needed. The files are unsigned, so Windows warns on first run — choose More info → Run anyway.
Keep mode across windows (on by default) — type Chinese in one window, switch to another, and Chinese comes back. Press Shift to go alphanumeric and that is what the next window gets. It follows your most recent deliberate change. Untick it in the tray menu if you do not want it.
App language bindings — pin an application to a language: a terminal always English, Word always Chinese. Right-click → App language bindings..., then Browse for the program, or type just its file name to match it wherever it is installed, or press Use last app.
- Controlling the Chinese IME in Helldivers 2 — games often cannot be identified by their program file and need binding by window class instead.
Hover the tray icon rather than clicking it — clicking makes the program you wanted to check lose focus, so you see the wrong thing. Four lines appear: the current program, the language bound to it, the language actually in use, and whether the last switch worked. The bound and actual languages matching means it is working. Double-click for a fuller status window.
The current program shows something starting with class: — normal, not a fault. Some programs, mostly anti-cheat games, do not let others read their file location, so the utility identifies them by window class instead. That class:... string is what a binding rule needs.
Install for all users or for me only? For all users, which elevates. Windows does not let a lower-privileged program read a higher-privileged one's windows, and most anti-cheat games run as administrator — without elevation they cannot be seen at all. Elevated autostart is a scheduled task, so there is no UAC prompt at each logon. For me only works fine if you only care about ordinary programs; Restart as administrator in the tray menu changes your mind later.
A binding pins a language, not one specific IME — Chinese, English and Japanese can each be bound, but if one language has several IMEs installed the first one is used.
Some programs change it straight back — the utility retries a few times and then leaves it alone rather than fighting the program.
Could anti-cheat flag it? It does not modify the game, read its memory, or interfere with it in any way; switching goes through Windows' own input settings. Where that does not work it gives up quietly instead of forcing anything.
ImeModePersistence · 下載 / Releases · 問題回報 / Issues · README · 設計筆記 / Design notes · MIT
本 Wiki 是操作說明;實作理由與被否決的做法記在設計筆記。發佈的檔案未經簽章。 This wiki is the how-to; implementation reasoning and rejected approaches live in the design notes. Released files are unsigned.
繁體中文
English
简体中文
日本語
한국어