Login / Register
▼
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
VoiceBot
WallpaperFusion
▼
Download
Download
Change Log
License (EULA)
▼
Features
Features
HotKeys
Macros
Triggers
Clipboard Syncing
Clipboard Manager
Languages
Free vs Pro
Purchase
Screenshots
Apps
▼
Online
Online
Recent Items
Pinned Items
▼
Help
Help Guide
FAQ
Discussions
Contact Us
Find My License
Mailing Address
Advanced Settings
Macros
Languages
Clipboard
Fusion
WARNING: You currently have Javascript disabled!
This website will not function correctly without Javascript enabled.
Title
Message
OK
Confirm
Yes
No
Paste Oldest History Item and Remove
Return to ClipboardFusion Macros
Description
This Macro will paste the oldest History item and remove it from the history when done.
Language
C# (.Net)
Minimum Version
5.0+
Created By
David43873
Contributors
-
Date Created
Sep 27, 2017
Date Last Modified
Sep 27, 2017
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 oldest entry text = BFS.ClipboardFusion.GetHistoryText(count - 1); BFS.Clipboard.PasteText(text); //--now clear history BFS.ClipboardFusion.ClearHistory(); //--then rebuild from temporary array for(int i = count - 2; i >= 0; i--) { BFS.ClipboardFusion.AddHistoryText(history[i]); } } return null; } }
Copyright © 2007-2021 Binary Fortress Software
•
News
•
Discussions
•
FAQ
•
Support
•
Privacy
•
ToS
•
Get Binary Fortress Merch