自动调用屏幕键盘 [英] Auto Invoke on-screen keyboard

查看:282
本文介绍了自动调用屏幕键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有什么方法可以在win7中调用屏幕键盘?诸如触摸输入之类的虚拟键盘将根据需​​要可见.适用于整个win7,而不是特定的应用程序.

Hi,

Is there any way to invoke an on-screen keyboard in win7? Something like touch input, the virtual keyboard will be visible as demand. Applicable for whole win7 instead of specific application.

Thanks

推荐答案

您可以通过Process.Start("osk");启动屏幕键盘. -开始->运行-> "osk"

也许使用一些WM_XX消息来显示和隐藏?
You can start On-screen keyboard via Process.Start("osk"); - Start -> Run -> "osk"

And and perhaps use some WM_XX message to show and hide?


金说的是正确的方法.

但是,如果您确实需要使用触摸输入,则可能不合适.通常,例如,触摸输入需要更大的控件,使用Windows的设计(包括最新版本)在很大程度上忽略了使用触摸的用户的兴趣.如果出现问题,则可能要创建自定义的虚拟键盘.

当然,它也应该在系统范围内.
您可以找到有关如何做的关键秘诀.请查看我过去的答案和相关讨论:
应用程序焦点的得失 [在BACKSPACE按钮上编程 [用于WPF应用程序的软件虚拟键盘 [ ^ ].

—SA
What Kim says is the right way.

However, if you really need to use touch input, it can be not suitable. Usually, touch input requires larger controls, for example, and the interests of the users using touch are largely ignored by design of Windows including the latest versions. If this is the problem, you may want to create your custom Virtual Keyboard.

It should be system-wide as well, of course.
You can find the key recipe on how to do it; please see my past answers and this discussions:
Application focus getting and losing[^],
Programming on BACKSPACE button[^].

See also this CodeProject article:
A software Virtual Keyboard for your WPF apps[^].

—SA


这篇关于自动调用屏幕键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆