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?

Linkify Selection

Description
Create a clickable link in applications that accept them. First copy the URL onto the clipboard. Next, select the text you want to become the link text. Then invoke the macro.
Language
C#.net
Minimum Version
Created By
Linkify Selection61970
Contributors
-
Date Created
Jan 8, 2021
Date Last Modified
Jan 8, 2021

Macro Code

using System;
using System.Collections.Generic;

// The 'text' parameter will contain the text from the:
//   - Current Clipboard when run by HotKey
//   - History Item when run from the History Menu
// The returned string will be:
//   - Placed directly on the Clipboard
//   - Ignored by ClipboardFusion if it is 'null'
public static class ClipboardFusionHelper
{
	public static string ProcessText(string text)
	{
		BFS.Input.SendKeys("^({VK_67})");       
		BFS.Clipboard.SetHTML(@"<a href='"+text+"'>"+BFS.Clipboard.GetText()+")</a>");
		return text;
	}
}