OnUcOpen
该接口调用的脚本应用程序用于在 UserClient 或 EasyClient 处于打开状态时执行某个操作。
例 1:打开 UserClient 时,属于某个用户的所有项目都会被签出。
例 2:脚本阻止 UserClient 打开,例如因为服务器正在进行工作。在这种情况下,会出现一条消息。
该脚本应用程序的命令行
没有代理时:
OnUcOpen.exe /ConfigFileW:[absolute path of the interface file] /rd:[path of the server archive] /at:s
使用代理时:
OnUcOpen.exe /ConfigFileW:[absolute path of the interface file] /rd:[path of the agent archive] /at:s
接口文件的描述
Common 节
对于此脚本接口,[Common] 部分中仅输出以下键:
- RootDirAdmin
- DirPrjData
- Language
- ComputerName
这些键值在 接口文件的通用部分 中有详细介绍。
Result 节
[Result] 节的键值在 接口文件的通用部分 中有详细介绍。
键 | I/O | 描述 | 值 | 默认 |
---|---|---|---|---|
SuppressOpen | O | 表示脚本是否应阻止 UserClient 打开。 | Y/N | N |
SuppressOpenText [optional] | O | 如果脚本阻止 UserClient 的打开,将会显示一条消息。 可以通过 SuppressOpenText 向该消息中添加可自由配置的文本。 |