- Home /
Launching windows touch keyboard in editor
Hi!
I am making a touch app using Unity 2017.1 and Windows 10.
I am trying to launch the keyboard while playing in the editor using this code:
var keyboard = TouchScreenKeyboard.Open("test");
However, it does not show up and the keyboard.active
is set to false.
So I have two questions:
Is it not possible to show the keyboard while playing in the editor?
How can I make the keyboard show up? Do I need to convert it to a Windows Store App?
Thanks!
Answer by Tomasek · Aug 23, 2017 at 12:42 PM
Hey, i found this: "In C#, you can simply write the following line of code to invoke the on-screen keyboard application that comes with Windows:
System.Diagnostics.Process.Start("osk.exe");"
Hope it helps.
Hi. Thanks for the tip!
I tried this but it launches a different keyboard, not the one tradionally used for Windows touch screens. You can launch it be searching "on screen keyboard" in the windows menu.
But I would like to launch what Windows call the "touch keyboard". See the image below:
Then find the name of the program and launch it the same way!
I tried doing that before, using System.Diagnostics.Process.Start("tabtip.exe");
It kind of works, as the keyboard show up most of the time. But I wouldn't call it reliable. It would be nice to do it with Unity's built-in support though.
But thank you!
It cant be done, bcs this is windows feature, so you need to use .NET.
Okay, then I must have interpreted the text about the TouchScreen$$anonymous$$eyboard wrong. Thank you for the help :-)
Answer by CheritDeveloper · Jun 11, 2020 at 10:04 AM
I have created an easy to use script that makes the Windows Onscreen Keyboard popup when a (TextMeshPro) inputfield is selected. https://gist.github.com/SteefmanV/f9df806f3036020dd8a322edde572dc4
Your answer
Follow this Question
Related Questions
Unity Package Manager UI Error Socket IO Unity after updating from 2017.3 to 2018.1.0f2 Nodejs 1 Answer
Unity TouchScreen Keyboard questions.. 0 Answers
simulate pc keyboard input in android touch screen keyboard 0 Answers
Build Universal Windows 10 apps. 0 Answers
Latest version of Unity Editor (4.5) takes over media keys 1 Answer