如何在Lotus Notes客户端中挂钩“发送"按钮 [英] How to hook the 'send' button in lotus notes client

查看:283
本文介绍了如何在Lotus Notes客户端中挂钩“发送"按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,我不允许接触Domino服务器,但想让我的插件能够在客户端发送电子邮件内容之前立即对其进行修改.我想到的只是添加一个侦听器或以某种方式钩住消息的发送"按钮,该按钮在单击并运行我的代码时保持不变,然后发送消息.有没有人知道这个技巧,或者有其他方法可以达到相同的目的?谢谢. 顺便说一句:我正在Java中使用Lotus Toolkit.

Due to some reasons, I'm not allowed to touch Domino server but would like to make my plugin be able to modify email content right before it's being sent in client side. All comes up in my mind is to add a listener or somehow to hook the 'send' button of a message, which holds on when being clicked and runs my codes, and then sends the message. Is there anyone knowing about this trick, or any other way to meet the same purpose? Thanks. BTW: I'm using Lotus Toolkit in Java.

更新: 我在这里发现了一个非常类似的问题:莲花注释-Java UI-Eclipse插件 但是我发现Querysend仅存在于LotusScript的NotesUIDocument中,而不存在于Java中.奇怪.

Update: I found a very similar question here:Lotus Notes - Java UI - Eclipse plugin But I found Querysend only exists in NotesUIDocument of LotusScript but not Java. Strange.

推荐答案

您有两种选择:在每台Notes客户端计算机上安装使用Notes C API构建的DLL,或对邮件模板进行修改.但是,在后一种情况下,与其在QuerySend事件中实现代码,不如在共享的Send操作的click事件中直接实现代码,这更有意义-那只是Lotus的公式语言,因此,LotusScript都不也不需要Java.

You have two choices: install a DLL built using the Notes C API on every Notes client computer, or make modifications to the mail template. In the latter case, though, rather than implementing your code in the QuerySend event it probably makes more sense to implement to implement your code directly in the click event of the shared Send action - and that is just Lotus' formula language, so neither LotusScript nor Java is needed.

这篇关于如何在Lotus Notes客户端中挂钩“发送"按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆