The Language bar is a floating toolbar that appears on your desktop automatically when you add handwriting recognition, speech recognition, or an Input Method Editor (IME) as a method of inserting text.

Using REG.EXE, built into Windows XP, Windows Server 2003, and later operating systems, or installed from the Windows 2000 Support Tools, I have scripted LanguageBar.bat to add or remove the registry entries that control the Language bar.

The syntax for using LanguageBar.bat is:

LanguageBar Y|N

Where N removes the Language bar entries and Y inserts them.

NOTE: A restart is required to make the changes effective.

LanguageBar.bat contains:

@echo off
if /i \{%1\}<h1><a name="_N_goto_OK_if_i_1_">\{N\} goto OK
if /i \{%1\}</a></h1>\{Y\} goto OK
@echo Syntax: LanguageBar Y^|N
goto :EOF
:OK
if /i \{%1\}<h1><a name="_N_call_QuietOff_gt_nul_2_gt_amp_1_if_i_1_">\{N\} call :QuietOff>nul 2>&1
if /i \{%1\}</a></h1>\{Y\} call :QuietOn>nul 2>&1
goto :EOF
:QuietOff
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSaveSettings /T REG_DWORD /F /D 0
REG DELETE HKCR\CLSID\\{540D8A8B-1C3F-4E32-8132-530F6A502090\} /F
goto :EOF
:QuietOn
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V NoSaveSettings /T REG_DWORD /F /D 0
REG ADD HKCR\CLSID\\{540D8A8B-1C3F-4E32-8132-530F6A502090\} /VE /T REG_SZ /F /D "Language bar"
REG ADD HKCR\CLSID\\{540D8A8B-1C3F-4E32-8132-530F6A502090\} /V MenuTextPUI /T REG_SZ /F /D "%SystemRoot%\System32\msutb.dll,-325"
REG ADD "HKCR\CLSID\\{540D8A8B-1C3F-4E32-8132-530F6A502090\}\Implemented Categories\\{00021492-0000-0000-C000-000000000046\}" /F
REG ADD HKCR\CLSID\\{540D8A8B-1C3F-4E32-8132-530F6A502090\}\InProcServer32 /VE /T REG_SZ /F /D "%SystemRoot%\System32\msutb.dll"
REG ADD HKCR\CLSID\\{540D8A8B-1C3F-4E32-8132-530F6A502090\}\InProcServer32 /V ThreadingModel /T REG_SZ /F /D "Apartment"