### 示例3 数组格式配置 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt 数组格式的 json 配置,不支持导入功能。RangeFormat 使用 "{startX},{startY},{width},{height}",FirstColorFormat 为 "[0x{color}]",FollowColorFormat 为 "\n[{x},{y},0x{color}]"。 ```json { "RangeFormat": "{startX},{startY},{width},{height}", "FirstColorFormat": "[0x{color}]", "FollowColorFormat": "\n[{x},{y},0x{color}]", "FindStrFormat": "data[data.length] = \n[\n[{range}], \n[\n{firstColorStr},\n[{followColorStr}\n]\n]\n]", "CompareStrFormat": "data[data.length] = \n[{colorStr}\n]" } ``` -------------------------------- ### 示例2 EasyClick字符串格式配置 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt EasyClick 字符串格式的 json 配置,使用 ImportInfo 为 "ec",FirstColorFormat 为 "0x{color}",FollowColorFormat 为 "{x}|{y}|0x{color}"。 ```json { "ImportInfo": "ec", "RangeFormat": "{startX},{startY},{endX},{endY}", "FirstColorFormat": "0x{color}", "FollowColorFormat": "{x}|{y}|0x{color}", "FindStrFormat": "new array({ImportInfo},\"{range}\",\"{firstColorStr}\",\"{followColorStr}\",0.9,1)", "CompareStrFormat": "new array({ImportInfo},\"{colorStr}\",0.9)" } ``` -------------------------------- ### 示例1 大漠字符串格式配置 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt 大漠字符串格式的 json 配置,使用 ImportInfo 为 "dm",RangeFormat 为 "{startX},{startY},{endX},{endY}"。FindStrFormat 和 CompareStrFormat 定义了找色和比色的返回格式。 ```json { "ImportInfo": "dm", "RangeFormat": "{startX},{startY},{endX},{endY}", "FirstColorFormat": "{color}", "FollowColorFormat": "{x}|{y}|{color}", "FindStrFormat": "new array({ImportInfo},\"{range}\",\"{firstColorStr}\",\"{followColorStr}\",0.9,1)", "CompareStrFormat": "new array({ImportInfo},\"{colorStr}\",0.9)" } ``` -------------------------------- ### 格式列表配置示例 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt 格式列表的配置项,包含 name、isEnabled、isCompareMode、isDiyFormat 等字段。isEnabled 为 false 时格式不显示,isDiyFormat 为 true 时使用自定义格式。 ```json { "name": "我的自定义比色", "isEnabled": true, "isDiyFormat": true, "isCompareMode":true, "diyFormatName": "diyFormat.json" } ``` -------------------------------- ### 示例3 数组找色格式返回 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt 数组格式的找色返回示例,使用 data[data.length] 赋值,包含范围、基准色和偏移色数组。 ```text data[data.length] = [ [170, 215, 563, 523], [ [0x717171], [ [343, -118, 0x343434], [300, 140, 0x4d83c2], [89, 106, 0x1a1a1a] ] ] ]; ``` -------------------------------- ### 示例3 数组比色格式返回 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt 数组格式的比色返回示例,使用 data[data.length] 赋值,包含多个颜色点。 ```text data[data.length] = [ [195, 358, 0x717171], [538, 240, 0x343434], [495, 498, 0x4d83c2], [284, 464, 0x1a1a1a] ]; ``` -------------------------------- ### 示例2 EasyClick比色格式返回 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt EasyClick 格式的比色返回示例,格式为 new array("ec","171|92|0x425882,...",0.9)。 ```text new array("ec","171|92|0x425882,361|300|0xfeeeea,903|298|0xb8d7fc,760|363|0x16231c,262|380|0x311b5b",0.9) ``` -------------------------------- ### 示例2 EasyClick找色格式返回 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt EasyClick 格式的找色返回示例,格式为 new array("ec/171/92","121,42,953,430","0x425882","190|208|0xfeeeea,...",0.9,1)。 ```text new array("ec/171/92","121,42,953,430","0x425882","190|208|0xfeeeea,732|206|0xb8d7fc,589|271|0x16231c,91|288|0x311b5b",0.9,1) ``` -------------------------------- ### 示例1 大漠比色格式返回 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt 大漠格式的比色返回示例,格式为 new array("270|126|3e5b62,...",0.9)。 ```text new array("270|126|3e5b62,471|398|feeeea,976|406|fdced6,298|516|ac8fe9,663|625|e47877",0.9) ``` -------------------------------- ### 示例1 大漠找色格式返回 Source: https://github.com/autox-community/scriptgraphichelper/blob/main/ScriptGraphicHelper/MyFiles/使用说明.txt 大漠格式的找色返回示例,格式为 new array("dm/171/92",121,42,953,430,"425882","190|208|feeeea,...",0.9,1)。 ```text new array("dm/171/92",121,42,953,430,"425882","190|208|feeeea,732|206|b8d7fc,589|271|16231c,91|288|311b5b",0.9,1) ```