使用 Applescript 和 WINE 实现 Windows 自动化
我可以使用 Applescript 自动化在 Wine 上运行的 Windows 应用程序吗? 如果没有,是否有另一种方法可以在 Wine OSX 上编写 Windows 应用程序脚本?
Can I automate a windows application running on Wine with Applescript?
If not, is there another way to script a windows app on Wine OSX?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没有尝试过使用 Wine,但使用 Parallels 我只是执行 GUI 脚本并将击键直接发送到应用程序。这是我写的一篇博客文章。 (虽然我主要使用 Python + Appscript 进行脚本编写)
http://www.libertypages.com/clarktech /?p=1496
注意我在该脚本中单独发送每个字符。您实际上可以发送完整的字符串。我只是喜欢它被抽象出来,这样我就可以在必要时添加延迟。所以我有一个发送字符串的函数。
如果您不熟悉 GUI 脚本,我会查看以下教程:
http:// /www.macosxautomation.com/applescript/uiscripting/index.html
I've not tried it with Wine but with Parallels I just do GUI scripting and send keystrokes directly to the application. Here's a blog post I wrote on it. (Although I use Python + Appscript for scripting primarily)
http://www.libertypages.com/clarktech/?p=1496
Note I send each character separately in that script. You can actually send full strings. I just like it abstracted out so I can add a delay if necessary. So I have a function for sending strings.
If you're not familiar with GUI Scripting I'd look at the following tutorial:
http://www.macosxautomation.com/applescript/uiscripting/index.html