Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

Paste All History Items with Line Breaks

Description
Joins all of your history items together into one string, then pastes it into the current window.
Language
C#.net
Minimum Version
Created By
Thomas Malloch (BFS)
Contributors
-
Date Created
Sep 1, 2015
Date Last Modified
Jan 9, 2018

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 = 0; i < historyItemCount; i++)
			text += BFS.ClipboardFusion.GetHistoryText(i) + Environment.NewLine;
		
		//paste the text variable
		BFS.Clipboard.PasteText(text);
		return text;
	}
}