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
70 discussion posts
Is it possible to clear all pinned items?
Thanks...
May 16, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Yep! This code would clear out all Local Pinned items:

Code

using System;
using System.Collections.Generic;

public static class ClipboardFusionHelper
{
    public static string ProcessText(string text)
    {
        while (BFS.ClipboardFusion.GetLocalPinnedItemCount() > 0)
        {
            BFS.ClipboardFusion.RemoveLocalPinnedItem(0);
        }
        return null;
    }
}
May 17, 2019  • #2
User Image
Shaun Louw
70 discussion posts
Much appreciated..what powerful code
This is not working for me yet.
The BFS.Clipboard.Clear() notes say Clipboard Fusion 3.1 or higher and I am running a recent version though Settings > Help > About does not tell me.
I am sure I am running a 5.x version though.

Any idea how to troubleshoot?
Grateful for any responses..
May 21, 2019  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
The version number is in the titlebar of the Settings window. What happens when you run the Macro? Do you get an error?
May 23, 2019  • #4
User Image
Shaun Louw
70 discussion posts
So I see... Ver 5.5.1
In fact I was running wrong macro.
This one does in fact work.. perfectly.
You do realise you are changing my life...for the better!!!
Gratitude.....:laugh::laugh::laugh:
May 23, 2019  • #5
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)