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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With