Binary Fortress
Binary Fortress Software
CheckCentral
ClipboardFusion
CloudShow
DisplayFusion
FileSeek
HashTools
LogFusion
Notepad Replacer
Online Base64 Decoder
Online Base64 Encoder
Online JSON Formatter
ShellSend
TrayStatus
VoiceBot
WallpaperFusion
Window Inspector
More Apps...
DisplayFusion
CheckCentral
CloudShow
ClipboardFusion
FileSeek
TrayStatus
VoiceBot
WallpaperFusion
Clipboard
Fusion
by Binary Fortress Software
Download
Download
Change Log
Download Beta
Beta Change Log
License (EULA)
Features
Features
HotKeys
Macros
Triggers
Clipboard Syncing
Clipboard Manager
Languages
Free vs Pro
Apps
More
Screenshots
Macros
Languages
Help
Help Guide
FAQ
Discussions
Contact Us
Find My License
Mailing Address
Advanced Settings
Purchase
Login / Register
WARNING: You currently have Javascript disabled!
This website will not function correctly without Javascript enabled.
Title
Message
OK
Confirm
Yes
No
Paste Newest History Item and Remove
Return to ClipboardFusion Macros
Description
This script will paste the latest history item and then remove it from the history list.
Language
C#.net
Minimum Version
5.8.5+
Created By
Goran Genter
Contributors
-
Date Created
Oct 13, 2020
Date Last Modified
Oct 13, 2020
Macro Code
Copy
Select All
using System; public static class ClipboardFusionHelper { public static string ProcessText(string text) { int count = BFS.ClipboardFusion.GetHistoryItemCount(); //--pull entire history into temporary array string[] history = BFS.ClipboardFusion.GetAllHistoryText(); //--if any history if(count > 0) { //--paste the newest entry text = BFS.ClipboardFusion.GetHistoryText(0); BFS.Clipboard.PasteText(text); //--now clear history BFS.ClipboardFusion.ClearHistory(); //--then rebuild from temporary array for(int i = count - 1; i > 0; i--) { BFS.ClipboardFusion.AddHistoryText(history[i]); } } return null; } }