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 Pinned Items with Line Breaks

Description
This macro will pasted all of your local pinned items separated by line breaks.
Language
C#.net
Minimum Version
Created By
wanepu
Contributors
Thomas Malloch (BFS)
Date Created
Feb 15, 2023
Date Last Modified
Feb 15, 2023

Macro Code

using System;

public static class ClipboardFusionHelper
{
	public static string ProcessText(string text)
	{
		//get the number of Clipboard Pinned Items
		int pinnedItemCount = BFS.ClipboardFusion.GetLocalPinnedItemCount();
		
		//clear the text variable
		text = "";
		
		//add all of the Clipboard Pinned Items to the text variable, separated by a new line character
		for(int i = 0; i < pinnedItemCount; i++)
			text += BFS.ClipboardFusion.GetLocalPinnedText(i) + Environment.NewLine;
		
		//paste the text variable
		BFS.Clipboard.PasteText(text);
		return text;
	}
}