我在XPiNC中有一种方法(Per可以添加该标记)来检查Notes客户端中是否启用了“已调度的本地代理”?或者如何在LotusScript代理中执行此操作。检查代理是否处于活动状态很容易,但这只是等式的一部分
答案 0 :(得分:3)
请参阅NotesAgent类的Trigger和IsEnabled
属性:
TRIGGER_AFTER_MAIL_DELIVERY (2) means "After new mail has arrived" TRIGGER_BEFORE_MAIL_DELIVERY (6) means "Before new mail arrives" TRIGGER_DOC_PASTED (3) means "When documents are pasted" TRIGGER_DOC_UPDATE (5) means "After documents are created or modified" TRIGGER_MANUAL (4) means "Action menu selection" or "Agent list selection" TRIGGER_SERVERSTART (8) means "When the Domino server starts" TRIGGER_NONE (0) is not used TRIGGER_SCHEDULED (1) means "More than once a day," "Daily," "Weekly," "Monthly," or "Never"
修改强>: This forum post suggests检查Notes客户端是否配置为允许运行预定代理可以这样做:
if (Clng( Session.GetEnvironmentValue( "Preferences", True )) and &H8000000) > 0 then
msgbox "scheduled agents allowed"
end if