好像用不了了

异常报告 · 26 次浏览
用户sSu7Vs4PBwA 创建于 13天15小时前
172获取选择的文件(夹)/选择特定文件获取选择的文件 -
[in]失败后中止动作【值/表达式】False
[in]操作类型【值/表达式】getSelection
[in]等待剪贴板时间【值/表达式】200
[in]排序文件列表【值/表达式】LastAccessTimeAsc
通过Win32接口获取选中的文件失败:不是资源管理器窗口
在 Quicker.Utilities.Win32.NativeMethods.GetCurrentExplorerWindow(Nullable`1 winHandle) 在 Quicker.Utilities.Win32.NativeMethods.<>c__DisplayClass140_0.vs5loJdnEuE() 在 System.Windows.Threading.DispatcherOperation.InvokeDelegateCore() 在 System.Windows.Threading.DispatcherOperation.InvokeImpl() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout) 在 System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout) 在 System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout) 在 Whw8hM6WyeUnglDdrngV.GcZJAX6WSy3TqLbv3WTF.Invoke(Action action) 在 Quicker.Utilities.Win32.NativeMethods.GetSelectedFiles() 在 Quicker.Domain.Actions.X.BuiltinRunners.File.GetSelectedFilesStep.Wo7HearJ3wm(ActionStep , ActionExecuteContext , XAction )
通过Ctrl+c获得了0个文件
步骤(sys:getSelectedFiles)执行失败,原因:获得的文件数量为0。
耗时:259ms
 
 
 
 
 
316598如果/否则判断条件:$= {使用旧方法写入备注} == true
[in]如果【值/表达式】False
执行 False 分支, 共 2 步骤
 
316608.2提示消息新方法
已禁用,跳过
316608.3赋值$= string folderPath = {firstFile}; ... => {output}
[in]失败后停止【值/表达式】True
使用Z.Expressions解析表达式出错,尝试使用DynamicExpresso.
异常:解析表达式出错。 内部错误:Oops! No applicable member has been found for the expression. The error occurred for expression "." at position 1011 near ".GetTypeFromProgID(\"Shell". 原始表达式: string folderPath = v_firstFile; string remark = v_textValue; string tag = v_File_tag; int sql = 692771314; if (string.IsNullOrEmpty(folderPath) || !Directory.Exists(folderPath)) { MessageBox.Show("文件夹不存在: " + folderPath); return "文件夹不存在: " + folderPath; } sql += 1; string desktopIniPath = Path.Combine(folderPath, "desktop.ini"); string tempIniPath = Path.Combine(Path.GetTempPath(), "desktop.ini"); // 注意:此处使用固定名也行 string iniContent = "[.ShellClassInfo]\r\n" + "InfoTip=" + remark + "\r\n" + "[{F29F85E0-4FF9-1068-AB91-08002B27B3D9}]\r\n" + "Prop5=31," + tag; File.WriteAllText(tempIniPath, iniContent, Encoding.Unicode); // 删除原 desktop.ini if (File.Exists(desktopIniPath)) File.Delete(desktopIniPath); // 使用 COM MoveHere 模拟 VBS 行为 object shell = Activator.CreateInstance(Type.GetTypeFromProgID("Shell.Application")); object folder = shell.GetType().InvokeMember("NameSpace", System.Reflection.BindingFlags.InvokeMethod, null, shell, new object[] { folderPath }); folder.GetType().InvokeMember("MoveHere", System.Reflection.BindingFlags.InvokeMethod, null, folder, new object[] { tempIniPath, 4 + 16 + 1024 }); // 设置 desktop.ini 属性 File.SetAttributes(desktopIniPath, FileAttributes.Hidden | FileAttributes.System); // 设置文件夹只读以启用 InfoTip var attr = File.GetAttributes(folderPath); if ((attr & FileAttributes.ReadOnly) == 0) File.SetAttributes(folderPath, attr | FileAttributes.ReadOnly); 开始位置:1011 附近代码:.GetTypeFromProgID(\"Shell
在 Quicker.Domain.Actions.X.XActionHelper.GetValueFromExpression2(String expression, ActionExecuteContext context) 在 Quicker.Domain.Actions.X.XActionHelper.<>c__DisplayClass2_0.fSthQyJhVP6() 在 Quicker.Domain.Actions.X.XActionHelper.GetParamValue(StepInParamDef paramDef, ActionStep step, ActionExecuteContext context, Boolean skipLogging, Boolean skipConvert, Boolean skipLogContent) 在 Quicker.Domain.Actions.X.BuiltinRunners.Misc.AssignValueStep.<>c__DisplayClass39_0.UddhmNDNf6v() 在 Quicker.Domain.Actions.X.XActionHelper.ExecuteCommonAction(ActionExecuteContext context, ActionStep step, XAction action, Func`1 actionFunc, Action successAction, Action failAction, StepInParamDef stopIfErrorParam, StepOutParamDef isSuccessOutputParam)
步骤(sys:assign)执行失败,原因:解析表达式出错。 内部错误:Oops! No applicable member has been found for the expression. The error occurred for expression "." at position 1011 near ".GetTypeFromProgID(\"Shell". 原始表达式: string folderPath = v_firstFile; string remark = v_textValue; string tag = v_File_tag; int sql = 692771314; if (string.IsNullOrEmpty(folderPath) || !Directory.Exists(folderPath)) { MessageBox.Show("文件夹不存在: " + folderPath); return "文件夹不存在: " + folderPath; } sql += 1; string desktopIniPath = Path.Combine(folderPath, "desktop.ini"); string tempIniPath = Path.Combine(Path.GetTempPath(), "desktop.ini"); // 注意:此处使用固定名也行 string iniContent = "[.ShellClassInfo]\r\n" + "InfoTip=" + remark + "\r\n" + "[{F29F85E0-4FF9-1068-AB91-08002B27B3D9}]\r\n" + "Prop5=31," + tag; File.WriteAllText(tempIniPath, iniContent, Encoding.Unicode); // 删除原 desktop.ini if (File.Exists(desktopIniPath)) File.Delete(desktopIniPath); // 使用 COM MoveHere 模拟 VBS 行为 object shell = Activator.CreateInstance(Type.GetTypeFromProgID("Shell.Application")); object folder = shell.GetType().InvokeMember("NameSpace", System.Reflection.BindingFlags.InvokeMethod, null, shell, new object[] { folderPath }); folder.GetType().InvokeMember("MoveHere", System.Reflection.BindingFlags.InvokeMethod, null, folder, new object[] { tempIniPath, 4 + 16 + 1024 }); // 设置 desktop.ini 属性 File.SetAttributes(desktopIniPath, FileAttributes.Hidden | FileAttributes.System); // 设置文件夹只读以启用 InfoTip var attr = File.GetAttributes(folderPath); if ((attr & FileAttributes.ReadOnly) == 0) File.SetAttributes(folderPath, attr | FileAttributes.ReadOnly); 开始位置:1011 附近代码:.GetTypeFromProgID(\"Shell
停止动作:解析表达式出错。 内部错误:Oops! No applicable member has been found for the expression. The error occurred for expression "." at position 1011 near ".GetTypeFromProgID(\"Shell". 原始表达式: string folderPath = v_firstFile; string remark = v_textValue; string tag = v_File_tag; int sql = 692771314; if (string.IsNullOrEmpty(folderPath) || !Directory.Exists(folderPath)) { MessageBox.Show("文件夹不存在: " + folderPath); return "文件夹不存在: " + folderPath; } sql += 1; string desktopIniPath = Path.Combine(folderPath, "desktop.ini"); string tempIniPath = Path.Combine(Path.GetTempPath(), "desktop.ini"); // 注意:此处使用固定名也行 string iniContent = "[.ShellClassInfo]\r\n" + "InfoTip=" + remark + "\r\n" + "[{F29F85E0-4FF9-1068-AB91-08002B27B3D9}]\r\n" + "Prop5=31," + tag; File.WriteAllText(tempIniPath, iniContent, Encoding.Unicode); // 删除原 desktop.ini if (File.Exists(desktopIniPath)) File.Delete(desktopIniPath); // 使用 COM MoveHere 模拟 VBS 行为 object shell = Activator.CreateInstance(Type.GetTypeFromProgID("Shell.Application")); object folder = shell.GetType().InvokeMember("NameSpace", System.Reflection.BindingFlags.InvokeMethod, null, shell, new object[] { folderPath }); folder.GetType().InvokeMember("MoveHere", System.Reflection.BindingFlags.InvokeMethod, null, folder, new object[] { tempIniPath, 4 + 16 + 1024 }); // 设置 desktop.ini 属性 File.SetAttributes(desktopIniPath, FileAttributes.Hidden | FileAttributes.System); // 设置文件夹只读以启用 InfoTip var attr = File.GetAttributes(folderPath); if ((attr & FileAttributes.ReadOnly) == 0) File.SetAttributes(folderPath, attr | FileAttributes.ReadOnly); 开始位置:1011 附近代码:.GetTypeFromProgID(\"Shell
耗时:27ms
检测到了中止标志(OperationFailed),停止后续步骤执行。
检测到了中止标志(OperationFailed),停止后续步骤执行。
动作结束。耗时:31689.3801ms

暖暖~ 12天1小时前 :

这个是每次都出现吗 看着是我写的一个组件出的问题  .

暖暖~ 12天1小时前 :

看样子是识别错资源管理器. 所以后面也出错了

回复内容
暂无回复
回复主贴