【发布时间】:2011-08-09 20:10:09
【问题描述】:
有没有办法使用 .NET 以编程方式打开并显示 Windows 7 屏幕键盘?我找到了两种可能的解决方案,但都不起作用。我的应用是 WPF/.NET 4。
第一种方法来自以下两个链接,但它们需要屏幕键盘已经打开,因为它们使用 FindWindow Win32 调用:
http://hot-virtual-keyboard.com/development/q1/ Finding the class name of the On-Screen Keyboard?
我尝试过的另一条路线是(Show up the On Screen keyboard if the user sets the focus on a textfield. WPF with .Net 4 Client profile):
Process.Start("osk.exe");
但此调用失败,并显示“无法启动屏幕键盘”的消息框。
有什么想法吗?
【问题讨论】:
-
Process.Start("osk.exe")为我工作,想知道那里有什么问题......