如何通过Apple可访问性控制程序?
我目前正在尝试控制我的Mac,以便能够打开Minecraft
应用程序,然后点击按钮,例如单人播放器
,创建新World
等等。
这些按钮应具有可访问性选项,因此我希望能够打开Minecraft并通过代码按这些按钮。理想情况下,它将是python
代码,但是如果还有其他语言,例如Objective-C
,这些语言也将很有用。
我已经搜索了这样做的方法,而无需与gui
进行交互,但是世界一代似乎取决于代码,Minecraft应用程序在按下按钮(例如创建new World ,它无法通过API访问。
I'm currently trying to control my Mac to be able to open the Minecraft
application, and tap buttons such as Single Player
, Create New World
, etc.
These buttons should have accessibility options on them, so I'm looking to be able to open Minecraft and press these buttons via code. Ideally it would be Python
code, but if there are any other languages like Objective-C
, these would be useful too.
I've searched for ways to do this without interacting with the GUI
, but the world generation seems to be dependent on code the Minecraft application delicately executes upon pressing buttons like Create New World
, which isn't accessible via an API.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论