huiyadanli / PasteEx

:clipboard: Paste As File 把剪贴板的内容直接粘贴为文件
GNU General Public License v3.0
1.31k stars 116 forks source link

能否增加一个选项, 将剪贴板图片转换为文件,但不粘贴,想粘贴时用ctrl+V #74

Closed iamqiz closed 1 year ago

iamqiz commented 1 year ago

谢谢大佬~

huiyadanli commented 1 year ago

监听模式可以满足你的需求

https://github.com/huiyadanli/PasteEx/wiki#%E7%9B%91%E5%90%AC%E6%A8%A1%E5%BC%8F

开启监听模式后,右下角托盘图标勾选"自动图片转文件"就可以了。

image

iamqiz commented 1 year ago

我昨天开了监控模式,然后有次复制图片,突然就报错了,然后程序就退了 能否支持不开监控情况下进行转换呢😃

huiyadanli commented 1 year ago

可能和有些程序有兼容性问题,需要排查后排除。

你这种需求,必须要程序常驻才能实现

iamqiz commented 1 year ago

开了监听之后,能手动吧图片转成文件吗 我开了"自动转图片到文件",有时会出现这个错误 Clip_20221009_023207 发生在当我在浏览器右键复制图片时

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.Runtime.InteropServices.ExternalException (0x800401D0): 所请求的剪贴板操作失败。
   在 System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr)
   在 System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay)
   在 PasteEx.Core.ModeController.AppendFileToClipboard(String filePath)
   在 PasteEx.Core.ModeController.ClipboardMonitor_OnClipboardChange(Object sender)
   在 PasteEx.Core.ClipboardMonitor.OnClipboardChangeEvent(Object sender)
   在 PasteEx.Core.ClipboardMonitor.ClipboardWatcher.ClipChanged(Object processId)
   在 PasteEx.Core.ClipboardMonitor.ClipboardWatcher.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 已加载的程序集 **************
mscorlib
    程序集版本:4.0.0.0
    Win32 版本:4.8.4515.0 built by: NET48REL1LAST_C
    基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
PasteEx
    程序集版本:1.1.9.1
    Win32 版本:1.1.9.1
    基本代码:file:///E:/.media/Downloads/PasteEx.v1.1.9.1%E6%8A%8A%E5%89%AA%E8%B4%B4%E6%9D%BF%E7%9A%84%E5%86%85%E5%AE%B9%E7%B2%98%E8%B4%B4%E4%B8%BA%E6%96%87%E4%BB%B6%E3%80%82/PasteEx/PasteEx.exe
----------------------------------------
System.Windows.Forms
    程序集版本:4.0.0.0
    Win32 版本:4.8.4550.0 built by: NET48REL1LAST_C
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    程序集版本:4.0.0.0
    Win32 版本:4.8.4536.0 built by: NET48REL1LAST_C
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本:4.0.0.0
    Win32 版本:4.8.4390.0 built by: NET48REL1LAST_C
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    程序集版本:4.0.0.0
    Win32 版本:4.8.4190.0 built by: NET48REL1LAST_B
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    程序集版本:4.0.0.0
    Win32 版本:4.8.4536.0 built by: NET48REL1LAST_C
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    程序集版本:4.0.0.0
    Win32 版本:4.8.4084.0 built by: NET48REL1
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Web.Extensions
    程序集版本:4.0.0.0
    Win32 版本:4.8.4494.0
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Web.Extensions/v4.0_4.0.0.0__31bf3856ad364e35/System.Web.Extensions.dll
----------------------------------------
System.Web
    程序集版本:4.0.0.0
    Win32 版本:4.8.4494.0 built by: NET48REL1LAST_B
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Management
    程序集版本:4.0.0.0
    Win32 版本:4.8.4435.0 built by: NET48REL1LAST_C
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
PasteEx.resources
    程序集版本:1.1.9.1
    Win32 版本:1.1.9.1
    基本代码:file:///E:/.media/Downloads/PasteEx.v1.1.9.1%E6%8A%8A%E5%89%AA%E8%B4%B4%E6%9D%BF%E7%9A%84%E5%86%85%E5%AE%B9%E7%B2%98%E8%B4%B4%E4%B8%BA%E6%96%87%E4%BB%B6%E3%80%82/PasteEx/Language/zh-CN/PasteEx.resources.DLL
----------------------------------------
mscorlib.resources
    程序集版本:4.0.0.0
    Win32 版本:4.8.4084.0 built by: NET48REL1
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Drawing.resources
    程序集版本:4.0.0.0
    Win32 版本:4.8.4084.0 built by: NET48REL1
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing.resources/v4.0_4.0.0.0_zh-Hans_b03f5f7f11d50a3a/System.Drawing.resources.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本:4.0.0.0
    Win32 版本:4.8.4084.0 built by: NET48REL1
    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何未经处理的异常
都将被发送到在此计算机上注册的 JIT 调试程序,
而不是由此对话框处理。
huiyadanli commented 1 year ago

浏览器是哪个,我看看能不能复现这个问题

可以在任意目录,使用快捷键 Ctrl + Alt + X (默认)进行快速粘贴。

iamqiz commented 1 year ago

chrome 原版, Ctrl + Alt + X 目前没问题

huiyadanli commented 1 year ago

我测试完全没问题,你使用的是最新版本吗 https://github.com/huiyadanli/PasteEx/releases

可以尝试以管理员权限启动 PasteEx

iamqiz commented 1 year ago

我用管理员运行了,然后试了好多次 没有出现问题 了, 拴Q😜