如何通过Apple可访问性控制程序?

发布于 2025-02-04 17:34:50 字数 364 浏览 1 评论 0原文

我目前正在尝试控制我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文