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?

Paste Second History Item in PuTTY

Description
This script will paste the second history item into PuTTY, while still keeping the order of the history items, so that a normal right-click will always paste the first history item.
Language
C#.net
Minimum Version
Created By
Ryan Lerew
Contributors
-
Date Created
Feb 5, 2015
Date Last Modified
Feb 5, 2015

Macro Code

using System;

public static class ClipboardFusionHelper
{
	public static string ProcessText(string textnew)
		{
			string textold;
			textnew = BFS.ClipboardFusion.GetHistoryText(0);
			textold = BFS.ClipboardFusion.GetHistoryText(1);

			BFS.Clipboard.SetText(textold);

			BFS.Input.RightClickMouse();
			//BFS.Clipboard.Paste();

			BFS.Clipboard.SetText(textold);

			return   textnew;
		}
}