The order of input methods is in the following position in the registry:
Clear and re - arrange the input methods in the language bar (assuming there are 7 input methods) REG file:
Windows Registry Editor Version 5.00
;First clear the original sequence, 00000804 represents "Chinese (China)"
"1"="00000804"
"2"=-
"3"=-
"4"=-
"5"=-
"6"=-
"7"=-
"8"=-
;The following is the re - arrangement (only take 4 of them):
;In order: Chinese (China), Jidian Wubi 4, Sogou Pinyin, Quánpīn, Zhineng ABC
"1"="00000804"
"2"="e0210804"
"3"="e0200804"
"4"="e0010804"
"5"="e0040804"
The above serial numbers correspond to the order from top to bottom in the language bar. After making the above REG file, double - click to import or use the command regedit /s XXX.reg to import automatically. The codes of various input methods in the registry are as follows:
00000804 Chinese (China)
00000409 English
e0100804 Wangma Wubi 86
e0220804 Nianqing Wubi
e0210804 Jidian Wubi
e00e0804 Microsoft Pinyin
e0010804 Quánpīn
e0020804 Shuangpīn
e0040804 Zhineng ABC
e0200804 Sogou Pinyin
e0xx0804 Ziguang Pinyin
e0050804 Quwei code
e00c0804 Biaoxing code
e0030804 Zhengma code
In fact, these codes are not clearly stipulated (except those built - in in Windows, such as: English, Microsoft Pinyin, Quánpīn, etc.). If you want to get the real code, you can use the command
reg query "HKEY_CURRENT_USER\Keyboard Layout\Preload">a.txt to get the input method order list, and then correspond to the order from top to bottom in the language bar, then you can get the code (input method ID) of each input method in your system in the registry.
If you use the tool provided by brother yishanju downstairs, you only need one command (the command must be executed in the same directory as imetool):
imetool /del4:e0010804
You can delete the "Quánpīn" input method from the language bar, and it takes effect without restarting.
Since someone pays attention to this topic, I will add a batch file to delete the input method on the language bar made by myself:
Delete input methods in serial number form:
@echo off&setlocal enabledelayedexpansion
set key1=HKCU\Keyboard Layout\Preload
set key2=HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layouts
:begin
cls
for /f "tokens=1-4" %%a in ('reg query "%key1%"^|findstr "REG_SZ"^|sort') do (
for /f "tokens=1,3*" %%d in ('reg query "%key2%\%%c"^|findstr "Text"') do (
set /a n+=1
echo %%a %%c %%f
)
)
echo.
set /p num=Please enter the serial number before the input method you want to delete:
for /l %%a in (%n% -1 1) do (
if "%%a"=="%num%" set var=A
)
if "%var%"=="A" goto delime
cls
echo Incorrect input, press any key to re - enter a serial number!
pause>nul
goto begin
:delime
cls
echo Operating, please wait...
(reg export "%key1%" Restore original settings.reg
reg delete "%key1%" /f /v "%num%"
for /f "tokens=1,2*" %%i in ('reg query "%key1%"^|findstr "REG_SZ"') do (
set /a m+=1
reg add "!key1!" /f /v !m! /d "%%k"
))>nul
cls
echo Input method deleted successfully! The remaining input methods (take effect after logging off or restarting):
echo.
for /f "tokens=1-4" %%a in ('reg query "%key1%"^|findstr "REG_SZ"^|sort') do (
for /f "tokens=1,3*" %%d in ('reg query "%key2%\%%c"^|findstr "Text"') do (
echo %%a %%c %%f
)
)
ping 127.1 -n ^6>nul
Delete input methods in input method ID form:
@echo off
set "b="
set "ime=e0010804"
for /f "tokens=1" %%a in ('reg query "HKCU\Keyboard Layout\Preload"^|find /i "%ime%"') do set "b=%%a"
if not "%b%"=="" (reg delete "HKCU\Keyboard Layout\Preload" /f /v "%b%" >nul
) else (
echo No input method with ID "%ime%" is found!&&ping 0 /n ^5>nul&exit)
for /f "tokens=1,2*" %%c in ('reg query "HKCU\Keyboard Layout\Preload"^|find "REG_SZ"') do (
set /a n+=1
call reg add "HKCU\Keyboard Layout\Preload" /f /v "%%n%%" /t REG_SZ /d "%%e" >nul
)
echo Successfully deleted the input method with code "%ime%"! It takes effect only after logging off or restarting.&&ping 0 /n ^5>nul&exit
[
Last edited by newxso on 2009 - 8 - 12 at 20:33 ]