Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Clear pinned items

User Image
Shaun Louw
42 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
42 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
42 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
Was this helpful?  Login to Vote(-)  Login to Vote(-)