Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

Paste All History Items with Line Breaks (Reverse)

Description
Joins all of your history items together, starting with the oldest, into one string, then pastes it into the current window.
Language
C#.net
Minimum Version
Created By
Thomas Malloch (BFS)
Contributors
Keith Lammers (BFS)
Date Created
Nov 14, 2019
Date Last Modified
Nov 14, 2019

Macro Code

using System;

public static class ClipboardFusionHelper
{
	public static string ProcessText(string text)
	{
		//get the number of Clipboard History Items
		int historyItemCount = 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 = historyItemCount - 1; i >= 0; i--)
			text += BFS.ClipboardFusion.GetHistoryText(i) + Environment.NewLine;
		
		//paste the text variable
		BFS.Clipboard.PasteText(text);
		return text;
	}
}