On my OS (Windows 10 22H2), I can change it in Registry, at the key :
HKEY_CURRENT_USER\SOFTWARE\AppDataLow\Software\Microsoft\IME\15.0\IMEJP\MSIME
kanaMd (0 or 1)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to programmatically turn on/off Japanese Kana/Romaji input mode. This is equivalent to the "Kana input" option in the IME input menu
I have tried to use InputMethod.SetPreferredImeConversionMode
but it can only sets the TextBox into Hiragana/Alphanumeric/Katakana input.
Are there any Win32 APIs we can use to change this Kana/Romaji input mode?
On my OS (Windows 10 22H2), I can change it in Registry, at the key :
HKEY_CURRENT_USER\SOFTWARE\AppDataLow\Software\Microsoft\IME\15.0\IMEJP\MSIME
kanaMd (0 or 1)
I am a Japanese programmer.
There is a function in 'Imm32.lib' called "ImmSetConversionStatus()".
In general, it is reasonable to restrict input mode according to input items.
However, we do not agree with the specification that the application changes the input mode of the IME.
This is because some people prefer romaji input and some prefer hiragana input, and these people do not like to have their input mode changed without their permission. In other words, Japanese people do not like to have their IME controlled by others.
*Translated with DeepL.com (free version)
@CHAN Samuel As @uncle_Kei mentioned, You can use ImmSetConversionStatus by setting unnamedParam2 of Conversion mode values. IME_CMODE_KATAKANA, Set to 1 if KATAKANA mode; 0 if HIRAGANA mode.