Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically clear Microsoft IME input history

For Japanese Microsoft IME will store input history to recommend when the user starts typing in Japanese.

Like so:

enter image description here

I need to programmatically clear the history. The user can clear the history manually from the IME properties here

enter image description here

How can I do it programmatically? Preferably with c# but a bat file or Registry edit would be fine too.

like image 564
Alex Avatar asked Feb 17 '26 01:02

Alex


1 Answers

Ok so, a little under 1 year later I finally have figured out how to do it.

File.Delete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Microsoft", "InputMethod", "Shared", "JpnIHDS.dat")); }

The file will automatically recreate itself after being deleted but the users history will be gone.

like image 77
Alex Avatar answered Feb 18 '26 16:02

Alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!