using System;
public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
int count = BFS.ClipboardFusion.GetHistoryItemCount();
//--pull entire history into temporary array
string[] history = BFS.ClipboardFusion.GetAllHistoryText();
//--if any history
if(count > 0)
{
//--paste the newest entry
text = BFS.ClipboardFusion.GetHistoryText(0);
BFS.Clipboard.PasteText(text);
//--now clear history
BFS.ClipboardFusion.ClearHistory();
//--then rebuild from temporary array
for(int i = count - 1; i > 0; i--)
{
BFS.ClipboardFusion.AddHistoryText(history[i]);
}
}
return null;
}
}