Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 494
Andres Avatar asked Mar 25 '16 19:03

Andres


1 Answers

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.

like image 182
Andres Avatar answered Sep 24 '22 09:09

Andres