How to access Windows on_screen keyboard accessory through Python

核能气质少年 提交于 2020-01-01 06:35:48

问题


I am creating a touch screen project through "Python Card". To fill data in a text box, can I bring the Windows on-screen keyboard to my program instead of creating a soft keyboard myself? I am trying to get the Windows on-screen keyboard using PyWin32, but it doesn't execute properly.
Are there better ways to get this keyboard functionality into my application?

Please help me out.


回答1:


import os
os.system("osk")

This will invoke the on screen keyboard, active for the window that invokes it.



来源:https://stackoverflow.com/questions/9988855/how-to-access-windows-on-screen-keyboard-accessory-through-python

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