简体   繁体   English

如何在Mac OSX上从应用程序启动屏幕键盘?

[英]How to I launch an on-screen keyboard from my application on Mac OSX?

I know there is an on-screen keyboard which you can access on Mac OSX, however I need to add a toolbar button to launch it from within my application. 我知道有一个可以在Mac OSX上访问的屏幕键盘,但是我需要添加一个工具栏按钮才能从我的应用程序中启动它。

Does anybody know how I can do this? 有人知道我该怎么做吗?

You can launch KeyboardViewerServer.app in whatever way your language does that (you do not say which) 您可以使用您的语言以任何方式启动KeyboardViewerServer.app(您不说哪个)

From Terminal: 从终端:

open -a KeyboardViewerServer

I found it in /System/Library/Components/KeyboardViewer.component/Contents/SharedSupport/KeyboardViewerServer.app 我在/System/Library/Components/KeyboardViewer.component/Contents/SharedSupport/KeyboardViewerServer.app中找到了它

If you have problems with it on Leopard, see also 如果您在Leopard上遇到问题,另请参阅

http://discussions.apple.com/thread.jspa?threadID=1257002&tstart=50 http://discussions.apple.com/thread.jspa?threadID=1257002&tstart=50

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM