昨天还能用,今天不行了

使用问题 · 96 次浏览
回复内容
艾米屎蛋 12天18小时前
#1

可以调试运行,日志发我看一下

化环小科 回复 艾米屎蛋 12天18小时前 :

好的稍等,我试试

化环小科 回复 艾米屎蛋 12天18小时前 :
Win-10.0.26300.0 Quicker-1.45.5.0 动作ID:49683d19-a882-485b-9f9e-eb29731dca3a 来源动作:7f0700f8-73d7-49d0-a9c9-08df243a98df v38
Log文件路径:C:\Users\dell\AppData\Local\Temp\quicker_目录随行ˢᵗᵃᶰ_101933-913_log.html 定位文件 复制文件 上传并复制网址
开始执行动作:目录随行ˢᵗᵃᶰ 2026-11-09 22:19:33
6动作初始化
80赋值读取命令参数
[in]失败后停止【值/表达式】False
[in]输入【值/表达式】[略]
[out]输出=>命令
耗时:6ms
131赋值是否打开面板
[in]失败后停止【值/表达式】False
[in]输入【值/表达式】[略]
[out]输出=>强制弹出False
耗时:1ms
142获取系统或动作信息获取本动作ID
[out]动作ID=>本动作ID49683d19-a882-485b-9f9e-eb29731dca3a
[out]触发方式=>触发方式Panel
耗时:1ms
183运行C#代码
[in]失败后停止【无输入】True
[in]运行模式【值/表达式】normal_roslyn
[in]脚本内容【值/表达式】//.cs\n using System;\n using System.IO;\n using System.Text;\n using System.Threading;\n using System.Diagnostics;\n using System.Runtime.InteropServices;\n public static void Exec(Quicker.Public.IStepContext context)\n {\n // Reuse one logger across compiled steps without retaining the action context.\n try { AppDomain.CurrentDomain.SetData("Quicker.a7c4e29f-1b58-4d6e-9f33-0c8a15b2d47e.StartupError.v1", new Action<string, Exception>(DirectoryDiagnostics.Error)); }\n catch (Exception ex) { DirectoryDiagnostics.Error("diagnostic.register", ex); }\n var command = Convert.ToString(context.GetVarValue("命令"));\n var handled = command == "diagnostics:start" || command == "diagnostics:stop" || command == "diagnostics:export";\n context.SetVarValue("诊断命令", handled);\n context.SetVarValue("诊断错误", "");\n try\n {\n if (command == "diagnostics:start") DirectoryDiagnostics.Start();\n else if (command == "diagnostics:stop") DirectoryDiagnostics.Stop();\n else if (command == "diagnostics:export")\n {\n var dialog = new Microsoft.Win32.SaveFileDialog { Title = "保存目录随行诊断日志", Filter = "文本日志 (*.txt)|*.txt", DefaultExt = ".txt", AddExtension = true, OverwritePrompt = true,\n FileName = "目录随行诊断_" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".txt" };\n if (dialog.ShowDialog() == true) DirectoryDiagnostics.Export(dialog.FileName);\n }\n else DirectoryDiagnostics.Write("action.entry", "build=" + DirectoryDiagnostics.Build);\n }\n catch (Exception ex)\n {\n DirectoryDiagnostics.Error("diagnostic.command.error", ex);\n context.SetVarValue("诊断错误", "诊断日志操作未完成,请检查保存位置及写入权限。错误类型:" + ex.GetType().Name);\n }\n }\n \n //.cs\n \n \n \n \n \n \n // Deliberately excludes paths, titles, clipboard, exception messages and configuration.\n static class DirectoryDiagnostics\n {\n public const string Build = "2026-11-06-startup-fix";\n static readonly object Gate = string.Intern("DirectoryFollow.Diagnostics.v1");\n [ThreadStatic] public static string Request;\n static string Root { get { return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Quicker", "eminstan", "快速存选", "diagnostics"); } }\n static string Marker { get { return Path.Combine(Root, "enabled-until.txt"); } }\n static string LogFile { get { return Path.Combine(Root, "trace.txt"); } }\n public static bool Enabled\n {\n get\n {\n try { long ticks; return File.Exists(Marker) && long.TryParse(File.ReadAllText(Marker), out ticks) && DateTime.UtcNow.Ticks < ticks; }\n catch { return false; }\n }\n }\n public static void Start()\n {\n lock (Gate)\n {\n Directory.CreateDirectory(Root);\n using (var probe = new FileStream(LogFile, FileMode.Append, FileAccess.Write, FileShare.Read)) { }\n File.WriteAllText(Marker, DateTime.UtcNow.AddHours(24).Ticks.ToString());\n Write("capture.start", "expiresHours=24");\n EnvironmentInfo();\n }\n }\n public static void Stop()\n {\n lock (Gate)\n {\n Write("capture.stop", "");\n if (File.Exists(Marker)) File.Delete(Marker);\n }\n }\n public static void Write(string stage, string detail)\n {\n try\n {\n if (!Enabled) return;\n lock (Gate)\n {\n Directory.CreateDirectory(Root);\n if (File.Exists(LogFile) && new FileInfo(LogFile).Length > 1024 * 1024)\n {\n var old = LogFile + ".previous";\n if (File.Exists(old)) File.Delete(old);\n File.Move(LogFile, old);\n }\n var line = DateTime.UtcNow.ToString("o") + " pid=" + Process.GetCurrentProcess().Id\n + " tid=" + Thread.CurrentThread.ManagedThreadId + " req=" + (Request ?? "-")\n + " " + stage + " " + (detail ?? "").Replace('\r',' ').Replace('\n',' ') + Environment.NewLine;\n File.AppendAllText(LogFile, line, new UTF8Encoding(false));\n }\n }\n catch { /* Recording must never interrupt navigation. Export reports unreadable storage. */ }\n }\n public static void Error(string stage, Exception error)\n {\n if (!Enabled) return;\n try\n {\n for (var depth = 0; error != null && depth < 6; depth++, error = error.InnerException)\n {\n var frames = new StackTrace(error, false).GetFrames();\n var stack = new StringBuilder();\n if (frames != null) foreach (var frame in frames)\n {\n var method = frame.GetMethod();\n if (method == null) continue;\n stack.Append(method.DeclaringType == null ? "?" : method.DeclaringType.FullName).Append('.').Append(method.Name).Append(" > ");\n if (stack.Length > 6000) break;\n }\n Write(stage, "depth=" + depth + " type=" + error.GetType().FullName + " hresult=0x" + error.HResult.ToString("X8") + " stack=" + stack);\n }\n }\n catch { }\n }\n public static void EnvironmentInfo()\n {\n try\n {\n var host = System.Reflection.Assembly.GetEntryAssembly();\n Write("environment", "build=" + Build + " os=" + Environment.OSVersion.Version + " clr=" + Environment.Version\n + " bits=" + IntPtr.Size * 8 + " host=" + (host == null ? "unknown" : host.GetName().Version.ToString())\n + " public=" + typeof(Quicker.Public.IStepContext).Assembly.GetName().Version\n + " apartment=" + Thread.CurrentThread.GetApartmentState());\n }\n catch (Exception ex) { Error("environment.error", ex); }\n }\n public static string PathKind(string path)\n {\n return string.IsNullOrEmpty(path) ? "empty" : path.StartsWith(@"\\") ? "UNC" : path.Length > 1 && path[1] == ':' ? "drive" : "other";\n }\n public static string Reason(string value)\n {\n if (string.IsNullOrEmpty(value)) return "none";\n foreach (var known in new[] { "文件夹不存在", "目标窗口已关闭", "无法激活目标窗口", "目标窗口已失去焦点", "请松开快捷键后重试", "操作未完成,请重试", "资源管理器地址栏尚未就绪,请稍后重试", "无法写入资源管理器地址栏,未提交跳转", "资源管理器地址栏已变化,未提交跳转", "地址栏提交未完成,请重试" })\n if (value == known) return known;\n return "other-redacted";\n }\n [DllImport("user32.dll")] static extern IntPtr GetForegroundWindow();\n [DllImport("user32.dll")] static extern bool IsWindow(IntPtr hwnd);\n [DllImport("user32.dll")] static extern bool IsWindowVisible(IntPtr hwnd);\n [DllImport("user32.dll")] static extern bool IsWindowEnabled(IntPtr hwnd);\n [DllImport("user32.dll")] static extern uint GetWindowThreadProcessId(IntPtr hwnd, out uint pid);\n [DllImport("user32.dll", CharSet = CharSet.Unicode)] static extern int GetClassName(IntPtr hwnd, StringBuilder text, int count);\n [DllImport("user32.dll")] static extern short GetAsyncKeyState(int key);\n public static void Window(string stage, IntPtr hwnd)\n {\n if (!Enabled) return;\n try\n {\n uint pid; GetWindowThreadProcessId(hwnd, out pid);\n var cls = new StringBuilder(128); GetClassName(hwnd, cls, cls.Capacity);\n Write(stage, "hwnd=" + hwnd.ToInt64().ToString("X") + " targetPid=" + pid + " class=" + cls\n + " valid=" + IsWindow(hwnd) + " visible=" + IsWindowVisible(hwnd) + " enabled=" + IsWindowEnabled(hwnd)\n + " foreground=" + GetForegroundWindow().ToInt64().ToString("X")\n + " ctrl=" + (GetAsyncKeyState(17) < 0) + " alt=" + (GetAsyncKeyState(18) < 0) + " shift=" + (GetAsyncKeyState(16) < 0));\n }\n catch (Exception ex) { Error(stage + ".snapshot", ex); }\n }\n public static void Export(string destination)\n {\n lock (Gate)\n {\n var text = new StringBuilder("目录随行诊断 " + Build + "\r\nUTC timestamps; sent=True means submitted, NOT confirmed navigation.\r\n不含真实路径、窗口标题、剪贴板、配置和异常消息。\r\n");\n text.AppendLine("captureEnabled=" + Enabled);\n foreach (var file in new[] { LogFile + ".previous", LogFile })\n if (File.Exists(file)) text.AppendLine(File.ReadAllText(file, Encoding.UTF8));\n if (!File.Exists(LogFile)) text.AppendLine("尚无记录:请开始诊断后,在已更新的面板复现一次问题。旧面板需要关闭后重新打开。");\n File.WriteAllText(destination, text.ToString(), new UTF8Encoding(true));\n }\n }\n }\n
[in]执行线程【值/表达式】ui
[in]引用DLL库【无输入】
使用缓存的程序集:C:\Users\dell\AppData\Local\Temp\quicker_cs\1.45.5.0\B63DDC4A42CE72D970DA24105DFB9702.dll
[out]脚本写入=>诊断命令False
[out]脚本写入=>诊断错误
耗时:25ms
444如果判断条件:$=!string.IsNullOrEmpty({诊断错误})
[in]如果【值/表达式】False
不符合条件,跳过。
445如果判断条件:$={诊断命令}
[in]如果【值/表达式】False
不符合条件,跳过。
456如果仅打开设置
[in]如果【值/表达式】False
不符合条件,跳过。
457如果判断条件:$={命令} == "like"
[in]如果【值/表达式】False
不符合条件,跳过。
468如果判断条件:$={命令} == "archive" || {命令} == "archive:copy" || {命令} == "archive:m...
[in]如果【值/表达式】False
不符合条件,跳过。
469获取窗口信息/查找窗口读取前台窗口
[in]失败后停止【值/表达式】False
[in]目标窗口【值/表达式】foreground
[out]句柄=>窗口句柄65918
[in]窗口位置包含不可见边框(阴影区域)【无输入】False
耗时:0ms
4610状态存取读取已处理的对话框句柄
[in]操作类型【值/表达式】readActionState
[in]名称【值/表达式】lastDialogHwnd
[in]为空时请用户输入【无输入】False
[out]值=>上次句柄
耗时:0ms
4611状态存取读取面板冷却时间
[in]操作类型【值/表达式】readActionState
[in]名称【值/表达式】lastPanelTicks
[out]值=>上次弹出时刻639298305695047941
耗时:0ms
4612运行C#代码收集目录并生成面板数据
[in]失败后停止【值/表达式】False
[in]运行模式【值/表达式】normal_roslyn
[in]脚本内容【值/表达式】内容较多,已写入文件:C:\Users\dell\AppData\Local\Temp\quicker_action_debug_47e1394ce2d14b7583bb3eeff75d9e9f.txt
[in]执行线程【值/表达式】sta
[in]引用DLL库【无输入】
使用缓存的程序集:C:\Users\dell\AppData\Local\Temp\quicker_cs\1.45.5.0\E6F4B642ABF90C12F84465F01CEF4FB0.dll
[out]脚本写入=>选择数据
[out]脚本写入=>应弹出False
[out]脚本写入=>面板数据{}
[out]脚本写入=>对话框句柄65918
[out]脚本写入=>弹出时刻
[out]脚本写入=>来源浏览器
[out]脚本写入=>来源浏览器主进程ID0
[out]脚本写入=>来源网页网址
[out]脚本写入=>来源网页标题
[out]脚本写入=>网页返回浏览器
[out]脚本写入=>网页读取成功False
[out]脚本写入=>对话框句柄
[out]脚本写入=>面板数据{"managerManualOpen":true,"appearance":{"folders":{},"sections":{},"folderFontFamily":"","labelFontFamily":""},"setupRequired":false,"projects":[],"activeProject":"","searchScope":"all","searchKind":"folder","collapsedGroups":[],"dialogHwnd":"","triggerInclude":["另存为","另存","Save As","保存文件","全部保存","保存到","保存工作区","打开文件","打开","Open","选择文件","选择要","请选择","上传","导出","下载内容保存","Choose File","Open File","Select Project","Select Project Root","Open Folder","Select Folder","Save File","打开文件夹","选择文件夹","选择项目","保存","选择","选取","选定","浏览","添加","导入","载入","加载","附加","附件","插入文件","插入图片","插入图像","替换文件","替换图片","选择目录","目标文件夹","输出目录","输出文件","存储为","存储副本","备份到","恢复文件","Save","Select","Choose","Browse","Add","Import","Export","Upload","Attach","Insert File","Insert Picture","Insert Image","Load File","Load Project","Locate File","Find File","Destination","Output Folder","Backup File","Restore File","word"],"triggerExclude":["打印","字体","属性","选项","首选项","页面设置","打印设置","颜色选择","选择颜色","添加账户","添加帐户","添加用户","添加设备","添加打印机","添加语言","添加扩展","登录","登陆","许可证","关于","Print","Font","Properties","Options","Preferences","Page Setup","Color Picker","Choose Color","Select Color","Add Account","Add User","Add Device","Add Printer","Add Language","Sign In","Log In","License","About","unsave","not saved","未保存","尚未保存","保存更改","保存修改","save changes"],"maxNameChars":16,"fontSize":13.0,"panelWidth":332,"panelHeight":704,"panelViewMode":"chips","folderExpandMode":"doubleClick","folderHoverMs":300,"hideFolderTooltips":false,"panelListWidth":420,"panelListHeight":729,"managerFullscreenBehavior":"normal","manualPanelPosition":"screenCenter","favorites":[{"isFile":false,"projectId":"","aliases":"","label":"Desktop","path":"C:\\Users\\dell\\Desktop","group":""},{"isFile":false,"projectId":"","aliases":"","label":"16-预答辩","path":"F:\\大连理工大学\\60-大论文\\16-预答辩","group":""},{"isFile":false,"projectId":"","aliases":"","label":"1-第3章图-JPG","path":"F:\\大连理工大学\\60-大论文\\6-大论文-第3章-CNT-PVDF\\1-第3章图-JPG","group":""},{"isFile":false,"projectId":"","aliases":"","label":"2-第2章图JPG","path":"F:\\大连理工大学\\60-大论文\\5-大论文-第2章-CNT-PVA\\2-第2章图JPG","group":""},{"isFile":false,"projectId":"","aliases":"","label":"第4章图","path":"F:\\大连理工大学\\60-大论文\\7-大论文-第4章-CNT-PVDF规模化制备和组件研发\\第4章图","group":""},{"isFile":false,"projectId":"","aliases":"","label":"电耗对比参考文献","path":"F:\\大连理工大学\\60-大论文\\7-大论文-第4章-CNT-PVDF规模化制备和组件研发\\电耗对比参考文献","group":""},{"isFile":false,"projectId":"","aliases":"","label":"清洗药剂对比文献","path":"F:\\大连理工大学\\60-大论文\\7-大论文-第4章-CNT-PVDF规模化制备和组件研发\\清洗药剂对比文献","group":""},{"isFile":false,"projectId":"","aliases":"","label":"60-大论文","path":"F:\\大连理工大学\\60-大论文","group":""}],"open":[{"isFile":false,"projectId":null,"aliases":null,"label":"16-预答辩","path":"F:\\大连理工大学\\60-大论文\\16-预答辩","group":null}],"clipboard":[],"recent":[{"isFile":false,"projectId":null,"aliases":null,"label":"魏高亮","path":"F:\\大连理工大学\\60-大论文\\16-预答辩\\15-预答辩评委老师待发\\魏高亮","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"14-大论文-全老师","path":"F:\\大连理工大学\\60-大论文\\14-大论文-全老师","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"10-学位申请书-时间线","path":"F:\\大连理工大学\\60-大论文\\16-预答辩\\10-学位申请书-时间线","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"16-预答辩","path":"F:\\大连理工大学\\60-大论文\\16-预答辩","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"柳丽芬","path":"F:\\大连理工大学\\60-大论文\\16-预答辩\\15-预答辩评委老师待发\\柳丽芬","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"赵慧敏","path":"F:\\大连理工大学\\60-大论文\\16-预答辩\\15-预答辩评委老师待发\\赵慧敏","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"张捍民","path":"F:\\大连理工大学\\60-大论文\\16-预答辩\\15-预答辩评委老师待发\\张捍民","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"1-学院学位文件要求","path":"F:\\大连理工大学\\60-大论文\\1-学院学位文件要求","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"1-应聘高校简历","path":"F:\\大连理工大学\\66-博士简历\\0-个人简历\\1-应聘高校简历","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"论文单面","path":"F:\\大连理工大学\\66-博士简历\\8-发表论文\\论文单面","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"8-发表论文","path":"F:\\大连理工大学\\66-博士简历\\8-发表论文","group":null},{"isFile":false,"projectId":null,"aliases":null,"label":"填表照片","path":"E:\\张永科\\1-综合-张永科\\2-个人事项\\张永科个人资料(审定)\\填表照片","group":null}],"groupOrder":["favorites","appRecent","clipboard","recent","open"],"themeMode":"light","colorTheme":"blue","hideLikeButton":false,"disableHistory":false,"disableUnattachedOpen":false,"followFrontManager":false,"followOnDialogReturn":false,"showFolderSizes":false,"appKey":"idle","scene":"open","defaultFolder":null,"applicationDefaultFolder":null,"defaultKind":"app","source":{"hwnd":null,"app":null,"title":null,"browserHwnd":null,"url":null,"status":"未识别到文件窗口的来源窗口","readDetails":null,"urlDialogHwnd":null,"IsBrowser":false},"usage":[{"app":"chrome","scene":"open","path":"F:\\大连理工大学\\60-大论文\\14-大论文-全老师","count":1,"used":"2026-11-07T16:28:46.5472865Z"},{"app":"explorer","scene":"open","path":"F:\\大连理工大学\\60-大论文\\7-大论文-第4章-CNT-PVDF规模化制备和组件研发\\电耗对比参考文献","count":15,"used":"2026-11-07T15:05:19.3323608Z"},{"app":"chrome","scene":"open","path":"C:\\Users\\dell\\Desktop","count":3,"used":"2026-11-07T04:04:51.3011297Z"},{"app":"noteexpress","scene":"open","path":"C:\\Users\\dell\\Desktop","count":2,"used":"2026-11-07T03:02:10.4153424Z"},{"app":"explorer","scene":"open","path":"F:\\大连理工大学\\60-大论文\\7-大论文-第4章-CNT-PVDF规模化制备和组件研发\\清洗药剂对比文献","count":5,"used":"2026-11-07T03:00:33.4300684Z"},{"app":"winword","scene":"open","path":"C:\\Users\\dell\\Desktop","count":1,"used":"2026-11-06T16:10:55.9891653Z"},{"app":"winword","scene":"save","path":"F:\\大连理工大学\\60-大论文\\14-大论文-全老师","count":2,"used":"2026-11-06T14:28:09.1242163Z"},{"app":"winword","scene":"save","path":"C:\\Users\\dell\\Desktop","count":1,"used":"2026-11-06T01:06:13.8464058Z"},{"app":"msedge","scene":"save","path":"F:\\大连理工大学\\60-大论文\\7-大论文-第4章-CNT-PVDF规模化制备和组件研发\\电耗对比参考文献","count":1,"used":"2026-11-05T15:18:40.6571623Z"},{"app":"chrome","scene":"open","path":"F:\\大连理工大学\\60-大论文\\7-大论文-第4章-CNT-PVDF规模化制备和组件研发\\电耗对比参考文献","count":1,"used":"2026-11-05T14:43:41.804659Z"},{"app":"chrome","scene":"save","path":"C:\\Users\\dell\\Desktop","count":1,"used":"2026-11-05T09:33:35.1388886Z"},{"app":"explorer","scene":"open","path":"F:\\大连理工大学\\60-大论文\\16-预答辩\\4-博士学位申请书参考模板\\张侯瑞模板","count":4,"used":"2026-11-05T06:22:37.060682Z"},{"app":"explorer","scene":"open","path":"F:\\大连理工大学\\60-大论文\\16-预答辩","count":3,"used":"2026-11-05T06:22:28.4934048Z"},{"app":"winword","scene":"open","path":"F:\\大连理工大学\\60-大论文\\16-预答辩","count":1,"used":"2026-11-05T01:20:01.3873837Z"},{"app":"winword","scene":"open","path":"F:\\大连理工大学\\60-大论文\\15-大论文-答辩PPT\\1-参考PPT","count":1,"used":"2026-11-05T01:19:59.9672051Z"},{"app":"winword","scene":"open","path":"F:\\大连理工大学\\60-大论文\\14-大论文-全老师\\9-预答辩前","count":1,"used":"2026-11-05T01:19:57.7298936Z"},{"app":"winword","scene":"open","path":"F:\\大连理工大学\\60-大论文\\16-预答辩\\4-博士学位申请书参考模板\\张侯瑞模板","count":1,"used":"2026-11-05T01:19:55.3353149Z"},{"app":"winword","scene":"open","path":"F:\\大连理工大学\\60-大论文\\2-毕业论文参考","count":1,"used":"2026-11-05T01:19:53.6016927Z"},{"app":"explorer","scene":"open","path":"F:\\大连理工大学\\60-大论文\\1-学院学位文件要求","count":1,"used":"2026-11-05T01:02:48.2143042Z"},{"app":"explorer","scene":"open","path":"F:\\大连理工大学\\60-大论文\\2-毕业论文参考","count":1,"used":"2026-11-05T01:02:39.7993823Z"},{"app":"explorer","scene":"open","path":"F:\\大连理工大学\\60-大论文\\14-大论文-全老师","count":2,"used":"2026-11-05T01:02:30.8412333Z"},{"app":"explorer","scene":"open","path":"F:\\大连理工大学\\60-大论文\\16-预答辩\\7-饶林华毕业论文","count":2,"used":"2026-11-05T01:02:29.2373601Z"},{"app":"explorer","scene":"open","path":"F:\\大连理工大学\\60-大论文\\18-课题组博士硕士论文","count":1,"used":"2026-11-05T01:02:24.6070632Z"}],"appRecent":[],"dialogReadyMs":50,"chipPad":5,"chipGap":6}
[out]脚本写入=>弹出时刻639298307739895683
[out]脚本写入=>应弹出True
[out]是否成功=>收集成功True
耗时:29ms
7613如果/否则收集脚本是否成功
[in]如果【值/表达式】True
执行 True 分支, 共 1 步骤
7613.0如果是否应弹出面板
[in]如果【值/表达式】True
执行 True 分支, 共 6 步骤
7613.0.0状态存取记住本次弹出时刻
[in]操作类型【值/表达式】saveActionState
[in]名称【值/表达式】lastPanelTicks
[in]值【变量 弹出时刻】639298307739895683
耗时:0ms
7613.0.1状态存取记住本次对话框句柄
[in]操作类型【值/表达式】saveActionState
[in]名称【值/表达式】lastDialogHwnd
[in]值【变量 对话框句柄】
耗时:0ms
7713.0.2如果仅浏览器来源读取网页
[in]如果【值/表达式】False
不符合条件,跳过。
7713.0.3运行C#代码呼出常驻选目录面板
[in]失败后停止【值/表达式】False
[in]运行模式【值/表达式】normal_roslyn
[in]脚本内容【值/表达式】//.cs\n using System;\n using System.Collections.Generic;\n using System.Reflection;\n \n \n static class PickerCache\n {\n public const string Hash = "5abbf331520302327eadcc322af5b308a89b87c103b02e6358cfcf2bb2af705c";\n \n public static string Key\n {\n get { return "Quicker.a7c4e29f-1b58-4d6e-9f33-0c8a15b2d47e.picker." + Hash + "." + RuntimeSlot(); }\n }\n \n public static string RuntimeSlot()\n {\n var clr = typeof(object).Assembly.GetName();\n var host = typeof(Quicker.Public.IStepContext).Assembly.GetName();\n var clrVersion = clr.Version == null ? "0" : clr.Version.ToString();\n var hostVersion = host.Version == null ? "0" : host.Version.ToString();\n var bits = IntPtr.Size == 8 ? "x64" : "x86";\n return SafeName(clr.Name) + "-" + clrVersion + "-" + bits + "-q" + hostVersion;\n }\n \n static string SafeName(string value)\n {\n if (string.IsNullOrEmpty(value)) return "runtime";\n var chars = value.ToCharArray();\n for (var i = 0; i < chars.Length; i++)\n {\n var c = chars[i];\n if (!(char.IsLetterOrDigit(c) || c == '.' || c == '-' || c == '_')) chars[i] = '_';\n }\n return new string(chars);\n }\n \n public static Action<Quicker.Public.IStepContext> TryMemory()\n {\n return AppDomain.CurrentDomain.GetData(Key) as Action<Quicker.Public.IStepContext>;\n }\n \n public static void Set(Action<Quicker.Public.IStepContext> entry)\n {\n AppDomain.CurrentDomain.SetData(Key, entry);\n }\n \n public static Action<Quicker.Public.IStepContext> GetOrLoad()\n {\n var entry = TryMemory();\n if (entry != null) return entry;\n lock (string.Intern(Key))\n {\n entry = TryMemory();\n if (entry != null) return entry;\n entry = TryLoadDisk();\n if (entry != null) Set(entry);\n return entry;\n }\n }\n \n public static string FilePath()\n {\n return System.IO.Path.Combine(\n Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),\n "Quicker", "eminstan", "快速存选",\n "picker-" + RuntimeSlot() + "-" + Hash + ".dll");\n }\n \n public static Action<Quicker.Public.IStepContext> TryLoadDisk()\n {\n var dest = FilePath();\n if (!System.IO.File.Exists(dest)) return null;\n try\n {\n PreloadRuntime();\n return Bind(LoadExistingOrFrom(dest));\n }\n catch (Exception ex)\n {\n StartupDiagnostics.Error("panel.cache.load", ex);\n try { System.IO.File.Delete(dest); } catch { }\n return null;\n }\n }\n \n public static void Save(Assembly assembly)\n {\n try\n {\n var loc = assembly.Location;\n if (string.IsNullOrEmpty(loc) || !System.IO.File.Exists(loc)) return;\n var dest = FilePath();\n var dir = System.IO.Path.GetDirectoryName(dest);\n if (!System.IO.Directory.Exists(dir)) System.IO.Directory.CreateDirectory(dir);\n System.IO.File.Copy(loc, dest, true);\n DeleteStale(dir, dest);\n }\n catch { }\n }\n \n public static void DeleteStale(string dir, string dest)\n {\n if (string.IsNullOrEmpty(dir) || !System.IO.Directory.Exists(dir)) return;\n var prefix = "picker-" + RuntimeSlot() + "-";\n foreach (var stale in System.IO.Directory.GetFiles(dir, prefix + "*.dll"))\n {\n if (!string.Equals(stale, dest, StringComparison.OrdinalIgnoreCase))\n {\n try { System.IO.File.Delete(stale); } catch { }\n }\n }\n }\n \n public static Assembly LoadExistingOrFrom(string dest)\n {\n PrepareLoad();\n var expected = "PickerPanel." + Hash;\n try { return Assembly.LoadFrom(dest); }\n catch (Exception ex)\n {\n if (ex.Message == null || ex.Message.IndexOf("already loaded", StringComparison.OrdinalIgnoreCase) < 0)\n throw;\n var loaded = AppDomain.CurrentDomain.GetAssemblies();\n for (var i = 0; i < loaded.Length; i++)\n {\n try\n {\n var asm = loaded[i];\n if (string.Equals(asm.GetName().Name, expected, StringComparison.Ordinal))\n return asm;\n if (!string.IsNullOrEmpty(asm.Location) && string.Equals(asm.Location, dest, StringComparison.OrdinalIgnoreCase))\n return asm;\n }\n catch { }\n }\n throw;\n }\n }\n \n public static Action<Quicker.Public.IStepContext> Bind(Assembly assembly)\n {\n if (assembly == null) throw new InvalidOperationException("面板编译器未返回程序集");\n // Both compiler branches emit this explicit wrapper. Avoid materializing every\n // nested WPF/UIA type before the window is needed; retain older-cache fallback.\n var knownType = assembly.GetType("PanelHost", false);\n var entry = BindType(knownType);\n if (entry != null) return entry;\n foreach (var type in assembly.GetTypes())\n {\n if (type == knownType) continue;\n entry = BindType(type);\n if (entry != null) return entry;\n }\n throw new MissingMethodException("目录随行面板 Exec(IStepContext)");\n }\n \n static Action<Quicker.Public.IStepContext> BindType(Type type)\n {\n if (type == null) return null;\n var exec = type.GetMethod("Exec", BindingFlags.Public | BindingFlags.Static, null, new[] { typeof(Quicker.Public.IStepContext) }, null);\n return exec != null && exec.ReturnType == typeof(void)\n ? (Action<Quicker.Public.IStepContext>)Delegate.CreateDelegate(typeof(Action<Quicker.Public.IStepContext>), exec) : null;\n }\n \n static AssemblyPathIndex _probes;\n static List<string> _resolveStack;\n static bool _resolveHooked;\n \n public static void PrepareLoad()\n {\n if (string.Equals(typeof(object).Assembly.GetName().Name, "mscorlib", StringComparison.Ordinal))\n return;\n if (_resolveHooked) return;\n _probes = new AssemblyPathIndex();\n _resolveStack = new List<string>();\n IndexLoadProbes(_probes);\n _resolveHooked = true;\n AppDomain.CurrentDomain.AssemblyResolve += ResolvePanelDependency;\n }\n \n static Assembly ResolvePanelDependency(object sender, ResolveEventArgs args)\n {\n var simple = new AssemblyName(args.Name).Name;\n if (string.IsNullOrEmpty(simple) || _resolveStack == null) return null;\n for (var i = 0; i < _resolveStack.Count; i++)\n {\n if (string.Equals(_resolveStack[i], simple, StringComparison.OrdinalIgnoreCase)) return null;\n }\n _resolveStack.Add(simple);\n try\n {\n var loaded = AppDomain.CurrentDomain.GetAssemblies();\n for (var i = 0; i < loaded.Length; i++)\n {\n var asm = loaded[i];\n if (!asm.IsDynamic && string.Equals(asm.GetName().Name, simple, StringComparison.OrdinalIgnoreCase))\n return asm;\n }\n string path;\n if (_probes != null && _probes.TryGetValue(simple, out path))\n return Assembly.LoadFrom(path); return null;\n }\n catch { return null; }\n finally { _resolveStack.RemoveAt(_resolveStack.Count - 1); }\n }\n \n static void IndexLoadProbes(AssemblyPathIndex map)\n {\n var trusted = AppContext.GetData("TRUSTED_PLATFORM_ASSEMBLIES") as string;\n if (!string.IsNullOrEmpty(trusted))\n {\n var parts = trusted.Split(new[] { System.IO.Path.PathSeparator }, StringSplitOptions.RemoveEmptyEntries);\n for (var i = 0; i < parts.Length; i++) IndexProbe(map, parts[i]);\n }\n var runtime = System.IO.Path.GetDirectoryName(typeof(object).Assembly.Location);\n if (!string.IsNullOrEmpty(runtime) && runtime.IndexOf("Microsoft.NETCore.App", StringComparison.OrdinalIgnoreCase) >= 0)\n {\n var version = System.IO.Path.GetFileName(runtime);\n var shared = System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(runtime));\n IndexProbeDir(map, System.IO.Path.Combine(shared, "Microsoft.WindowsDesktop.App", version));\n }\n }\n \n static void IndexProbeDir(AssemblyPathIndex map, string dir)\n {\n if (string.IsNullOrEmpty(dir) || !System.IO.Directory.Exists(dir)) return;\n string[] files;\n try { files = System.IO.Directory.GetFiles(dir, "*.dll"); }\n catch { return; }\n for (var i = 0; i < files.Length; i++) IndexProbe(map, files[i]);\n }\n \n static void IndexProbe(AssemblyPathIndex map, string path)\n {\n map.AddAssembly(path);\n }\n \n public static string FrameworkDirectory()\n {\n var located = System.IO.Path.GetDirectoryName(typeof(object).Assembly.Location);\n if (!string.IsNullOrEmpty(located) && System.IO.File.Exists(System.IO.Path.Combine(located, "mscorlib.dll")))\n return located;\n var windows = Environment.GetFolderPath(Environment.SpecialFolder.Windows);\n if (string.IsNullOrEmpty(windows)) windows = "C:\\Windows";\n var flavor = IntPtr.Size == 8 ? "Framework64" : "Framework";\n return System.IO.Path.Combine(windows, "Microsoft.NET", flavor, "v4.0.30319");\n }\n \n public static void PreloadRuntime()\n {\n if (!string.Equals(typeof(object).Assembly.GetName().Name, "mscorlib", StringComparison.Ordinal))\n return;\n var runtime = FrameworkDirectory();\n foreach (var name in new[] { "mscorlib.dll", "System.dll", "System.Core.dll", "System.Xml.dll", "System.Runtime.Serialization.dll", "System.Xaml.dll" })\n LoadRuntimeAssembly(runtime, name);\n foreach (var name in new[] { "PresentationCore.dll", "PresentationFramework.dll", "WindowsBase.dll", "UIAutomationClient.dll", "UIAutomationTypes.dll" })\n LoadRuntimeAssembly(runtime, "WPF", name);\n }\n \n public static Assembly LoadRuntimeAssembly(string runtime, params string[] parts)\n {\n var path = runtime;\n for (var i = 0; i < parts.Length; i++) path = System.IO.Path.Combine(path, parts[i]);\n if (!System.IO.File.Exists(path)) throw new System.IO.FileNotFoundException("缺少运行库 " + path);\n return Assembly.LoadFrom(path);\n }\n }\n \n // A scan-local index: one metadata read per path, preserving identity/version selection.\n // Nothing persists across runs or captures user settings; the DLL cache stays unchanged.\n sealed class AssemblyPathIndex : Dictionary<string, string>\n {\n readonly HashSet<string> seenPaths = new HashSet<string>(StringComparer.OrdinalIgnoreCase);\n readonly Dictionary<string, AssemblyName> identities = new Dictionary<string, AssemblyName>(StringComparer.OrdinalIgnoreCase);\n public AssemblyPathIndex() : base(StringComparer.OrdinalIgnoreCase) { }\n public void AddAssembly(string path)\n {\n if (string.IsNullOrEmpty(path) || seenPaths.Contains(path) || !System.IO.File.Exists(path)) return;\n seenPaths.Add(path);\n try\n {\n var name = AssemblyName.GetAssemblyName(path);\n if (name == null || string.IsNullOrEmpty(name.Name)) return;\n AssemblyName old;\n if (identities.TryGetValue(name.Name, out old)\n && (name.Version == null || old.Version == null || name.Version.CompareTo(old.Version) <= 0)) return;\n this[name.Name] = path;\n identities[name.Name] = name;\n }\n catch { }\n }\n }\n \n \n \n // Hot path: memory cache or previously compiled disk DLL. No panel source and no $ = expression.\n public static void Exec(Quicker.Public.IStepContext context)\n {\n var stage = "panel.hot.cache";\n try\n {\n if (context == null) throw new ArgumentNullException("context");\n var entry = PickerCache.GetOrLoad();\n if (entry != null)\n {\n if (context != null) context.SetVarValue("需要编译面板", false);\n stage = "panel.hot.invoke";\n entry(context);\n return;\n }\n if (context != null) context.SetVarValue("需要编译面板", true);\n }\n catch (Exception ex)\n {\n StartupDiagnostics.Error(stage, ex);\n throw;\n }\n }\n \n \n \n \n static class StartupDiagnostics\n {\n public static void Error(string stage, Exception error)\n {\n try\n {\n var report = AppDomain.CurrentDomain.GetData("Quicker.a7c4e29f-1b58-4d6e-9f33-0c8a15b2d47e.StartupError.v1") as Action<string, Exception>;\n if (report != null) report(stage, error);\n }\n catch { /* Diagnostics must not replace the original failure. */ }\n }\n }
[in]执行线程【值/表达式】ui
[in]引用DLL库【无输入】
异常:未将对象引用设置到对象的实例。
在 Westwind.Scripting.CSharpScriptExecution.CompileAssemblyForExecuteMethod(String code) 在 IginwiER4LdIU5U9hdej.Hden38ERUXKNAuIbRLoD.CfmERDnSDhB(String , String , String ) 在 Quicker.Domain.Actions.X.BuiltinRunners.Other.RunCsScriptStep.d89HoK5qSUw(ActionStep , ActionExecuteContext , XAction , String , ThreadType ) 在 Quicker.Domain.Actions.X.BuiltinRunners.Other.RunCsScriptStep.<>c__DisplayClass62_0.N68hbJE4MkS() 在 Quicker.Domain.Actions.X.XActionHelper.ExecuteCommonAction(ActionExecuteContext context, ActionStep step, XAction action, Func`1 actionFunc, Action successAction, Action failAction, StepInParamDef stopIfErrorParam, StepOutParamDef isSuccessOutputParam)
[out]是否成功=>面板成功False
步骤(sys:csscript)执行失败,原因:未将对象引用设置到对象的实例。
耗时:65ms
14113.0.4如果是否需要编译面板
[in]如果【值/表达式】False
不符合条件,跳过。
14213.0.5如果/否则面板是否显示成功
[in]如果【值/表达式】False
执行 False 分支, 共 2 步骤
14213.0.5.3提示消息面板未能打开
[in]消息内容【值/表达式】呼出面板未能打开。请展开动作运行记录,查看“编译并呼出选目录面板”步骤的具体错误。
[in]类型【值/表达式】Error
[in]最大行数【无输入】0
[in]风格【无输入】Default
[in]点击命令【无输入】
耗时:0ms
14213.0.5.4状态存取面板失败时清除对话框句柄
[in]操作类型【值/表达式】saveActionState
[in]名称【值/表达式】lastDialogHwnd
[in]值【无输入】
耗时:0ms
14214重复重复-1次,循环间隔: ms,中止条件: $={选择数据} != "cmd:archive-open"
[in]次数【值/表达式】-1
[in]计数开始值【无输入】0
[in]循环间隔时间【无输入】1
[in]进度条标题【无输入】
142第 0 次循环。
[in]中止条件【值/表达式】True
符合了循环退出条件,退出循环。
14315如果判断条件:$={归档操作} == "copy" || {归档操作} == "move"
[in]如果【值/表达式】False
不符合条件,跳过。
14316如果判断条件:$={选择数据} == "cmd:archive"
[in]如果【值/表达式】False
不符合条件,跳过。
动作结束。耗时:145.9799ms
化环小科 最后更新于 12天18小时前
化环小科 12天18小时前
#2
是哪里出问题了呢
艾米屎蛋 回复 化环小科 12天17小时前 :

我明天看看哈,你点一下调试网站那个{上传并复制网址},然后把网址发过来把。暂时可以先右键动作➔来源动作➔切换版本,切回旧版本看看。

化环小科 回复 艾米屎蛋 12天17小时前 :

我刚关机重启了两回,动作删除了几次,现在又能用了

化环小科 回复 艾米屎蛋 12天17小时前 :
我先用用看,如果后面还是出问题,我再给你发网址,谢谢啦
艾米屎蛋 回复 化环小科 12天17小时前 :

好的,不客气

回复主贴