Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 Mac OS X Mail 应用程序中拦截点击发送?
谢谢
你可以,但这并不一定容易。您应该能够在程序中注入一些代码(参见例如SIMBL和F-Script Anywhere),然后更改按钮的目标。
基本上它可以通过使用来完成Accessibility APIs。我在我的应用程序中收听鼠标点击事件,所以当我得到点击时,我会检查是否Mail.app是最前面的应用程序以及点击是否来自 Send button UIElement。
Accessibility APIs
Mail.app
UIElement