Skip to content

Instantly share code, notes, and snippets.

@fpGHwd
Created June 6, 2018 02:11
Show Gist options
  • Save fpGHwd/4a60812db4835394e6ac970e4d63a4ff to your computer and use it in GitHub Desktop.
Save fpGHwd/4a60812db4835394e6ac970e4d63a4ff to your computer and use it in GitHub Desktop.
punctuation
「直角引号」
@echo off
set Mainkey=HKCU\SOFTWARE\Microsoft\InputMethod\Settings\CHS
for /f %%i in ('reg query %MainKey% /v "Enable Double Pinyin" ^| findstr /i "0x1"') do (set flg=%%i)
if not defined flg (
reg add %MainKey% /v "Enable Double Pinyin" /t REG_DWORD /d 0x1 /f
echo 已经切换到双拼
) else (
reg add %MainKey% /v "Enable Double Pinyin" /t REG_DWORD /d 0x0 /f
echo 已经切换到全拼
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment