From dc597d70cef7202480eae6708e2142148e09356f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 23 Feb 2024 19:57:58 +0300 Subject: clipboard copy function is able now to copy in multiple formats at a time --- plugins/MenuItemEx/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/MenuItemEx') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 4cbf357fbd..eada043836 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -428,7 +428,7 @@ static INT_PTR onCopyID(WPARAM hContact, LPARAM) } else buf = wszId; - Utils_ClipboardCopy(buf); + Utils_ClipboardCopy(MClipUnicode(buf)); if (CTRL_IS_PRESSED) ShowPopup(buf, hContact); @@ -464,7 +464,7 @@ static INT_PTR onCopyStatusMsg(WPARAM hContact, LPARAM) } } - Utils_ClipboardCopy(wszBuffer); + Utils_ClipboardCopy(MClipUnicode(wszBuffer)); if (CTRL_IS_PRESSED) ShowPopup(wszBuffer, hContact); @@ -484,7 +484,7 @@ static INT_PTR onCopyIP(WPARAM hContact, LPARAM) if (rIP) wszBuffer.AppendFormat(L"Internal IP: %d.%d.%d.%d\r\n", rIP >> 24, (rIP >> 16) & 0xFF, (rIP >> 8) & 0xFF, rIP & 0xFF); - Utils_ClipboardCopy(wszBuffer); + Utils_ClipboardCopy(MClipUnicode(wszBuffer)); if (CTRL_IS_PRESSED) ShowPopup(wszBuffer, hContact); @@ -495,7 +495,7 @@ static INT_PTR onCopyMirVer(WPARAM hContact, LPARAM) { LPWSTR msg = getMirVer(hContact); if (msg) { - Utils_ClipboardCopy(msg); + Utils_ClipboardCopy(MClipUnicode(msg)); if (CTRL_IS_PRESSED) ShowPopup(msg, hContact); -- cgit v1.2.3