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?
Save up to 50% on our desktop apps during our Year End Sale!Save up to 50% on our desktop apps during our Year End Sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save up to 50% on our desktop apps during our Year End Sale!

User Image
jimmy119
4 discussion posts
I have a simple macros:

Code

using System;
using System.Collections.Generic;

// The 'text' parameter will contain the text from the:
//   - Current Clipboard when run by HotKey
//   - History Item when run from the History Menu
// The returned string will be:
//   - Placed directly on the Clipboard
//   - Ignored by ClipboardFusion if it is 'null'
public static class ClipboardFusionHelper
{
    public static string ProcessText(string text)
    {
        // your code goes here
        
        // Tell ClipboardFusion to ignore any changes to the Clipboard.
        // Depending on your settings, pasting text could modify the history
        BFS.ClipboardFusion.PauseClipboardListener();
    
        // Get the first item from the Clipboard History
        text = BFS.ClipboardFusion.GetHistoryText(1);
    
        // Paste the text to the active window
        BFS.Clipboard.PasteText(text);
        
        // Clear the Clipboard
        BFS.Clipboard.Clear();
    
        // Tell ClipboardFusion to start watching the Clipboard again
        BFS.ClipboardFusion.ResumeClipboardListener();
    
        // Tell ClipboardFusion to ignore the return from this Macro        
        return null;
    }
}


As you can see, it makes the simplest task of pasting second item from the main list.

But damn it, it takes 1000-1500 ms for execution this simple script and pasting simple text from the list.

Why is that?

Can you do something with a speed of macros execution?
Oct 18, 2020  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
It's pretty quick when I test it here. Is it slow every time, or only sometimes?
Oct 20, 2020  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)