Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Narushima
4 discussion posts
Hi,

I've just started using ClipboardFusion, and I downloaded this macro, which does what I need (thanks to the creator, by the way):
https://www.clipboardfusion.com/Macros/View/?ID=a8812146-c7be-4b79-b4ec-d7b07cb8a28b

The only problem is that the history gets pasted with the most recently copied item at the top, and the least recent at the bottom. I'd want to paste everything in the order I copied it.

Is there a way to modify the macro or the history behaviour so it does what I need?
Nov 1, 2017  • #1
User Image
UWK-87
165 discussion posts
Hi,

Changed the code slightly, let me know if it works:

Code

using System;

public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
//get the number of Clipboard Hisytory Items
int hisotryItemCount = BFS.ClipboardFusion.GetHistoryItemCount();

//clear the text variable
text = "";

//add all of the Clipboard History Items to the text variable, separated by a new line character
for(int i = hisotryItemCount-1; i >= 0; i--)
text += BFS.ClipboardFusion.GetHistoryText(i) + Environment.NewLine;

//paste the text variable
BFS.Clipboard.PasteText(text);
return text;
}
}
Nov 1, 2017  • #2
User Image
Narushima
4 discussion posts
Quote:
Hi,

Changed the code slightly, let me know if it works

Hey, it works! Thanks a lot.
Nov 1, 2017  • #3
User Image
UWK-87
165 discussion posts
Quote:
Quote:
Hi,

Changed the code slightly, let me know if it works

Hey, it works! Thanks a lot.


You are welcome :)
Nov 1, 2017  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)