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

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;
	}
}