Detect the onscreen keyboard in Windows 10 from Winforms

时光毁灭记忆、已成空白 提交于 2019-12-12 02:18:08

问题


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


回答1:


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

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



来源:https://stackoverflow.com/questions/42494453/detect-the-onscreen-keyboard-in-windows-10-from-winforms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!