从代码发送 MouseEvent 到 NSView (WebView)
我正在尝试将 mouseevent (MouseClick 或 RightMouseClick)发送到 NSView...在我的例子中是 WebView,其中包含已加载的网站。我想编写一些点击链接等的脚本。如何创建 NSEvent 并将其发送到 WebView 来执行点击?
非常感
谢克斯曼
i am trying to send mouseevent (MouseClick or RightMouseClick) to a NSView... in my case a WebView, that contains a loaded Website. I want to script some clicks on links etc. How is it possible to create a NSEvent and send it to the WebView to perform clicks?
Thanks a lot
ksman
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这有点晚了;也许你找到了,也许你没有。不过,我最近不得不弄清楚这一点,所以我将在这里记录下来,希望对某人有所帮助。
This is a bit late; maybe you found it, maybe you didn't. I recently had to figure this out, though, so I'll document it here and hopefully help someone.