从Winforms检测Windows 10中的屏幕键盘 [英] Detect the onscreen keyboard in Windows 10 from Winforms

查看:109
本文介绍了从Winforms检测Windows 10中的屏幕键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 10(周年纪念版或更高版本)上运行的Winforms应用程序中,是否可以检测到Windows屏幕键盘已打开?

In a Winforms app running on Windows 10 (Anniversary or greater), is there a way to detect that the Windows onscreen keyboard has opened?

推荐答案

您可以定期枚举所有窗口并搜索 DirectUIHWND 类.

You can periodically enumerate all windows and search for DirectUIHWND class.

有关Windows枚举的更多信息,请查看 http://improve.dk/find-specific-windows/

For the more info about windows enumeration, take a look to http://improve.dk/finding-specific-windows/

这篇关于从Winforms检测Windows 10中的屏幕键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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