using System;
using System.Drawing;
using System.IO;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// wait for save_UNC_path_and_selection to change flag FLAG_UNCPATH_UPDATED then retrieve the calculated UNCPATH variable
bool ok = BFS.ScriptSettings.WriteValueBool("FLAG_UNCPATH_UPDATED", false);
ok = BFS.DisplayFusion.RunFunction("get_UNC_path_and_selected_file");
while (! BFS.ScriptSettings.ReadValueBool("FLAG_UNCPATH_UPDATED"))
{
BFS.General.ThreadWait(20);
}
string uncPath = BFS.ScriptSettings.ReadValue("UNCPATH");
// Outlook 2010 : To preserve the spaces in your link text, use an opening and closing chevron
uncPath = "<" + uncPath + ">";
BFS.Dialog.ShowTrayMessage("Copied to clipboard : " + uncPath);
BFS.Clipboard.SetText(uncPath);
}
}