I'm trying to open and close the osk.exe keyboard from a python script in WIN10. I can open it with:
import os
os.popen("osk.exe")
but when I try to close it with:
import os
os.popen('taskkill /IM osk.exe /F')
I get Access Denied error from the OS.
The same thing appens when I try to execute the same commands on the shell. I think It could be a permissions problem because of osk requires elevate permissions, but I don't know how to avoid it.
Thanks, Federico.