从 VB6 IDE 退出时自动运行脚本/EXE 以签入 SVN
我想运行一个脚本来在退出 VB6 IDE 时自动执行 SVN 签入。
有没有简单的方法可以在 IDE 中做到这一点? (我想我可以编写一个启动 VB6 IDE 的脚本,等待它退出,然后运行该脚本,但我希望有更简单的东西)。
I'd like to run a script to do a SVN check-in automatically when exiting the VB6 IDE.
Is there any easy way to do that from within the IDE? (I guess I could write a script that launches the VB6 IDE, waits for it to exit, then runs the script, but I'm hoping for something simpler).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然外部脚本看起来不那么麻烦,但看起来您应该能够捕获 VB IDE 关闭并让它触发您的操作。
我不是 VB6 插件方面的专家,但有关于使用 VBE(可扩展性)对象模型创建它们的信息。如果您编写一个实现 VBIDE 事件的插件,也许您可以捕获“OnClose”或类似事件。只要您的项目文件此时已保存,您的脚本就可以执行所需的操作而不会受到干扰。
正如我所说,我不是专家,所以我无法给你直接的建议。但也许这会引起插件专家的参与。(-:
While an external script doesn't seem like that much of a hack, it looks like you ought to be able to catch the VB IDE closing and let that trigger your action.
I'm not any kind of expert on VB6 add-ins, but there's information out there on creating them using the VBE (extensibility) object model. If you write an add-in that implements VBIDE events, perhaps you could catch an 'OnClose' or similar. As long as your project files have been saved by then, your script could do what it needs without interfering.
As I said, I'm no expert so I can't give you direct advice. But maybe this will provoke an add-in maven to chime in. (-: