Win-10.0.26100.0 Quicker-1.44.22.0 动作ID:7604646f-b0db-4e50-8797-61756faacd38 来源动作:170e8c93-58f6-4196-9924-08dd95a58a82 v10
Log文件路径:C:\Users\DELL\AppData\Local\Temp\quicker_SVG分层_090613-737_log.html 定位文件 复制文件 上传并复制网址
开始执行动作:SVG分层 2025-08-01 09:06:13
16动作初始化
[状态]insertModetrue
250运行子程序“QK_快捷键激活”
[in]失败后停止【值/表达式】True
[in]子程序【值/表达式】QK_快捷键激活
[in]跳过调试输出【值/表达式】True
[out]isLCTRL=>isLCTRLFalse
[out]isLMenu=>isLMenuFalse
耗时:7ms
281如果判断条件:$={quicker_in_param} == "settings" || {isLMenu} == true
[in]如果【值/表达式】False
不符合条件,跳过。
302如果/否则判断条件:$={quicker_in_param} == ""
[in]如果【值/表达式】True
执行 True 分支, 共 1 步骤
302.0运行子程序“QK_显示菜单”
[in]失败后停止【值/表达式】True
[in]子程序【值/表达式】QK_显示菜单
[in]跳过调试输出【值/表达式】True
[in]菜单数据【值/表达式】[fa:Solid_FileImport]导入SVG为路径(Import SVG)|import svg\r\n ----\r\n [fa:Solid_FileExport]图层导出为SVG(Layer to SVG)|layer to svg\r\n [fa:Solid_FileExport]文档导出为SVG(Doc to SVG)|doc to svg\r\n ----\r\n [fa:Solid_FileImport]从 iconfont 导入(请在iconfont的图标下载页执行.)|import iconfont\r\n [fa:Solid_FileImport]从 iconfont 复制(请在iconfont的图标下载页执行.)\r\n \t[fa:Solid_FileImport]保留颜色信息(请在iconfont的图标下载页执行.)|copy iconfont\r\n \t[fa:Solid_FileImport]移除颜色信息(请在iconfont的图标下载页执行.)|copy iconfont remove color
[in]选择提示【值/表达式】False
[in]激活延迟【值/表达式】50
[in]图标大小【值/表达式】16
[out]选择的菜单项数据=>selectedItemDataimport iconfont
耗时:3140ms
31713如果判断条件:$={selectedItemData} == "import svg"
[in]如果【值/表达式】False
不符合条件,跳过。
31734如果判断条件:$={selectedItemData} == "layer to svg"
[in]如果【值/表达式】False
不符合条件,跳过。
31765如果判断条件:$={selectedItemData} == "doc to svg"
[in]如果【值/表达式】False
不符合条件,跳过。
31786如果判断条件:$={selectedItemData} == "import iconfont"
[in]如果【值/表达式】True
执行 True 分支, 共 6 步骤
31816.0生成临时文件路径生成文件路径到:{svgPath}
[in]扩展名【值/表达式】.svg
[out]文件路径=>svgPathC:\Users\DELL\AppData\Local\Temp\quicker_c66d7b0a-364f-439e-b0fc-2620ce2fd48d.svg
耗时:2ms
31836.1步骤组get svgName
[in]忽略错误【值/表达式】False
[in]使用多线程【值/表达式】False
[in]调试运行时不输出调试内容【值/表达式】False
31856.1.0浏览器控制对标签页运行脚本 (浏览器需开启开发者模式)
[in]失败后停止【值/表达式】True
[in]操作类型【值/表达式】RunScript
[in]超时时间(ms)【值/表达式】3000
[in]标签页Id【值/表达式】
连接的浏览器:chrome
[in]运行脚本的框架【值/表达式】all
[in]脚本内容【值/表达式】(function() {\r\n console.log("开始执行名称获取脚本...");\r\n \r\n function getSVGNameIntelligently() {\r\n // 1. 尝试从对话框标题获取名称\r\n const dialogTitles = document.querySelectorAll('.top-title > span:first-child, .dialog-title, .title-text');\r\n if (dialogTitles.length > 0) {\r\n for (let title of dialogTitles) {\r\n if (title.textContent && title.textContent.trim()) {\r\n console.log("✅ 获取到名称:", title.textContent.trim());\r\n return title.textContent.trim();\r\n }\r\n }\r\n }\r\n \r\n // 2. 尝试获取当前活跃的对话框标题\r\n const activeDialogs = document.querySelectorAll('[id^="body_dlg_"]');\r\n for (let dialog of activeDialogs) {\r\n if (window.getComputedStyle(dialog).display !== 'none') {\r\n const titleElement = dialog.querySelector('.top-title > span:first-child');\r\n if (titleElement && titleElement.textContent) {\r\n console.log("✅ 从活跃对话框获取到名称:", titleElement.textContent.trim());\r\n return titleElement.textContent.trim();\r\n }\r\n }\r\n }\r\n \r\n // 3. 尝试根据当前显示的对话框ID获取对应标题\r\n const currentDialogId = document.querySelector('[id^="body_dlg_"]:not([style*="display: none"])');\r\n if (currentDialogId) {\r\n const titleSelector = `#${currentDialogId.id} > div.top-title > span:first-child`;\r\n const specificTitle = document.querySelector(titleSelector);\r\n if (specificTitle && specificTitle.textContent) {\r\n console.log("✅ 从特定ID对话框获取到名称:", specificTitle.textContent.trim());\r\n return specificTitle.textContent.trim();\r\n }\r\n }\r\n \r\n // 4. 尝试获取页面中任何可能的标题\r\n const possibleTitles = document.querySelectorAll('h1, h2, h3, .title, .heading');\r\n for (let title of possibleTitles) {\r\n if (title.textContent && title.textContent.trim()) {\r\n console.log("✅ 从页面标题获取到名称:", title.textContent.trim());\r\n return title.textContent.trim();\r\n }\r\n }\r\n \r\n console.log("❌ 未能获取到名称");\r\n return ""; // 返回空字符串而不是错误信息\r\n }\r\n \r\n // 直接获取名称并返回\r\n const name = getSVGNameIntelligently();\r\n return name; // 只返回名称,不返回其他信息\r\n })();
[in]从脚本手动返回数据【值/表达式】False
[in]执行环境【值/表达式】
[out]原始返回结果=>svgName下架\n 625 书签\n
耗时:24ms
32076.1.1文本处理$${svgName} 去除前后空白字符 => {svgName}
[in]失败后停止【值/表达式】True
[in]待处理内容【值/表达式】下架\n 625 书签\n
[in]处理【值/表达式】trim
[out]结果=>svgName下架\n 625 书签
耗时:1ms
32086.1.2提取文件路径信息/生成路径更改文件名(不含扩展名和所在目录) $${svgPath}
[in]失败后停止【值/表达式】True
[in]操作类型【值/表达式】changeNameWithoutExt
[in]路径【值/表达式】C:\Users\DELL\AppData\Local\Temp\quicker_c66d7b0a-364f-439e-b0fc-2620ce2fd48d.svg
[in]新的文件名【值/表达式】下架\n 625 书签
异常:路径中具有非法字符。
在 System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) 在 System.IO.Path.Combine(String path1, String path2) 在 Quicker.Domain.Actions.X.BuiltinRunners.Text.PathExtractionStep.<>c__DisplayClass61_0.ompfvs9DHeo() 在 Quicker.Domain.Actions.X.XActionHelper.ExecuteCommonAction(ActionExecuteContext context, ActionStep step, XAction action, Func`1 actionFunc, Action successAction, Action failAction, StepInParamDef stopIfErrorParam, StepOutParamDef isSuccessOutputParam)
步骤(sys:pathExtraction)执行失败,原因:路径中具有非法字符。
停止动作:路径中具有非法字符。
耗时:10ms
检测到了中止标志(OperationFailed),停止后续步骤执行。
检测到了中止标志(OperationFailed),停止后续步骤执行。
检测到了中止标志(OperationFailed),停止后续步骤执行。
动作结束。耗时:3222.1084ms