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?

User Image
Shaun Louw
75 discussion posts
Greetings CLF Maestros!
Wonderful software improves my productivity every day.
Would this script be easy for you to knock up?
Currently by selecting 1-10 lines of text and hitting F12 I can add those lines to pinned items via the wonderful macro
Copy Selected Text to Local Pinned Items (clears existing Pinned Items):
https://www.clipboardfusion.com/Macros/View/?ID=2f1621a6-b3a7-4b3f-908d-2babe69411d2
(How do I make that hyperlink with the name of the Macro instead of the URL?)
I digress.

Now I am interested in a macro that would do the reverse.
That is upon invocation of the macro, CBF would past out up to 10 lines (Depending on how many pinned items are present) in the following manner

Paste Pinned item 1\r
Paste Pinned item 2\r
Paste Pinned item 3\r
Paste Pinned item 4\r
Paste Pinned item 5\r
Paste Pinned item 6\r
Paste Pinned item 7\r
Paste Pinned item 8\r
Paste Pinned item 9\r
Paste Pinned item 10\r

There are a number of assumptions/details that I am not terribly fussed about.
Grateful for any response whatsoever.
For example the simplest script would print out 10 lines reagrdless of what is in each pinned item (if any)
A more clever script would not print empty items
What is all pinned items had text accept for items 5 and 6.
Do you print out a \r for 5 and 6?
Or just print out 8 lines?

I would be happy for any response regardless.
I just would find it extreemly useful if I could save sets of pinned items for later recall.
I wonder if others would....?
• Attachment: 2025-06-07 07h55m27 F12 Macro.png [38,258 bytes]
2025-06-07 07h55m27 F12 Macro.png
2025-06-07 07h55m27 F12 Macro.png
18 days ago  • #1
User Image
C# Clouseau
123 discussion posts
This one is pasting all the local pinned items. So some small changes in the code to limit it to your 10 (or less). And other codes needed to make it smarter. So just a begin.
• Attachment: PasteAllLocalPinnedItems.cfmacro [15,042 bytes]
17 days ago  • #2
User Image
C# Clouseau
123 discussion posts
Add this after int iLocalPinnedItemCount = BFS.ClipboardFusion.GetLocalPinnedItemCount();

// insert this code to limit the number of items to join
if (iLocalPinnedItemCount > 10)
{
iLocalPinnedItemCount = 10;
}
and this after for(int i = 0; i < iLocalPinnedItemCount; i++)

if (string.IsNullOrEmpty(BFS.ClipboardFusion.GetLocalPinnedText(i)))
{
//nothing to do
}
else
{
strLocalPinnedItemsText += BFS.ClipboardFusion.GetLocalPinnedText(i) + Environment.NewLine;
}

But still not very smart because non-text items are part of the counting. A pinned image for example will reduce your 10 items in the pasting. So a lot of work to do to make it perfect.
17 days ago (modified 17 days ago)  • #3
User Image
Shaun Louw
75 discussion posts
Thats cool!
Thanks so much!
I will play with it soon
14 days ago  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)