Documentation · Settings

Lang Switcher exclusions: games and programs that need the hotkey themselves

In “Settings…” → “Exclusions”, click “Pick a program window” and switch to the program within 5 seconds, or type the process name, such as game.exe, and click “Add”; the exclusion takes effect at once. In an excluded program, nothing you type is remembered, and the hotkey goes to the program itself.

What they’re for

  • Games with anti-cheat protection, and programs that read the keyboard directly, bypassing Windows. Such programs may reject the replaced text, and they have no use for a keyboard hook.
  • Programs that need the hotkey themselves. Normally Lang Switcher takes the hotkey in every window. In an excluded program, Pause (or your hotkey) works as if Lang Switcher weren’t there.

How to add one: pick its window

  1. Tray menu → “Settings…” → the “Exclusions” section.
  2. Under “Automatically”, click “Pick a program window” and switch to the program within 5 seconds. The button counts down: “Switch to the program you need… 5”. Click it again to cancel.
  3. The program’s process name goes into the list, “Added: …” appears under the button, and the exclusion takes effect right away. If the program is already in the list, you’ll see “Already in the list: …”, and if you didn’t switch anywhere, “No window picked”.
12:00Lang Switcher — SettingsGeneralHotkeyLayoutsExclusionsDiagnosticsPanda KoderSETTINGSGeneralStartup, sound, tray flag, language and lookStart when I sign inSound feedbackFix the selected textLayout flag in the trayNEWThe program icon shows the flagof the current layoutTell me about program updatesInterface languageEnglishAppearanceMatch systemLightDarkCloseLang Switcher — SettingsGeneralHotkeyLayoutsExclusionsDiagnosticsPanda KoderSETTINGSExclusionsPrograms Lang Switcher stays out ofRemoveAutomaticallyPick a program windowClick, then switch to the programwithin 5 secondsManuallyProcess name, for example game.exeAddClosegame.exeAutomaticallyPick a program windowAdded: game.exeManuallyProcess name, for example game.exeAddSwitch to the program you need… 5Switch to the program you need… 4Switch to the program you need… 3Switch to the program you need… 2Switch to the program you need… 1LANG SWITCHERworkingSuspendPauseSettings…Start when I sign inWrite to the author…AboutExitright-click12345
12:00GeneralGeneralLayout flag in the trayCloseExclusionsExclusionsCloseExclusionsRemoveAutomaticallyPick a program windowClick, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAddAutomaticallySwitch to the programyou need… 5Click, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAddAutomaticallySwitch to the programyou need… 4Click, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAddAutomaticallySwitch to the programyou need… 3Click, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAddAutomaticallySwitch to the programyou need… 2Click, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAddAutomaticallySwitch to the programyou need… 1Click, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAddgame.exeAutomaticallyPick a program windowAdded: game.exeManuallyProcess name, for example game.exeAddLANG SWITCHERworkingSuspendPauseSettings…Write to the author…AboutExitright-click12345
Right-click the tray icon → “Settings…” → “Exclusions” → “Pick a program window” → within 5 seconds, click the program’s window, and its name goes into the list.
Click — then switch to the programExclusionsRemoveAutomaticallyPick a program windowClick, then switch to the programwithin 5 secondsManuallyProcess name, for example game.exeAdd5 seconds later — the name is in the listExclusionsgame.exeRemoveAutomaticallyPick a program windowAdded: game.exeManuallyProcess name, for example game.exeAdd
Clickthen switch to the programExclusionsRemoveAutomaticallyPick a program windowClick, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAdd5 seconds laterthe name is in the listExclusionsgame.exeRemoveAutomaticallyPick a program windowAdded: game.exeManuallyProcess name, for example game.exeAdd
The “Exclusions” section: you click “Pick a program window”, and five seconds later the program’s process name is in the list.

Lang Switcher takes only the process file name. It doesn’t read the window title, which can hold the name of a document or an email.

How to add one by hand

Under “Manually”, type the program’s process name (the name of its file, such as game.exe) in the field and click “Add”. The exclusion takes effect right away.

ExclusionsRemoveAutomaticallyPick a program windowClick, then switch to the programwithin 5 secondsManuallyProcess name, for example game.exeAddgame.exeRemoveAutomaticallyPick a program windowClick, then switch to the programwithin 5 secondsManuallyProcess name, for example game.exeAddggagamgamegame.game.egame.exgame.exe12
ExclusionsRemoveAutomaticallyPick a program windowClick, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAddgame.exeRemoveAutomaticallyPick a program windowClick, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAddggagamgamegame.game.egame.exgame.exe12
Under “Manually”, type the process name, such as game.exe, and click “Add”.
  • Include .exe: game.exe, not game.
  • The path doesn’t matter: if you type C:\Games\game.exe, the program keeps just game.exe. Upper and lower case don’t matter, and neither do spaces at either end.
  • A name that’s already in the list isn’t added twice: the field just clears.
  • A path without a file name (C:\) isn’t accepted: you hear a dull thud, and the text stays in the field.

How to remove one

Clicking a line in the list selects it or clears the selection. Select one or more programs and click “Remove”: they stop being exclusions right away.

Exclusionsgame.exeCalculatorApp.exeRemoveAutomaticallyPick a program windowClick, then switch to the programwithin 5 secondsManuallyProcess name, for example game.exeAddRemoveRemoveAutomaticallyPick a program windowClick, then switch to the programwithin 5 secondsManuallyProcess name, for example game.exeAdd123
Exclusionsgame.exeCalculatorApp.exeRemoveAutomaticallyPick a program windowClick, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAddRemoveRemoveAutomaticallyPick a program windowClick, then switch to theprogram within 5 secondsManuallyProcess name, for example game.exeAdd123
Click the programs to select them → “Remove”.

The list holds up to 32 programs. At 32, the field, “Add” and “Pick a program window” are grayed out until you remove something.

Microsoft Store apps

Windows shows Calculator, Settings and other Microsoft Store apps inside a shared frame, the ApplicationFrameHost.exe process. “Pick a program window” takes the app’s own process, such as CalculatorApp.exe, and the program uses that same process to decide whether a window is excluded, so excluding one such app doesn’t exclude the others. If you type ApplicationFrameHost.exe by hand, you exclude them all at once.

What changes in an excluded program

  • Nothing you type is remembered, so there’s nothing to fix there.
  • The hotkey goes to the program: the press and the release pass through untouched, the word isn’t converted, and there’s no sound.
  • A double Shift doesn’t work there.
  • In the first few dozen milliseconds after you switch to such a program, a press can still be caught, with the refusal sound: the program doesn’t know right away which window you’re in.

In the settings file

The [exclusions] section of %APPDATA%\Lang_Switcher\config.toml:

[exclusions]
processes = ["game.exe", "CalculatorApp.exe"]

Edit the file while the program isn’t running; the details are in The settings file. When you move to a new computer, the list goes along with the file.

Questions and problemson GitHub Issues ↗ or by email: send.me@panda-pishet-kod.dev