Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access Windows on_screen keyboard accessory through Python

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.

like image 297
shiva Avatar asked Aug 03 '26 19:08

shiva


1 Answers

import os
os.system("osk")

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

like image 61
Srijan Avatar answered Aug 05 '26 07:08

Srijan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!