【Source Insight 】之marco学习笔记1

时间:2023-03-08 18:42:10

我们学习编程语言都是从Hello World!,现在我们学习marco也不例外

打开C:\Users\%USERPROFILE%\Documents\Source Insight 4.0\Projects\Base路径新建一个HelloWorld.em文件

【Source Insight 】之marco学习笔记1

HelloWorld.em文件内容如下:

macro HelloWorld()
{
msg("Hello World!") // message box appears with "Hello World"
}

双击

【Source Insight 】之marco学习笔记1

将这个helloworld新增到工程中

【Source Insight 】之marco学习笔记1

将这个宏添加一个菜单中

【Source Insight 】之marco学习笔记1

将word中增加helloworld的选项

【Source Insight 】之marco学习笔记1

【Source Insight 】之marco学习笔记1

现在点击helloworld选项

【Source Insight 】之marco学习笔记1