Is there a way to open the on-screen keyboard in Windows from Matlab?

1 Ansicht (letzte 30 Tage)
The on-screen keyboard for Windows is stored in C:\WINDOWS\system32\osk.exe, but calling
system('C:\WINDOWS\system32\osk.exe')
gives me the output
'C:\WINDOWS\system32\osk.exe' is not recognized as an internal or external command,
operable program or batch file.
Is there a way to open this from a script? I am working on a deployed app for Windows tablets and will need to open the on-screen keyboard when an edit box is clicked.

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 4 Jun. 2020
winopen('C:\WINDOWS\system32\osk.exe')
  8 Kommentare
Klarissa Ramos
Klarissa Ramos am 4 Jun. 2020
Hm, it returned 2 in 2019b, but when I copied and pasted it to 2015a it returned 0. Any idea why it can't find it?
Fangjun Jiang
Fangjun Jiang am 4 Jun. 2020
no idea. Try run R15a in admin mode? navigate to folder C:\WINDOWS\system32\ in MATLAB? run exist() and winopen() on some other files, such as winopen('C:\WINDOWS\system32\notepad.exe')?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Desktop finden Sie in Help Center und File Exchange

Produkte


Version

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by