Skip to content
Mango Yen edited this page Aug 9, 2026 · 34 revisions

ImeModePersistence

Windows 小工具。切換視窗時保留你最後一次選擇的輸入模式,也可以把特定程式固定在某個輸入語言。

安裝

  1. Releases 下載 ...-setup.exe 安裝,或下載 ...-x64.zip 解壓即用。
  2. 執行後會常駐在通知區域 —— 螢幕右下角、時鐘左邊。Windows 11 預設把新圖示收起來,要先點時鐘旁的 才看得到。圖示是藍色圓角方塊裡一個白色的「中」。
  3. 在圖示上按右鍵,勾選 開機時自動啟動

裝好就會開始運作,不需要任何設定。

檔案沒有簽章,所以第一次執行 Windows 會出現藍色的警告視窗 —— 點「更多資訊」再點「仍要執行」。

兩個功能

跨程式維持輸入模式(預設開啟)

在 A 視窗用中文打字,切到 B 視窗時中文模式會被還原。你在 B 按 Shift 改成英數,切到 C 視窗還原的就是英數 —— 它跟著你最近一次的手動切換走。

不想要這個行為的話,在右鍵選單取消勾選就好。

程式綁定輸入語言

把特定程式固定在某個輸入語言:終端機永遠英文、Word 永遠中文。切到該程式時自動切換。

右鍵選單 → 程式綁定輸入語言…

  • 瀏覽 選出程式的執行檔,這條規則就只對那個位置的程式生效
  • 或只填檔名(例如 notepad.exe),這樣不管程式裝在哪都適用
  • 用剛才的程式 會自動填入你開這個視窗之前用的那個程式

逐步教學

怎麼知道它正在做什麼

把滑鼠停在通知區域的圖示上,不要點。停留就會顯示目前狀態;點下去反而會讓你想查的程式失去焦點,看到的就不是它了。

會顯示四行:

意思
當前程式 目前在最前面的程式
綁定語言 這個程式被規則指定的語言
實際語言 它現在真正在用的語言
上次切換嘗試 有沒有成功切換

「綁定語言」和「實際語言」一致就代表正常運作。

左鍵雙擊圖示會顯示更完整的狀態視窗。

常見問題

「當前程式」顯示 class: 開頭的東西,不是程式路徑 這是正常的,不是故障。有些程式(多半是有反作弊的遊戲)不允許其他程式讀取它的檔案位置,這時本工具會改用視窗類別來辨識它。那串 class:... 就是綁定規則要填的內容。

要不要以管理員身分執行? 一般情況不要。提權之後開機自動啟動會失效、每次啟動要按一次 UAC,更新時還得手動關掉它。

唯一的例外是本身以管理員身分執行的程式,多數有反作弊的遊戲都是。Windows 不讓權限較低的程式讀取權限較高的程式的視窗,所以那種情況必須提權 —— 詳見 Helldivers 2 那頁。

綁定的是語言,不是特定的輸入法 中文、英文、日文可以分別綁定。但如果你同一個語言裝了多個輸入法(注音和倉頡都算中文),本工具無法指定其中某一個,會用第一個已安裝的。

有些程式切換後又自己變回去 本工具會重試幾次,若該程式堅持要用自己的設定就不再勉強 —— 這是刻意的,避免和程式互相搶。

改不了以管理員身分開啟的程式(例如系統管理員終端機) Windows 的權限保護,除非本工具也以管理員身分執行。

會不會被反作弊誤判? 本工具不修改遊戲、不讀寫它的記憶體、不注入任何東西、不模擬按鍵。切換是交給 Windows 自己的輸入法設定去做的,對有防作弊的程式更是完全不發送任何訊息。完整清單與判斷依據在 Helldivers 2 那頁 —— 但沒有人能保證防作弊系統的判斷,所以那頁也寫了不願承擔殘餘風險時該怎麼做。

其他

介面語言跟著 Windows 的顯示語言自動選繁體中文或英文。安裝程式的畫面目前只有英文。深色模式只作用在視窗標題列。


English

Windows utility that keeps the last input mode you chose when you switch windows, and can pin specific applications to an input language.

Install

Download ...-setup.exe from Releases, or the ...-x64.zip portable build. It runs in the notification area at the bottom right — Windows 11 hides new icons behind the chevron next to the clock. Right-click the icon and tick Start with Windows.

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.

What it does

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.

Walkthrough

Seeing what it is doing

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.

Common questions

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.

Should I run it as administrator? Normally no — autostart stops working, you get a UAC prompt every time, and updating means closing it by hand. The exception is a program that itself runs as administrator, as most anti-cheat games do: Windows does not let a lower-privileged program read a higher-privileged one's windows. See the Helldivers 2 page.

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.

Clone this wiki locally