脚本编辑器使用手册
脚本编辑器使用手册

VisualField系统软件流程图脚本编辑器使用手册浙江中控技术股份有限公司声明严禁转载本手册的部分或全部内容。
在不经预告和联系的情况下,本手册的内容有可能发生变更,请谅解。
本手册所记载的内容,不排除有误记或遗漏的可能性。
如对本手册内容有疑问,请与我公司联系。
文档标志符定义警告:标示有可能导致人身伤亡或设备损坏的信息。
WARNING: Indicates information that a potentially hazardous situation which, if not avoided,could result in serious injury or death.电击危险:标示有可能产生电击危险的信息。
Risk of electrical shock: Indicates information that Potential shock hazard where HAZARDOUSLIVE voltages greater than 30V RMS, 42.4V peak, or 60V DC may be accessible.防止静电:标示防止静电损坏设备的信息。
ESD HAZARD: Indicates information that Danger of an electro-static discharge to whichequipment may be sensitive. Observe precautions for handling electrostatic sensitive devices注意:提醒需要特别注意的信息。
ATTENTION: Identifies information that requires special consideration.提示:标记对用户的建议或提示。
TIP:Identifies advice or hints for the user.目录1 软件概述..................................................................................................................................................1-11.1功能特点.......................................................................................................................................1-12 界面介绍..................................................................................................................................................2-12.1标题栏...........................................................................................................................................2-12.2菜单栏...........................................................................................................................................2-12.2.1 文件菜单............................................................................................................................2-12.2.2 编辑菜单............................................................................................................................2-22.2.3 调试菜单............................................................................................................................2-42.2.4 设置菜单............................................................................................................................2-42.2.5 视图菜单............................................................................................................................2-52.2.6 帮助菜单............................................................................................................................2-52.3系统工具栏...................................................................................................................................2-52.4事件向导工具栏...........................................................................................................................2-52.5脚本信息栏...................................................................................................................................2-62.6编辑工具栏...................................................................................................................................2-62.7输出窗口.......................................................................................................................................2-72.8添加函数和事件向导...................................................................................................................2-73 对象属性说明..........................................................................................................................................3-13.1窗体对象.......................................................................................................................................3-13.2图形对象.......................................................................................................................................3-13.3全局变量(A PP).........................................................................................................................3-33.4A CTIVE X控件...............................................................................................................................3-34 控件接口介绍..........................................................................................................................................4-14.1实时报警控件...............................................................................................................................4-14.2趋势控件接口...............................................................................................................................4-15 附录..........................................................................................................................................................5-16 脚本编辑器应用举例..............................................................................................................................6-16.1事件函数.......................................................................................................................................6-16.1.1 OnLButtonUp......................................................................................................................6-16.1.2 OnLButtonDown.................................................................................................................6-16.1.3 OnLButtonDblClk...............................................................................................................6-16.1.4 OnRButtonClk.....................................................................................................................6-16.1.5 OnMouseMove....................................................................................................................6-26.1.6 OnMouseEnter....................................................................................................................6-26.1.7 OnMouseLeave...................................................................................................................6-26.1.8 定时器中的OnTimer事件................................................................................................6-26.1.9 流程图脚本的其它语句说明............................................................................................6-37 资料版本说明..........................................................................................................................................7-1流程图脚本编辑器1软件概述流程图脚本编辑器采用VBScript脚本语言。
codemirror使用手册

Codemirror使用手册1. 介绍Codemirror是一个多功能的文本编辑器库,它可以用来编辑代码和其他类型的文本。
它是一个基于JavaScript的库,可以轻松地嵌入到网页中,为用户提供丰富的编辑功能。
本文将详细介绍如何使用Codemirror,并探讨其在Web开发中的应用。
2. 安装和基本配置在使用Codemirror之前,首先需要将其库文件引入到项目中。
可以通过CDN或者npm进行安装,然后在HTML文件中引入相关的CSS和JS文件。
接着可以通过简单的配置,创建一个基本的编辑器实例。
3. 基本编辑功能Codemirror提供了丰富的编辑功能,例如代码高亮、自动补全、括号匹配、折叠和代码格式化等。
通过配置各种插件和设置,可以定制出适合自己需求的功能。
4. 添加自定义功能除了基本的编辑功能外,Codemirror还支持添加自定义功能。
可以添加特定模式的代码高亮、自定义快捷键、定制编辑器主题等。
这些功能可以通过编写自定义插件来实现。
5. 与其他工具集成Codemirror可以与其他工具进行无缝集成,例如与Git版本控制工具、实时协作编辑工具、代码检查工具等。
通过与这些工具的集成,可以提高团队协作效率,同时改善代码质量。
6. 优缺点分析对于Codemirror的使用,我们需要全面评估其优缺点。
虽然Codemirror提供了丰富的功能和灵活的定制能力,但也有其性能消耗较大、学习曲线较陡等缺点。
在选择使用Codemirror时,需要权衡其优缺点。
7. 总结与展望通过本文的介绍,我们对Codemirror的基本使用和高级功能有了全面的了解。
尽管在使用过程中可能会遇到一些挑战,但通过深入学习和实践,我们可以充分利用Codemirror来提高开发效率和代码质量。
8. 个人观点作为一名开发者,我认为Codemirror是一个非常强大的工具,它为我们提供了丰富的编辑功能和灵活的定制能力。
在我的项目中,我经常使用Codemirror来进行代码编辑,它帮助我提高了工作效率,同时也使我的代码更加整洁和易读。
脚本命令使用说明帮助

4 判断命令
格式: 如果 参数1 < 参数2 否则跳转到 标签名
比较符号有: ( > :大于 < :小于 = :等于 <> :不等于 >= 大于等于 <= 小于等于)
例子:
判断背包物品数量是否大于1的脚本语句是:如果 取值(背包物品数量) > 1 否则跳转到 跳转点太古900分
查询仓库物品数量(物品名称) 例子 查询仓库物品数量(随机卷)
取宝宝太古值(位置编号) 例子 取宝宝太古值(1) 取身上第一个宝宝的太古评分
取宝宝出征状态(位置编号) 例子 取宝宝出征状态(1) 如果 出征状态=0 表示没出征 出征状态=1 表示出征 出征状态
复活宝宝 例子:复活宝宝 1 复活第一个宝宝团战地图才有效果
出征宝宝 同上
合体宝宝 同上
定义变量 例子 定义变量 变量1
变量赋值 例子 变量赋值 变量1 := 1 或者 变量赋值 := 1 + 1 或者 变量1 := 取值(地图ID)
屏蔽对话 例子 屏蔽对话
取值(附近人物数量)
取值(仓库物品数量)
取值(背包物品数量)
取值(身上宝宝数量)
取变量值(变量名称)
查询背包物品数量(物品名称) 例子 查询背包物品数量(随机卷)
1 注释语句 :语句前面加双斜杠为注释语句 注释语句不会执行 例如: //本条为注释
2 标签语句: 格式为 ‘标签:’+ 标签名 用途:作为判断语句 和 跳转语句的跳转点 可以改变脚本的执行顺序。 例子: 标签:跳转点1
3 跳转语句: 格式为 ‘跳转到’+ 空格 + 标签名 用途:直接跳转到指定标签位置 改变脚本执行流程 例子: 跳转到 跳转点1
游戏脚本制作教程

游戏脚本制作教程游戏脚本制作教程在游戏开发中,脚本是非常重要的一部分,它能够控制游戏的流程、角色的行为和交互等。
如果您对游戏脚本制作还不熟悉,本教程将为您提供一些基本的指导,帮助您入门游戏脚本制作。
1.选择合适的脚本编辑工具首先,您需要选择一种合适的脚本编辑工具来编写游戏脚本。
常见的脚本编辑工具有Unity3D、Unreal Engine等。
选择合适的工具可以根据您的需求和技术水平来决定。
2.学习脚本语言大部分脚本编辑工具都使用特定的脚本语言来编写游戏脚本。
比如,Unity3D使用C#或JavaScript来编写脚本,而Unreal Engine使用UnrealScript或蓝图来编写脚本。
您需要学习这些脚本语言的语法和用法,才能编写出正确的游戏脚本。
3.理解游戏逻辑在编写脚本之前,您需要对游戏的逻辑有一个清晰的理解。
您需要知道游戏中有哪些角色,它们之间的关系是怎样的,角色的行为和交互是如何设计的。
只有对游戏逻辑有了深入的理解,才能更好地编写脚本。
4.设计脚本结构在编写脚本之前,您需要设计脚本的结构。
脚本结构应该清晰、合理,便于维护和修改。
您可以按功能模块或场景来设计脚本结构,每个脚本负责不同的功能或场景。
5.编写脚本根据之前设计的脚本结构,您可以开始编写脚本了。
首先,创建一个空白的脚本,并命名为与之前设计的模块或场景相对应的名称。
然后,根据游戏逻辑,按照脚本语言的语法和用法,编写相应的代码。
6.调试和测试在编写脚本过程中,可能会出现错误或逻辑上的问题。
因此,您需要进行调试和测试,以确保脚本的正常运行。
可以通过调试工具来查看脚本的执行过程,以及变量的值是否正确。
同时,您还可以进行游戏的测试,以验证脚本的逻辑是否符合预期。
7.优化和改进在测试过程中,您可能会发现脚本的性能有待优化,或者需要改进某些功能。
这时,您可以根据需求对脚本进行优化和改进。
比如,您可以减少脚本的复杂度,提高执行效率;或者添加一些新的功能或交互,增强游戏的乐趣。
脚本编写教程

脚本编写教程脚本编写教程脚本编写是指通过一系列的计算机指令和命令来实现特定功能的过程。
脚本可以用于自动化任务、编写小工具以及简化复杂操作等场景。
本篇教程将介绍脚本编写的基本步骤和一些常用的脚本编程语言。
第一步是选择脚本编程语言。
目前,常用的脚本编程语言有Python、JavaScript、Shell等。
Python是一种易于学习且功能强大的编程语言,适合初学者使用。
JavaScript主要用于网页交互和浏览器中,而Shell主要用于系统管理和批处理任务。
根据实际需求选择合适的语言。
第二步是学习脚本编程的基本语法。
无论选择哪种语言,都需要掌握其基本语法和常用操作。
例如,Python中常用的语法包括变量定义、条件判断、循环语句和函数定义等。
可以通过阅读教程、参考书籍或在网上搜索相关资料来学习语法知识。
第三步是确定脚本的功能和实现逻辑。
在开始编写脚本之前,需要明确脚本的功能和要实现的逻辑。
例如,如果要编写一个自动备份文件的脚本,需要确定备份的目录和文件,以及备份的频率等。
第四步是编写脚本代码。
根据已确定的功能和逻辑,开始编写脚本代码。
在编写代码时,可以借助文本编辑器或集成开发环境(IDE)来实现代码的编辑和调试。
编写脚本时需要注意代码的可读性和可维护性,可以通过注释、代码缩进等方式提高代码的质量。
第五步是测试和调试脚本。
编写完成后,需要对脚本进行测试和调试,确保其能正常运行并按预期输出结果。
可以通过输入不同的输入,测试脚本对各种情况的处理能力。
如果发现问题,可以通过查看错误提示、打印调试信息等方式来进行调试。
最后,进行脚本的部署和应用。
完成脚本的编写和调试后,可以将脚本部署到需要使用的环境中,并应用于实际场景中。
脚本的部署方式根据不同的需求和平台有所不同,可以通过命令行执行、集成到其他系统中或定时运行等方式来使用脚本。
总结起来,脚本编写是一个将功能和逻辑转化为计算机指令的过程。
通过选择适合的脚本编程语言、学习基本语法、确定功能和逻辑、编写代码、进行测试和调试、最后部署应用,可以完成一个脚本的编写过程。
Photoshop批处理脚本编写指南

Photoshop批处理脚本编写指南第一章:介绍Photoshop是一款功能强大的图像编辑软件,在处理大量相似图片时,手动重复相同操作非常耗时且繁琐。
为了提高工作效率,我们可以利用Photoshop的批处理脚本功能,自动化执行重复的任务。
本指南将介绍如何编写Photoshop批处理脚本来简化工作流程。
第二章:了解批处理脚本2.1 批处理脚本是什么?Photoshop批处理脚本是一段脚本代码,它可以自动化执行多个操作,如调整图像大小、应用滤镜效果、处理图层等。
通过编写脚本,我们可以将这些操作应用于数百甚至数千张图像,节省大量时间和精力。
2.2 工作原理Photoshop批处理脚本通过Actions面板记录用户在软件中执行的操作。
当我们运行一个批处理脚本时,实际上是按照Actions面板中的操作顺序,对选定的图像执行相同的操作。
第三章:准备工作3.1 安装脚本首先,确保已正确安装Photoshop软件,并且版本号兼容所使用的脚本。
随后,在Photoshop菜单中选择 "窗口" -> "动作",打开Actions面板。
3.2 创建一个新的动作在Actions面板中,通过点击"新建动作"按钮来创建一个新的动作。
命名这个动作,并选择一个有意义的功能分类。
然后,点击"记录"按钮开始记录操作。
第四章:编写批处理脚本4.1 脚本语言Photoshop批处理脚本采用JavaScript编写。
如果对JavaScript不熟悉,可以在网上找到相关教程和资源,快速入门这门编程语言。
4.2 编写脚本代码通过Actions面板记录执行的操作之后,可以将其导出为脚本。
选中想要导出的动作,点击Actions面板右上角的菜单图标,选择"导出动作"。
然后,选择保存路径和文件名,点击"保存"按钮。
导出的脚本文件(.jsx)可以使用文本编辑器打开。
脚本编辑器的写法

脚本编辑器的写法 哈哈,⼜学到⼀项新技能,以后不⽤写重复脚本啦,以往读取数据库⽂件⼀个⼀个往脚本中添加是件很⿇烦的事情,这个新技能能省很多事情, 所谓的新技能就是通过⼀个脚本把重复的东西逻辑化,创造⼀个模板,就相当于打印机⼀样,废话不多说,直接上代码1using System.Collections;2using System.Collections.Generic;3using UnityEngine;4using System.IO;5using UnityEditor;6using System.Collections.Generic;7using System.Text;8using Debug = UnityEngine.Debug;9using System;1011public class LoadTable {1213private static string ExportDir;14 List<string> table = new List<string>();1516 [MenuItem("Tools/Help/Load")]17static void Init()18 {19 LoadTable load = new LoadTable ();20 load.Export ();21 }2223public void Export()24 {25string texts = "";26272829for(int i = 0; i < Resources.LoadAll ("Plugin/Scripts").Length; i++)30 {31 table.Add (Resources.LoadAll ("Plugin/Scripts")[i].name);32 }33 ProcessTable ();34 }353637void ProcessTable ()38 {3940string strFileText = "";41string strFullfilePath = Application.dataPath +"/LoadTheTable.cs";4243 strFileText += "\nusing UnityEngine;\n\n";44 strFileText += "public class LoadTheTable{\n";4546foreach(var strTableName in table)47 {48 strFileText += " public " + strTableName + "" + strTableName + " = null;\n";49 strFileText += " public TextAsset " + strTableName + "s = null;\n\n";50 }5152 strFileText += " private static LoadTheTable loadTheTable;\n";53 strFileText += " public static LoadTheTable Instance(){\n";54 strFileText += " if(loadTheTable == null)";55 strFileText += " {\n";56 strFileText += " loadTheTable = new LoadTheTable ();\n";57 strFileText += " }\n";58 strFileText += " return loadTheTable;\n";59 strFileText += " }\n\n";6061foreach(var strTableName in table)62 {63 strFileText += " public " + strTableName + " Get" + strTableName + "(){\n";64 strFileText += " if(" + strTableName + " == null){\n";65 strFileText += "" + strTableName + " = new " + strTableName + "();\n";66 strFileText += " }\n";6768 strFileText += " if(" + strTableName + "s == null){\n";69 strFileText += " string tableName = \"Plugin/Data/" + "\"" + ";\n";70 strFileText += " tableName += " + strTableName + ".csvName;\n";71 strFileText += "" + strTableName + "s = Resources.Load<TextAsset> (tableName);\n";72 strFileText += "" + strTableName + ".Load(" + strTableName + "s);\n";73 strFileText += " }\n";74 strFileText += " return " + strTableName + ";\n";75 strFileText += " }\n\n";76 }77 strFileText += "}\n";7879using (StreamWriter s = new StreamWriter (strFullfilePath, false, Encoding.UTF8))80 s.WriteLine (strFileText);81 }82 }这样多简单和写⽅法⼀样,仅仅只是对字符串进⾏处理,把需要处理的提取出来就⾏,还有⼀种更加简单的⽅法,等抽空在提炼⼀下。
油猴脚本编写教程详解

油猴脚本编写教程详解油猴脚本(Tampermonkey)是⼀个⾮常流⾏的浏览器扩展,它可以运⾏由⼴⼤社区编写的扩展脚本,来实现各式各样的功能,常见的去⼴告、修改样式⽂件、甚⾄是下载视频。
今天我们就来看看如何编写⾃⼰的油猴脚本。
当然为了运⾏油猴脚本,你应该在浏览器中安装油猴插件。
安装油猴插件安装油猴插件⾮常简单,直接在浏览器的扩展商店中安装即可。
国产浏览器的话⼀般可以通过下载扩展⽂件⼿动拖动的⽅式来安装。
下图是微软新版Edge浏览器的扩展商店,直接搜索Tampermonkey即可。
也可以点击这⾥下载新建脚本也可以点击这⾥获取已经写好的⾸先在浏览器右上⾓找到并点击油猴插件,选择添加新脚本。
然后就会打开如图所⽰的编辑器窗⼝,我们就可以在其中编辑⾃⼰的脚本⽂件了。
如果你喜欢的话,还可以将脚本内容复制到合适的编辑器中编辑,完成之后再复制回来。
如果你点击开发者菜单的话,可以选择ES6模板,然后就可以在脚本中使⽤新版JavaScript的特性了,它会有Babel转译回ES5。
不过这个模板貌似有点问题,⽤了它就没办法使⽤代码纠错功能了。
所以这⾥我还是选择了默认的ES5模板。
脚本编写⽅法功能注释⾸先来看看脚本的内容,上⾯是⼀⼤排注释,这些注释可以⾮常有⽤的,它表明了脚本的各个属性。
下⾯来简单介绍⼀下。
属性名作⽤name油猴脚本的名字namespace命名空间,类似于Java的包名,⽤来区分相同名称的脚本,⼀般写成作者名字或者⽹址就可以了version脚本版本,油猴脚本的更新会读取这个版本号description描述,⽤来告诉⽤户这个脚本是⼲什么⽤的author作者名字match只有匹配的⽹址才会执⾏对应的脚本,例如 * 、 http://* 、 /*等,参见⾕歌开发者⽂档grant 指定脚本运⾏所需权限,如果脚本拥有相应的权限,就可以调⽤油猴扩展提供的API与浏览器进⾏交互。
如果设置为 none 的话,则不使⽤沙箱环境,脚本会直接运⾏在⽹页的环境中,这时候⽆法使⽤⼤部分油猴扩展的API。
浙大中控ECS-700脚本编辑器使用手册

流程图脚本编辑器使用手册
浙江中控技术股份有限公司
声明
严禁转载本手册的部分或全部内容。 在不经预告和联系的情况下,本手册的内容有可能发生变更,请谅解。 本手册所记载的内容,不排除有误记或遗漏的可能性。如对本手册内容有疑问,请与
我公司联系。
文档标志符定义
警告:标示有可能导致人身伤亡或设备损的信息。
注意:提醒需要特别注意的信息。
ATTENTION: Identifies information that requires special consideration.
提示:标记对用户的建议或提示。 TIP:Identifies advice or hints for the user.
目录
1 软件概述..................................................................................................................................................1-1 1.1 功能特点 .......................................................................................................................................1-1
3 对象属性说明..........................................................................................................................................3-1 3.1 窗体对象 .......................................................................................................................................3-1 3.2 图形对象 .......................................................................................................................................3-1 3.3 全局变量(APP).........................................................................................................................3-3
按键精灵编程

使用步骤如下:1. 制作脚本:按照个人需求从网上搜集脚本或者自己制作脚本。
如果您的脚本是从别的地方收集的,请先把脚本文件拷贝到按键精灵文件夹下的script文件夹中,然后再运行按键精灵。
2.选择有效的窗口:建议您选择“对所有窗口有效”。
如果您只需要脚本当某个窗口在前台时有效,请选择窗口名称,比如“龙族”3.让需要执行的脚本“有效”,只有“有效”一栏中勾中的脚本才会执行。
4.进入游戏(或者其他需要使用按键精灵的软件),在需要使用脚本的时候按下脚本的“快捷键”,按键精灵就会忠实的为您工作了。
按键精灵主界面图:主界面及功能按钮主界面功能简介:增加:增加一个新的脚本。
修改:修改当前选中的脚本。
删除:删除当前选中的脚本,可以同时选中多个脚本进行删除。
录制:录制新的脚本,新手制作脚本首选功能。
上传:将当前脚本上传至按键精灵网站,与他人进行交流。
全部有效/无效:让所有脚本有效或者无效。
注册:注册按键精灵,使用正版软件。
帮助:查看用户帮助手册。
图:录制功能录制功能简介:强烈推荐的功能!能够忠实记录您的动作,并在脚本执行时回放,新手也可随心所欲制作脚本。
按下ScrollLock键就可以开始录制,再次按下就可停止录制,最后保存即可。
如果您需要按键精灵忠实的记录鼠标移动轨迹,在后面的“记录鼠标移动轨迹”前面打个勾就可以了。
录制过程中可以随便移动录制工具条,不会对您录制的动作产生任何影响。
图:上传脚本上传脚本功能简介:在主界面选择一个脚本,点击“上传”按钮就可以进入上传脚本界面。
您可以将自己比较得意的脚本上传到我们的服务器。
在您的脚本上传成功之后,我们将会进行人工审核。
不错的脚本都会被我们推荐给其他玩家共同学习。
上传时按键精灵会自动填写一些信息。
请您在“脚本说明”里写上脚本的用途、制作思路等你认为对其他人有帮助的信息。
没有说明或者说明不清楚的脚本将无法获得推荐。
:-)脚本编辑器图:脚本编辑器界面脚本编辑器使用说明:在动作选择区选择动作,插入右边的脚本内容区即可。
Intouch函数脚本与逻辑使用指南

本文所提及且已知为商标或服务标志的所有专用名词均已采用适当的首字母大写形式。 Invensys Systems, Inc. 无法证实此类信息的准确性。在本文档中使用某个专用名词不 应视为会影响任何商标或服务标志的有效性。 Alarm Logger、 ActiveFactory、 ArchestrA、 Avantis、 DBDump、 DBLoad、 DT Analyst、 FactoryFocus、 FactoryOffice、 FactorySuite、 FactorySuite A2、 InBrialRAD、 IndustrialSQL Server、 InTouch、 MaintenanceSuite、 MuniSuite、 QI Analyst、 SCADAlarm、 SCADASuite、 SuiteLink、 SuiteVoyager、 WindowMaker、 WindowViewer、 Wonderware 以及 Wonderware Logger 均为 Invensys plc 及其子公司与附属公司的商标。所有其它品牌 可能是其相应所有者的商标。
$LogicRunning 系统标记 ................................................37
第 4 章 脚本语言 ................................................39
基本语法规则 ......................................................................40 子程序 ..............................................................................40 语句.................................................................................. 40 缩进.................................................................................. 40 注释.................................................................................. 40 标记引用 ..........................................................................41 数据值 ..............................................................................41 值表达式 ..........................................................................41 语法验证 ..........................................................................41
SimpleBGC 32bit脚本语言参考手册说明书

Scripting Language ReferenceSimpleBGC 32bitActual firmware version: 2.70b5 and aboveUpdated: 17. Oct. 2021OverviewScripting language is intended to control a gimbal by user-written program. This program is uploaded to controller and executed there without a connection to PC. Program can be started by a command from remote controller (RC), menu button or GUI button.There is a simple editor in the SimpleBGC GUI with the syntax checking and tracing of the execution process, but you can use any text editors you like to edit scripts.General rules•Each line can contain only one command•Command may have up to 10 named parameters separated by space.•All values must be in decimal notation with a fractional part separated by a dot. Fractional part can be omitted.•You can add comments starting line with the # character, but comments are not saved to the board. Command notation:ANGLE RA(10) PA(10) ...command parameter name value other parametersSome commands may have one-letter abbreviation, for example “ANGLE” has a shortcut “A”.Parameters controlled in real-time (frw. ver. 2.60b3)Values of parameters in any command can be dynamically updated during the execution of a program by linking them to any of RC signal sources. Just specify the signal source name and the desired range of the parameter's value, and RC signal will be captured and mapped to this range at the start of the command. Note that the value is not updated during the command execution.All available RC signal source names are listed in the Appendix 3.Usage:<PARAMETER_NAME>(<RC_SOURCE_NAME>[<min_value>,<max_value>])The advanced scripting version supports also variables as parameter values. Variables may be set by the command SET_ADJ_VAR.Usage:<PARAMETER_NAME>(<VARIABLE_NAME>[<offset>,<scale>]), where parameter value is calculated as “<variable_value>*<scale> + <offset>”Examples:ANGLE RA(ADC1[-50,50]) PA(RC_VIRT_CH_1[0,90])SPEED YS(TMP_VAR_1[0,1])Advanced functionsSome versions of SBGC32 controller having big FLASH and RAM memory size, support advanced functions which do not present in the basic version of script processor:•Temporarily variables can be set by SET_ADJ_VAR command and used as a signal source in other commands;•Basic arithmetic operations;•IF .. GOTO command to implement control flow of the script (loops, conditional forks);•Motion synchronization option to synchronize trajectory between axes in commands ANGLE, INC.Advanced script functions are supported in the following controllers:•“Extended” series: “Extended”, “Extended long”, “Pro”, “CAN_MCU”, “OEM”•“Plus” series: “Regular+”, “Tiny+”Command referenceA, ANGLE — rotation to the absolute angle with a given speedCommand stops the program and waits until the angle reaches a given value. Rotation is done by the shortest path. If you want to turn the camera on the relative angle greater than ± 180 degrees, use the INC command instead. You can set the speed for each axis. If speed is not set, will be used the current value defined in the settings or command “CONFIG”.Parameters:RA(10.0) — target angle by the ROLL axis, in degreesPA(10.0) - target angle by the PITCH axisYA(10.0) - target angle by the YAW axisRS(10.0) — speed by the ROLL axis, degree/sec. in range 0..2000, special value 0 is used to synchronize motion with other axis.PS(10.0) - speed by the PITCH axisYS(10.0) - speed by the YAW axisTIMEOUT(60.0) – wait timeout. If not specified, it is 60 seconds by default.(supported in firmware ver.2.59+)Example:A RA(0) PA(0) YA(0)# go to home position by all axesA YA(70) YS(1)# rotate YAW to 70 degree with the speed 1 degree/sec.Motion synchronizationThe advanced scripting version in firmware 2.70b5 and above provides an option to synchronize a motion of any axis with the motion of another axis by specifying its speed parameter = 0. The last axis with the 'angle' parameter preceding the zero 'speed' parameter in the parameter string is selected as a sample for synchronization. Target angles should be specified for both axes and should differ from current angles. Example:A RA(0) PA(0) YA(0)# move to the initial positionA PA(20) PS(50) YA(90) YS(0)# YAW axis is asked to be synchronized with the PITCH axis. YAW travels 90°, but it takes exactly the same time as PITCH traveling 20°. Both axes have perfectly matched acceleration / deacceleration ramps.Wrong examples:A YA(90) YS(0)# error: sync sample is not definedA PA(0) YA(90) YS(0)# error: target angle in the sample should differ from its current angleI, INC - rotation by the relative angle with a given speedCommand stops the program and waits until the angle rotates by a given value. Angle should not exceed two full turns. The motion synchronization option is supported.Parameters:RA(10.0) — target angle by the ROLL axis, in degrees. Range -720..720PA(10.0) - target angle by the PITCH axisYA(10.0) - target angle by the YAW axisRS(10.0) — speed by the ROLL axis, degree/sec. in range 0..2000, special value 0 is used to synchronize motion with other axis.PS(10.0) - speed by the PITCH axisYS(10.0) - speed by the YAW axisTIMEOUT(60.0) – wait timeout. If not specified, it is 60 seconds by default.(supported in firmware ver.2.59+)Example:I YA(270)# rotate by YAW by 270 degree from current positionS, SPEED - turn with a given speed until it encounters another command SPEED, ANGLE, INC or the end of the program.The camera starts moving and program execution continues without delay.Parameters:RS(10.0) — speed by ROLL axis, degree/sec. Range -2000..2000.PS(10.0) - speed by PITCH axisYS(10.0) - speed by YAW axisExample:S YS(5.5)# panning by YAW with the speed 5.5 degree/secS RS(0) PS(0) YS(0)# full stopR, RESET — set the YAW angle = 0 for the current positionParameters:noT, TRIGGER — trigger the state of the output pinsParameters:1(0) — pin ID * and its state:0 – LOW (GND)1 — HIGH (+3.3V)2 – FLOATING (frw.ver. 2.66+)3 – FLOATING + PULLUP 3.3V (frw.ver. 2.66+)TIMEOUT(0.01) (optional) – if specified, program execution is delayed by a given time, in seconds.** At the end of the timeout the specified pins will be inverted (HIGH → LOW, LOW → HIGH). Don't set this parameter if you need to keep pin'sstate after triggering. A necessary delay may be created by the separate 'DELAY' command.* Mapping between Pin ID and physical port can be found in the Appendix 1. The pin should be free of otherfunctions (for example, not be used as an input in the RC settings tab).** Accuracy is ±1 millisecond. Specifying a timeout can be useful for example, to manually set the shutterspeed when shooting HDR images.Example:T 1(1) 2(1)# switch outputs ID=1,2 to a HIGH stateT 1(1) TIMEOUT(0.020)# switch output ID=1 to a HIGH state and return back to LOW after 20ms SERVO — set PWM signal pulse width on the specified pinThis command is used to control the servos connected to the special pins that supports output of PWM signal. PWM rate can be changed in the GUI (RC - PWM Output - PWM Rate, Hz).Parameters:1(1500) — Servo ID* and pulse duration, microseconds. For regular servo values are in the range 900-2100. Special value -1 frees pin and makes it high-impedance input.TIME(3)** — travel time to target position, in secondsTIMEOUT(1) — when target is reached, program execution is delayed by a giventime, in seconds.* Mapping between Servo ID and physical port can be found in the Appendix 1. The pin should be free of other functions (for example, not be used as an input in the RC settings tab).**Firmware ver. 2.5x and aboveExample:SERVO 1(1500) 2(1500)# move two servos to a middle positionSERVO 1(1000) TIME(3)# slowly move from 1500 to 1000 in 3 secondsSERVO 1(2000) TIMEOUT(1)# set new value and wait 1 secondSERVO 1(-1) 2(-1)# free two outputsD, DELA Y - delay of program executionParameters:TIMEOUT(10) — delay, in seconds. Accuracy ±1 milliseconds.Example:D TIMEOUT(0.300)# delay for 300 millisecondsW, WAIT – waiting for the specified angle or speedProgram execution is delayed until all specified conditions will be satisfied, or a given timeout will be expired. Parameters:RA(10.0) — angle by the ROLL axis, in degreesPA(10.0) — angle by the PITCH axisYA(10.0) — angle by the YAW axisRS(0) - speed by the ROLL axis, in degrees/sec.PS(0) - speed by the PITCH axisYS(0) - speed by the YAW axisTIMEOUT(10) – max. time of waiting, in seconds. Default is 60 sec.Example:W YA(30)# wait for YAW angle=30 degreeW RA(0) PA(0) YA(0)# wait for angle=0 for all axesW YS(0) TIMEOUT(1)# wait to stop motion by YAW axis, but not more than 1 second. CONFIG — configure some parameters used in program executionParameters:ACC_LIMIT_R(100), ACC_LIMIT_P(100), ACC_LIMIT_Y(100) — acceleration limit for the ROLL, PITCH, YAW axes, degrees/sec²SPEED_R(10), SPEED_P(10), SPEED_Y(10) — speed for the ROLL, PITCH, YAW axes, degree/sec. Range is 0..2000. Initial value is taken from the “RC SPEED” parameters INIT_SYSTEM_ON_FINISH(1) (ver. 2.60b3+) – if set to 1 (default), system will be re-initialized when script finishes (all parameters and modes of operation will be returned to default). If set to 0, system will be left in it's current state.JERK_SLOPE_R(50), JERK_SLOPE_P(50), JERK_SLOPE_Y(50) (ver. 2.66+) — jerk limiter for the ROLL, PITCH, YAW axis, the rise/fall time in msThe changed parameters are not saved to the persistent memory and will be reset to their original values when program is finished.Example:С ACC_LIMIT_R(100) SPEED_Y(5) # set an acceleration limit for the ROLL axis to 100 degree/sec² and a speed for YAW axis to 5 degree/sec.MENU_CMD — execute a menu command(frw. ver. 2.60b3+)Parameters:CMD_ID(10) – command ID to run. Full list of commands is listed in the Appendix 2. In case of any command is missed there, it can be found in the Serial API documentation. Script parser does not wait for command to be finished!TIMEOUT(1) – program execution is delayed by a given time, in seconds.SET_ADJ_VAR — set the value of adjustable variable (frw. ver. 2.61)Parameters:NAME(GYRO_TRUST) – name of variable. All names are provided in the SBGC32 User Manual, "Adjustable variables" section.VALUE(100) – new value to set.You can specify up to 5 pairs NAME - VALUE in a single commandExample:SET_ADJ_VAR NAME(RC_SPEED_PITCH) VALUE(60) NAME(RC_SPEED_ROLL) VALUE(50)The advanced scripting version supports temporarily variables and arithmetic operations on them. Variables can be used as parameters in other commands, can be sent for external logging, or used for flow control (see IF .. GOTO command definition). System keeps their values between script executions, so you need to reset values at the start of the script, if needed.Variables:•TMP_VAR_1 .. TMP_VAR_10 (floating point type) – may be used in a script only•API_VIRT_CH_1 .. API_VIRT_CH_32 (int16 type) – may be used as a source ofcontrol signal in all places where RC channels are assigned, value ±16384encodes the full RC range.Operations:OPERATOR(=+-*/%) – do arithmetic operation on two values, where 1st value isresult of all previous calculations and 2nd value is a value of the nextparameter in sequence. If OPERATOR goes next to the NAME parameter, the current value of the variable is used.Examples:SET_ADJ_VAR NAME(TMP_VAR_1) VALUE(1) NAME(TMP_VAR_2) VALUE(1)Result: TMP_VAR_1 = 1, TMP_VAR_2 = 1SET_ADJ_VAR NAME(TMP_VAR_1) OPERATOR(+) VALUE(10)Result: TMP_VAR_1 = 11SET_ADJ_VAR NAME(TMP_VAR_3) VALUE(TMP_VAR_1[0,1]) OPERATOR(+) VALUE(TMP_VAR_2[-5,4])OPERATOR(*) VALUE(10)Result: TMP_VAR_3 = (11 + (1*4 - 5))*10 = 100PLA Y_SOUND — plays standard sound and blinks LED (frw. ver. 2.68)Parameters:CMD_ID(1) – sound to play:•1 – calibration•2 – confirmation•4 – error•8 – alarm•16 – single click•32 – action complete•64 – startup melodyModifiers (can be combined with the ID by OR operator):•16384 – silent mode: do not emit sound, just blink LEDTIMEOUT(1) – program execution is delayed by a given time, in seconds. If notimeout is specified, program goes to a next command, playing sound in thebackground.IF — conditional flow control of the script (frw. ver. 2.69b7)The advanced scripting version supports a flow control using IF .. GOTO command together with theSET_ADJ_VAR command and temporarily variables.Parameters:NAME(<VARIABLE_NAME>) – name of the variable to compare, one of the:•TMP_VAR_1..TMP_VAR_10 – floating point type•API_VIRT_CH_1..API_VIRT_CH_32 – int16 type•all adjustable variables listed in “User Manual”VALUE(<value | RC source[min,max] | variable[offset,scale]>) – value to compare.It may be a regular decimal value or RC signal source/variable.COND(<condition>) – condition to be used in a comparison of variable and thefollowing VALUE parameter. Both values are rounded to integers before comparing, excepting >> and << operations.•= - equal•!= - not equal•> - greater•>= - greater or equal•< - less•<= - less or equal•>> - greater, not rounded•<< - less, not roundedGOTO(<line number | label_name>) – line number in script to jump if condition is true. It's recommended to use labels instead. You can place label before anycommand or on empty line, in a form of “LABEL_NAME: mand..”Command expects two values, provided by the NAME or VALUE parameters, one COND parameter and one GOTO parameter. In case of (NAME|VALUE)x2 and COND parameters are missed, GOTO will do unconditional jump.Example: repeat INC command 10 times to rotate YAW axis by 10-degree steps, sending a short pulse to pin AUX1 after each step.SET_ADJ_VAR NAME(TMP_VAR_1) VALUE(0)LOOP1: SET_ADJ_VAR NAME(TMP_VAR_1) OPERATOR(+) VALUE(1)INC YA(10)TRIGGER 16(1) TIMEOUT(0.5)IF NAME(TMP_VAR_1) COND(<) VALUE(10) GOTO(LOOP1)Appendix 1. Mapping between pin IDs and physical ports Labeling on the board Trigger pin ID Servo ID RC_ROLL1-RC_PITCH23 RC_YAW5-EXT_FC_ROLL31 EXT_FC_PITCH42 AUX1164 AUX217-AXU318-BUZZER32-Appendix 2: Menu commands MENU_CMD_PROFILE1 = 1MENU_CMD_PROFILE2 = 2MENU_CMD_PROFILE3 = 3MENU_CMD_SWAP_PITCH_ROLL = 4MENU_CMD_SWAP_YAW_ROLL = 5MENU_CMD_CALIB_ACC = 6MENU_CMD_RESET = 7MENU_CMD_SET_ANGLE = 8MENU_CMD_CALIB_GYRO = 9MENU_CMD_MOTOR_TOGGLE = 10MENU_CMD_MOTOR_ON = 11MENU_CMD_MOTOR_OFF = 12MENU_CMD_FRAME_UPSIDE_DOWN = 13 MENU_CMD_PROFILE4 = 14MENU_CMD_PROFILE5 = 15MENU_CMD_AUTO_PID = 16MENU_CMD_LOOK_DOWN = 17MENU_CMD_HOME_POSITION = 18MENU_CMD_RC_BIND = 19MENU_CMD_CALIB_GYRO_TEMP = 20 MENU_CMD_CALIB_ACC_TEMP = 21MENU_CMD_BUTTON_PRESS = 22MENU_CMD_RUN_SCRIPT1 = 23MENU_CMD_RUN_SCRIPT2 = 24MENU_CMD_RUN_SCRIPT3 = 25MENU_CMD_RUN_SCRIPT4 = 26MENU_CMD_RUN_SCRIPT5 = 27MENU_CMD_CALIB_MAG = 33MENU_CMD_LEVEL_ROLL_PITCH = 34 MENU_CMD_CENTER_YAW = 35MENU_CMD_UNTWIST_CABLES = 36MENU_CMD_SET_ANGLE_NO_SAVE = 37 MENU_HOME_POSITION_SHORTEST = 38 MENU_CENTER_YAW_SHORTEST = 39 MENU_ROTATE_YAW_180 = 40MENU_ROTATE_YAW_180_FRAME_REL = 41 MENU_SWITCH_YAW_180_FRAME_REL = 42 MENU_SWITCH_POS_ROLL_90 = 43MENU_START_TIMELAPSE = 44MENU_CALIB_MOMENTUM = 45MENU_LEVEL_ROLL = 46MENU_LOAD_PROFILE_SET1 = 48MENU_LOAD_PROFILE_SET2 = 49MENU_LOAD_PROFILE_SET3 = 50MENU_LOAD_PROFILE_SET4 = 51MENU_LOAD_PROFILE_SET5 = 52MENU_LOAD_PROFILE_SET_BACKUP = 53 MENU_INVERT_RC_ROLL = 54MENU_INVERT_RC_PITCH = 55MENU_INVERT_RC_YAW = 56MENU_SNAP_TO_FIXED_POSITION = 57 MENU_CAMERA_REC_PHOTO_EVENT = 58 MENU_CAMERA_PHOTO_EVENT = 59 MENU_MOTORS_SAFE_STOP = 60 MENU_CALIB_ACC_AUTO = 61Appendix 3: RC signal source namesHardware inputs for PWM format:RC_ROLL_PWMRC_PITCH_PWMRC_YAW_PWMFC_ROLL_PWMFC_PITCH_PWMRC input should be enabled (i.e. assigned to control of any axis or CMD channel in the RC settings).Analog inputs (joystick connection):ADC1ADC2ADC3Sum-PPM or serial protocols (Spektrum, s-bus):RC_VIRT_CH_1RC_VIRT_CH_2..RC_VIRT_CH_31Desired serial protocol should be selected in the RC settings;Channels 20..31 have special meaning: they are linked to the sin, cos of the angles of motors.Serial API virtual channels (can be set by the external devices or mobile applications connected by SBGC Serial API protocol):API_VIRT_CH_1API_VIRT_CH_2..API_VIRT_CH_31Example 1: Shooting 3-row spherical panorama with increment of 60 degrees in 20 seconds, AUX1 controls the shutter.# Setup a high speed for a quick completion of the panoramaCONFIG SPEED_R(200) SPEED_P(200) SPEED_Y(200) ACC_LIMIT_R(500) ACC_LIMIT_P(1000) ACC_LIMIT_Y(500) # Reset the origin of the YAW: Start recording with the current azimuthR# Turn off the shutter pinT 16(0)# Make 1st shot in the zenith position: raise the camera verticallyA RA(0) PA(-90) YA(0)# Make a shotT 16(1) TIMEOUT(0.100)# Tilt 45 degrees up to make the 1st rowA RA(0) PA(-45) YA(0)T 16(1) TIMEOUT(0.100)# Panning with increment of 60 degrees clockwiseA YA(60)T 16(1) TIMEOUT(0.100)A YA(120)T 16(1) TIMEOUT(0.100)A YA(180)T 16(1) TIMEOUT(0.100)A YA(240)T 16(1) TIMEOUT(0.100)A YA(300)T 16(1) TIMEOUT(0.100)# Camera is tilted 0 degrees to make 2nd rowA RA(0) PA(0) YA(0)T 16(1) TIMEOUT(0.100)# Panning with increment of 60 degrees counterclockwise (avoid double-twisting of the wires)A YA(-60)T 16(1) TIMEOUT(0.100)A YA(-120)T 16(1) TIMEOUT(0.100)A YA(-180)T 16(1) TIMEOUT(0.100)A YA(-240)T 16(1) TIMEOUT(0.100)A YA(-300)T 16(1) TIMEOUT(0.100)# Tilt 45 degrees down to make the 3rd rowA RA(0) PA(45) YA(0)T 16(1) TIMEOUT(0.100)# Panning with increment of 60 degrees clockwiseA YA(60)T 16(1) TIMEOUT(0.100)A YA(120)T 16(1) TIMEOUT(0.100)A YA(180)T 16(1) TIMEOUT(0.100)A YA(240)T 16(1) TIMEOUT(0.100)A YA(300)T 16(1) TIMEOUT(0.100)# Shoot in the nadir positionA YA(0) PA(90)T 16(1) TIMEOUT(0.100)# Returns the camera to its original position (untwist wires) A RA(0) PA(0)I YA(-360)### End of program ###Example 2: Pan at 5 deg/sec by 90 degrees. AUX1 operates recording # Reset the origin of the YAW: Start recording with the current azimuthR# Tilt the camera 30 degrees down and level itA RA(0) PA(30) YA(0)# Start recordingT 16(1)# Writing freeze for 3 seconds.D TIMEOUT(3)# Setup low acceleration for smooth start and stop of the motionCONFIG ACC_LIMIT_Y(5)# Panning with a speed of 5 degree/sec. clockwiseS YS(5)# Wait until turned by 90 degrees.W YA(90)# Stop panning (de-acceleration starts here)S YS(0)# Wait until de-acceleration is finishedW YS(0)# Writing freeze for 3 seconds.D TIMEOUT(3)# Stop recordingT 16(0)### End of program ###Example 3: Time-lapse shooting with minimized gyroscope drift# Let system to know that the frame is still, to compensate a drift of gyroscope;SET_ADJ_VAR NAME(FRAME_HEADING_ANGLE) VALUE(0)# Set the 'gyro trust' parameter low enough to better compensate drift of gyroscopeSET_ADJ_VAR NAME(GYRO_TRUST) VALUE(60)# (Optional) move camera to the desired initial position. Skip this command to start from the current position#ANGLE PA(0) RA(0)# Pan left with the speed 0.1 degrees/sec and tilt up with the speed half slower.SPEED YS(0.1) PS(-0.05)# Wait 10 minutesDELAY TIMEOUT(600)。
Adobe FrameMaker 2022 脚本编程指南说明书

August 2022Adobe FrameMaker Scripting GuideContents Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1About this document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Naming conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Typographic conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Scripting support in FrameMaker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Development and debugging tools in ExtendScript toolkit . . . . . . . . . . . . . . . . . . . 2 ExtendScript capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Creating Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Accessing ESTK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Connect ESTK to FrameMaker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 To write, edit, and run scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Using script library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Using object model viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 ExtendScript use cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5What’s new in ESTK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Export and import XLIFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Sample ESTK scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Adding text to a document and enabling change bars . . . . . . . . . . . . . . . . . . . . . . . 8 Changing the table properties in a document . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Differences between scripts and FDK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Naming differences between scripts and FDK . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 Notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Menus and Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15Object Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 AFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 AFrame methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 Arc methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 AttrCondExpr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 AttrCondExpr methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 Attribute methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 AttributeDef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 AttributeDef methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 AttributeDefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 AttributeDefs methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 AttributeEx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 Attributes methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 AttributesEx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 AttributesEx methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 BodyPage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 BodyPage methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 Book methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 BookComponent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 BookComponent methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 Cell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 Cell methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70 CharFmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70 CharFmt methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 CMSCheckinParam . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 CMSDeleteParam . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76 CMSInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 CMSMenuItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77 CMSProperty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 CMSProperties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 CMSRegistration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 CMSResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 CMSSession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79 Color methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 Column . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 Column methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 CombinedFont . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 CombinedFont methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 CombinedFontDefn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 CombinedFontDefn methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 CombinedFonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 Command methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 CompareRet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92 CompareRet methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92 CondFmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92 CondFmt methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94 Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94 Doc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 Doc methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344 Element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345 Element methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353 ElementCatalogEntries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353 ElementCatalogEntries methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353 ElementCatalogEntry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354 ElementCatalogEntry methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354 ElementDef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354 ElementDef methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357 ElementLoc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357 ElementLoc methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358 ElementRange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358 ElementRange methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358 Ellipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358 Ellipse methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 FCodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 FilterArgs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428 FilterArgs methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428 Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428 Flow methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429 FmtChangeList . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430 FmtChangeList methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 FmtRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439 FmtRule methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439 FmtRuleClause . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440 FmtRuleClause methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441 Fn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442 Fn methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443 Font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443 Font methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443 Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443 Fonts methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443 Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443 Group methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447 HiddenPage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447 HiddenPage methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448 GraphicsFmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448InlineComponent methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 Inset methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 IdValuePair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 IdValuePair methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 IdValuePairs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 Inset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451 Inset methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457 Ints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457 Ints methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457 KeyCatalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458 Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458 Line methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462 Marker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463 Marker methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463 MarkerType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463 MarkerType methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464 MasterPage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464 MasterPage methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464 Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465 Math methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469 MathML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470 MathML methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474 Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475 Menu methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475 MenuItemSeparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476 MenuItemSeparator methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476 Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476 Metrics methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476 Pgf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477 Pgf methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 PgfFmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 PgfFmt methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496 Point . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496 Point methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496 Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496 Points methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496 Polygon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496 Polygon methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501 Polyline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501 Polyline methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505 PropIdent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506 PropIdent methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506 PropVal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506 PropVal methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506 PropVals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506Rectangle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507 Rectangle methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511 RefPage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511 RefPage methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511 RoundRect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512 RoundRect methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516 Row . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516 Row methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518 Rubi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518 Rubi methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519 RulingFmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519 RulingFmt methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520 Strings methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520 SubCol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520 SubCol methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521 Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521 Tab methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522 Tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522 Tabs methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523 Tbl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523 Tbl methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528 TblFmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528 TblFmt methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532 TextFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533 TextFrame methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538 TextItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538 TextItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542 TextItems methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542 TextLine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542 TextLine methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548 TextLoc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548 TextLoc methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549 TextRange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549 TextRange methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549 TiApiClient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549 TiApiClient methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550 TiFlow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551 TiFlow methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552 TiText . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552 TiText methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554 TiTextTable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554 TiTextTable methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555 TypedVal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556 TypedVals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556UBytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 UBytes methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 UInts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 UInts methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 UnanchoredFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557 UnanchoredFrame methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562 Var . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562 Var methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563 VarFmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563 VarFmt methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 565 XRef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 565 XRef methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566 XRefFmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567 XRefFmt methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567 app . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567 app methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576Function Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577 AFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577 Delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .577 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .577 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .577 GetProps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .578 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .578 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .578 SetProps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .578 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .580 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .580 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .580 ObjectValid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .580 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .581 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .581 Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581 Delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .581 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .581 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .581 GetProps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .581 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .581 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .581Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .582 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .582 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .582 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .582 ObjectValid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .582 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .582 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .582 AttrCondExpr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582 ApplyAttributeExpression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .582 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583 GetProps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583 SetProps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .583 ObjectValid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .584 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .584 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .584 Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584 Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .584 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .584 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .584 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .584 AttributeDef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585 AttributeDef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .585 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .585 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .585 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .585 AttributeDefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586 concat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .586 Returns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .586 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .587 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .587 pop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587。
按键精灵脚本教程

按键精灵脚本教程
按键精灵是一款功能强大的自动化软件,可以帮助用户完成重复性的操作任务。
通过编写脚本,可以将按键精灵的功能发挥到极致。
本教程将为您详细介绍按键精灵脚本的基本语法和常用操作,以帮助您更好地使用按键精灵。
一、脚本语法
按键精灵脚本采用类似于VBScript的语法,非常简洁易懂。
以下是脚本的基本语法:
1. 注释:使用单引号(')进行注释,注释内容会被忽略。
例如:
' 这是一个注释
2. 变量定义:使用Dim关键字定义变量。
例如:
Dim num
3. 赋值语句:使用等号(=)进行赋值。
例如:
num = 10
4. 循环语句:使用For循环来执行重复操作。
例如:
For i = 1 to 10
' 这里是重复执行的操作
Next
5. 条件语句:使用If语句进行条件判断。
例如:
If num > 0 Then
' 符合条件时执行的操作
End If
6. 函数调用:使用Call关键字进行函数调用。
例如:
Call MyFunction()
二、脚本操作
按键精灵脚本可以实现很多功能,以下是一些常用的操作:1. 按键:使用按键精灵内置的按键函数来模拟按键操作。
例如:
Call keyDown(\。
油猴脚本编写教程详解

油猴脚本编写教程详解1.什么是油猴脚本?油猴脚本是一种用户脚本管理器,通过它可以在浏览器中自定义网页的行为和外观。
使用油猴脚本可以对网页进行修改、自动化以及添加新的功能和特性。
2.油猴脚本的安装首先,你需要安装一个油猴脚本管理器插件,例如在Google Chrome 浏览器上可以使用Tampermonkey插件,在Firefox浏览器上可以使用Greasemonkey插件。
安装完插件后,浏览器的工具栏上会出现一个油猴脚本的图标。
3.创建一个新的油猴脚本点击浏览器工具栏上的油猴脚本图标,选择“新建用户脚本”,就可以创建一个新的油猴脚本。
4.脚本代码结构油猴脚本主要由三个部分组成:元数据块、启动代码和脚本逻辑。
元数据块示例:// ==UserScript==// ==/UserScript==启动代码示例:(functio'use strict';//在这里插入你的代码})(;脚本逻辑示例:// ==UserScript==// ==/UserScript==(functio'use strict';//在这里插入你的代码document.body.innerHTML = 'Hello, World!';})(;5.获取和修改页面元素你可以使用document对象来获取和修改页面元素。
例如,以下代码将会修改页面的标题:document.title = '新标题';6.监听页面事件你可以使用addEventListener函数来监听页面事件,例如点击事件、滚动事件等。
以下示例代码监听了页面的点击事件,并将点击位置的坐标打印出来:document.addEventListener('click', function(event)console.log('点击位置的坐标:', event.clientX,event.clientY);});7.发送HTTP请求你可以使用XMLHttpRequest对象或fetch函数来发送HTTP请求获取数据。
按键精灵网游脚本编写教程

按键精灵网游脚本编写教程随着网络游戏的兴起,使用按键精灵编写脚本已成为很多玩家提高效率、优化游戏体验的必备工具。
本文将为大家介绍按键精灵网游脚本编写的基本原理和步骤。
首先,明确脚本编写的目的和需求。
比如,你想编写一个自动打怪脚本、自动采集资源脚本或者自动升级脚本等。
根据你的需求,确定脚本的功能和执行的具体步骤。
接下来,了解按键精灵的基本操作。
打开按键精灵软件,点击新建脚本并命名。
按键精灵分为录制模式和文本模式,录制模式可以用来记录你在游戏中的操作,而文本模式则需要手动编写脚本代码。
对于网游脚本编写来说,我们主要关注文本模式。
在文本模式下,你可以通过编写脚本代码来实现你的需求。
按键精灵采用VBScript语言编写脚本,语法类似于Visual Basic语言。
下面是一个简单的按键精灵脚本示例:```//定义循环次数loopCount = 10//循环执行操作For i = 1 to loopCount//模拟按下按键keybd_event(VK_A, 0, 0, 0)//延时1000毫秒Delay 1000//模拟松开按键keybd_event(VK_A, 0, KEYEVENTF_KEYUP, 0)//延时500毫秒Delay 500Next```上述示例中,我们定义了一个循环次数为10的循环,每次循环内模拟按下A键,延时1秒,松开A键,再延时0.5秒。
这样就实现了按下A键的动作。
可以根据需要,使用不同的语句和函数来编写脚本,实现不同的操作,比如鼠标点击、键盘输入、窗口切换等。
编写完脚本后,点击保存并执行按钮,就可以运行脚本了。
可以通过修改循环次数、延时时间和按键等,来调整脚本的执行效果。
最后,需要注意一些使用脚本的注意事项。
首先,要遵守游戏的规则和使用条款,不要使用脚本进行作弊或破坏游戏的公平性。
其次,要保持脚本的更新和适应性,游戏的版本更新可能导致脚本的失效或不适配。
最后,要合理使用脚本,不要过度依赖脚本,保持游戏的乐趣和体验。
脚本说明文档

脚本说明文档目前仅实现自动选择目标功能,说明如下:1、自动选择目标的范围会根据职业和状态自动判断,弓手默认是1000,其他职业默认900,开狙击时自动将锁定距离调整为1300;2、二转前的小号、骑士、工匠收集等无攻击力号不会选;3、可以自由设定优先选择霸主、主教、长老、打手特定名单等目标,如果没有设置,则按照默认顺序选人;4、选中目标后,目标死亡、石化、无敌、极限、跑出攻击范围则自动切换目标;5、选中目标后,如果自己按ESC键切换目标,或者手动选择其他目标,脚本将不会自动切换,所以坚决不要手动取消目标或者改换目标;6、可以在队伍聊天内使用6-skp命令跳过当前目标,建议将这个命令设置成宏,放在快捷栏上;7、脚本会自动选择双方宣战的盟,或者单方宣战并且红名或者紫名的人,因此绝对不会红名;8、自动反击只反击打手,不反击歌舞、小号等无攻击力的目标;9、脚本自动选人功能,只需要编译运行脚本即可,如果要实现队伍命令,必须在宝盒内挂--〉队伍设置内,勾上听从队伍指令一项,或者直接在群共享里面下载标准配置.ini,并读取该配置;10、脚本增加发现敌人自动告警功能,默认是关闭状态,打开此功能,只需在队伍命令里面输入6-set13-1即可,该功能可在游戏信息栏自动提示附近的敌人数量;6-set系列命令,格式6-set01-1,set后面的数字表示设置选项,最后一位数字表示设置内容,可以设置的选项如下:// 0、是否自动选择敌人,0 否,1 是,默认 1// 1、是否自动攻击敌人,0 否,1 是,默认 0// 2、是否锁定目标,0 否,1 是,2 优先反击攻击自己的敌人,其他则锁定,默认 1// 3、是否优先反击,0 否,1 是,默认 0// 4、是否优先攻击霸主,0 否,1 是,默认 0// 5、是否优先攻击主教,0 否,1 是,默认 0// 6、是否优先攻击长老,0 否,1 是,默认 0// 7、是否优先攻击打手,0 否,1 是,默认 0// 8、是否优先奶妈(霸主、主教、长老、先知、席林),0 否,1 是,默认 0// 9、是否优先攻击最近的敌人,0 否,1 是,默认 0// 10、是否优先攻击特定列表的敌人,0否,1是,默认0// 11、自动锁定的最大距离,700-1600,默认巫师900,鹰眼1200-1300,黑弓白弓900-1000,// 12、自动攻击的最大距离,700-1600,默认巫师900,鹰眼1200-1300,黑弓白弓900-1000,// 13、自动告警功能,0 否,1 是;// 14、跳过当前目标,命令关键字skp// 15、清除跳过列表,命令关键字cls// 16、初始化脚本(初始化所有变量、重新读取各种文件、检察自身状态),rst举例说明设置优先攻击主教,在队伍频道里输入6-set05-1即可,取消优先攻击主教,在队伍频道里输入6-set05-0即可,选择优先攻击主教后,其他优先选择自动失效。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
流程图脚本编辑器使用手册
浙江中控技术股份有限公司
声明
严禁转载本手册的部分或全部内容。 在不经预告和联系的情况下,本手册的内容有可能发生变更,请谅解。 本手册所记载的内容,不排除有误记或遗漏的可能性。如对本手册内容有疑问,请与
我公司联系。
文档标志符定义
警告:标示有可能导致人身伤亡或设备损坏的信息。
Risk of electrical shock: Indicates information that Potential shock hazard where HAZARDOUS LIVE voltages greater than 30V RMS, 42.4V peak, or 60V DC may be accessible.
2.1 标题栏................................................................................................................... 2 2.2 菜单栏.............................................................................................................................................. 2
1.1 功能特点.......................................................................................................................................... 1 2 主界面......................................................................................................................................................... 2
注意:提醒需要特别注意的信息。
ATTENTION: Identifies information that requires special consideration.
提示:标记对用户的建议或提示。 TIP:Identifies advice or hints for the user.
目录
流程图脚本编辑器......................................................................................................................................... 1 1 软件概述..................................................................................................................................................... 1
WARNING: Indicates information that a potentially hazardous situation which, if not avoided, could result in serious injury or death.
电击危险:标示有可能产生电击危险的信息。
2.2.1 文件菜单............................................................................................................................... 2 2.2.2 编辑菜单............................................................................................................................... 3 2.2.3 调试菜单............................................................................................................................... 5 2.2.4 设置菜单............................................................................................................................... 5 2.2.5 视图菜单............................................................................................................................... 5 2.2.6 帮助菜单............................................................................................................................... 6 2.3 系统工具栏...................................................................................................................................... 6 2.4 事件向导工具栏.............................................................................................................................. 6 2.5 脚本信息栏...................................................................................................................................... 6 2.6 编辑工具栏...................................................................................................................................... 7 2.7 输出信息窗口.................................................................................................................................. 7 2.8 添加函数和事件向导 ...................................................................................................................... 8 3 对象属性说明............................................................................................................................................. 9 3.1 窗体对象.......................................................................................................................................... 9 3.2 图形对象........................................................................................................................................ 10 3.3 应用函数(App) ......................................................................................................................... 11 4 脚本编辑器应用举例............................................................................................................................... 12 4.1 事件函数........................................................................................................................................ 12 4.1.1 OnLButtonUp....................................................................................................................... 12 4.1.2 OnLButtonDown .................................................................................................................. 12 4.1.3 OnLButtonDblClk ................................................................................................................ 12 4.1.4 OnRButtonClk...................................................................................................................... 12 4.1.5 OnMouseMove..................................................................................................................... 13 4.1.6 OnMouseEnter ..................................................................................................................... 13 4.1.7 OnMouseLeave .................................................................................................................... 13 4.1.8 定时器中的OnTimer事件................................................................................................... 13 4.1.9 流程图脚本的其它语句说明 ............................................................................................. 14 4.2 注意事项........................................................................................................................................ 15 5 附录........................................................................................................................................................... 15 5.1 颜色常数........................................................................................................................................ 15 5.2 背景风格对照表............................................................................................................................ 15