This is fork from Mahou project. We disable all network activity that that Mahou has and add Ukraine dictionary for switching from EN to UA and UA to EN keyboard.
FaineSwitcher works like You want, configure it as you wish, by default it switches not by next layout, but by specified in settings layouts.
Even selected text switches just between selected layouts, though if you liked cycling through, starting from v1.0.2.9
there is Cycle Mode, in v2.0.0.0
and above to activate it you just need to disable function Switch between layouts
. By default FaineSwitch stores configurations in folder where FaineSwitch.exe is, but there is a function that makes FaineSwitch store them in %AppData%.
FaineSwitcher requires .NET Framework 4.8 or greater to work properly. Beginning from v1.4.3.9 error when running on .NET 4.0 were fixed.
- Open Snippets tab.
- Check 'Enable snippets'.
- Open Auto switch tab.
- Chack 'Enable auto-switch'.
- Press 'Update auto-switch dictionary' (If version with requests).
- Press 'Apply' button.
- To convert selection hit Scroll when select text.
- To convert input hit Pause when typing.
- To convert line hit Shift+Pause.
- To change layout by one key press CapsLock.
- Starting from v1.0.4.4 in Convert selection unrecognized text by all selected layout in settings (example: ♥) just rewrites.
- Read the wiki or ask me.
- Pause - Convert last input.
- Scroll - Convert selection.
- Shift+Pause - Convert last inputted line.
- Scroll - Convert selected text.
- Shift+F11 - Convert multiple last words, to select quantity press 1-9(0 = 10) after hotkey on keyboard(not NumPad)..
- Ctrl+Shift+Alt+Win+Insert - To toggle configs windows visibility.
- Shift+AltPageUp - Restart FaineSwitch.
- Ctrl+Shift+Alt+Win+F12 - To exit FaineSwitch.
- Other hotkeys disabled by default or have description in FaineSwitch.
FaineSwitch is under GPL v2+.
- Install Visual Studio 2022
- Install Microsoft Visual Studio Installer Projects
This guide will walk you through the process of building a .NET project and a WIX installer project using Visual Studio and Winget.
Before getting started, you will need the following:
- Windows 10 with the Winget package manager installed
- Visual Studio installed on your computer
- The .NET project and WIX installer project files
- Open the Command Prompt as an Administrator.
- Enter the following command to install Visual Studio:
winget install --id=Microsoft.VisualStudio2019Community --version=16.5.5
- Enter the following command to install WIX:
winget install --id=WixToolset.WixToolset --version=3.11.2.3012
- Wait for the installations to complete.
- Open the .NET project in Visual Studio.
- In the menu bar, go to Build, then select Build Solution.
- If you are prompted to build the dependencies first, select Yes.
- After the solution builds successfully, you should now have an executable file in the project's output directory.
- Open the WIX installer project in Visual Studio.
- In the menu bar, go to Build, then select Build Solution.
- If you are prompted to build the dependencies first, select Yes.
- After the solution builds successfully, you should now have an installer file in the project's output directory.
- Model ZIP location: keyswitcher\FaineSwitcher\ML\MLModel1.zip;
- To change model need only replace the old zip file with the new;
- Call prediction method:
var res = MLModel1.Predict(new MLModel1.ModelInput() { Col0 = word });
- Prediction result:
res.PredictedLabel
; - Result == 1 - need rewriting word;
- All AI logic located in keyswitcher\FaineSwitcher\Classes\KMHook.cs file and method
CheckAutoSwitch
row1190
; CheckAutoSwitch
have comments with logic description;
Congratulations, you have now successfully setup FaineSwitcher project!