I am creating a windows application using C#, where in a button on the GUI when clicked, should display the on-screen keyboard.
Would appreciate if any help is granted. thanks.
Also, since I am mostly using Emgu Cv library for the rest of my app, Can we simply use it for calling the On-screen keyboard?
To open the On-Screen KeyboardGo to Start , then select Settings > Accessibility > Keyboard, and turn on the On-Screen Keyboard toggle. A keyboard that can be used to move around the screen and enter text will appear on the screen. The keyboard will remain on the screen until you close it.
Open the keyboard Settings . At the bottom, select Advanced. Under "Accessibility," select Manage accessibility features. Under "Keyboard and text input," select Enable on-screen keyboard.
To access the keyboard via a shortcut, press the CTRL + Windows key + O (letter o) simultaneously. The keyboard will appear on your screen after a few seconds and you can use your mouse to select keys or other commands.
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");
You can find more help here.
For Windows 10 x64, You have set the project build to x64 as shown in image.
Process process = Process.Start(new ProcessStartInfo(
((Environment.GetFolderPath(Environment.SpecialFolder.System) + @"\osk.exe"))));
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