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) { int localPinnedItemCount = BFS.ClipboardFusion.GetLocalPinnedItemCount(); if (localPinnedItemCount < 24) { for (int i = localPinnedItemCount; i < 24; i++) { BFS.ClipboardFusion.AddLocalPinnedText("--placeholder--"); } } BFS.ClipboardFusion.SetLocalPinnedText(0, BFS.Clipboard.CopyText()); return null; } }
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) { int localPinnedItemCount = BFS.ClipboardFusion.GetLocalPinnedItemCount(); if (localPinnedItemCount < 24) { for (int i = localPinnedItemCount; i < 24; i++) { BFS.ClipboardFusion.AddLocalPinnedText("--placeholder--"); } } BFS.ClipboardFusion.SetLocalPinnedText(0, BFS.Clipboard.CopyText()); System.Media.SystemSounds.Asterisk.Play(); return null; } }
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) { int localPinnedItemCount = BFS.ClipboardFusion.GetLocalPinnedItemCount(); if (localPinnedItemCount < 24) { for (int i = localPinnedItemCount; i < 24; i++) { BFS.ClipboardFusion.AddLocalPinnedText("--placeholder--"); } } BFS.ClipboardFusion.SetLocalPinnedText(0, BFS.Clipboard.CopyText()); BFS.Audio.PlayFile("C:\\Users\\test\\Downloads\\sample-3s.mp3"); return null; } }