Andres Andres - 3 months ago 134
C# Question

Set Windows 10 "Automatically show the touch keyboard" with WPF app

I need to programatically enable/disable the

Automatically show the touch keyboard
option in Windows 10 with a WPF (not a UWP) like is shown here.

I couldn't find anything. Is there any API I can use from C# or registry key I can modify to enable/disable it?

Answer

I ended up using Process Monitor as stated in this answer to detect what registry value was being modified while changing the setting. So to enable/disable the Automatically show the touch keyboard option the registry value you have to change:

HKCU\Software\Microsoft\TabletTip\1.7\EnableDesktopModeAutoInvoke

With a simple command you can enable/disable this:

reg add "HKCU\Software\Microsoft\TabletTip\1.7" /v EnableDesktopModeAutoInvoke /t REG_WORD /d 1 /f

Just change between 1 and 0 to enable/disable it.

Comments