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?

Prompt for New History Item

Description
This Macro will prompt for some text. After entering the text, it will be added to the top of the History list, and also put onto the clipboard.
Language
C#.net
Minimum Version
Created By
Keith Lammers (BFS)
Contributors
-
Date Created
Sep 17, 2018
Date Last Modified
Sep 17, 2018

Macro Code

using System;
using System.Collections.Generic;

public static class ClipboardFusionHelper
{
	public static string ProcessText(string text)
	{
        // Get the text for the new History item
		string newHistoryItem = BFS.Dialog.GetUserInput("Please enter the text for the new History item:", "");
		
		// Add the new History item
		BFS.ClipboardFusion.AddHistoryText(newHistoryItem);
		
		// Put the text on the clipboard as well
		return newHistoryItem;
	}
}