Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Leon André Bergman
60 discussion posts
After updating to 5.8 (Beta 1) my macro isn't behaving like it should.

I have it set to copy a text, then scrub this text, and paste it.

Code

BFS.Input.SendKeys("^({VK_65})");
                text = BFS.Clipboard.CopyText();
                text = BFS.Clipboard.CopyText();
                BFS.General.ThreadWait(300);
                BFS.Input.SendKeysFast("{VK_9}{VK_13}");
                BFS.General.ThreadWait(600);
                
                
    //Logge tekst.
    
    //Work Detail
        BFS.Input.SetMousePosition(669, 363); // Work Detail TAB Anchor (Middle of first o)
        BFS.General.ThreadWait(300);

        BFS.Input.LeftClickMouse();
        BFS.General.ThreadWait(300);

    // Notes (More Details Closed)
        BFS.Input.SetMousePositionRelative(119, 529);
        //BFS.General.ThreadWait(300);

    // More Details Closed(Open it)
        BFS.Input.SetMousePositionRelative(-124, 75);
        //BFS.General.ThreadWait(300);

    // Notes (More Details Open)
        BFS.Input.SetMousePositionRelative(124, -204);
        //BFS.General.ThreadWait(300);
    
    // Work Info Type
        BFS.Input.SetMousePositionRelative(0, 154);
        BFS.General.ThreadWait(300);

    // More Details Open(Close it)
        BFS.Input.SetMousePositionRelative(-124, -82);
        BFS.General.ThreadWait(300);
        BFS.Input.LeftClickMouse();
        BFS.General.ThreadWait(300);

    //Notes
        BFS.Input.SetMousePositionRelative(124, 50);
        BFS.General.ThreadWait(300);
        BFS.Input.LeftClickMouse();
        BFS.General.ThreadWait(300);
        if (text.Contains("Circuit numbersCircuit number"))
        {
        BFS.Clipboard.Paste();
        }
        else
        {
        }


The double copy command triggers a scrub of the text. Although, thinking about it now, I could replace that with BFS.ClipboardFusion.RunTriggers, but that's besides the point right now.

It doesn't paste the resulting text. A CTRL+V shows that there is nothing to paste on my clipboard, but when I open the clipboard history of ClipboardFusion, the scrubbed text is at the top of the list.
Jun 22, 2020  • #1
User Image
Leon André Bergman
60 discussion posts
Okay. Not sure what happened, but after writing this post, it has started working. I did test it several times during writing the post even. Maybe something happened when I opened the macro, looked at it, and saved it.

Edit: Actually. It is still happening with a, so far, unpredictable pattern.
Jun 22, 2020 (modified Jun 22, 2020)  • #2
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
Hi!

In our current beta we've made a lot of changes to the way scripting works in the back end, as well as being a bit more strict about how ClipboardFusion can trigger its Triggers.

It looks like you're trying to invoke the double copy command by just copying twice, but this might be happening too quickly for ClipboardFusion to count it as two separate events, or since you're waiting 300ms for the scrubbing to happen, the Triggers might not even be finished running.

I think that if you intend to run the Triggers, you should use the "BFS.ClipboardFusion.RunTriggers" function. It runs the Triggers without any hassle, and it also waits for them to finish running before it continues the rest of the code in your Macro.

Thanks!
Jun 22, 2020 (modified Jun 22, 2020)  • #3
User Image
Leon André Bergman
60 discussion posts
I will update to the command instead of running 2 copy commands, but, as evidenced by the cbfusion clipboard history, I can confirm that it has copied and ran the trigger, as the expected output is there. it just hasnt set it to the windows clipboard, ready for pasting.
Jun 22, 2020  • #4
Jon Tackabury (BFS)'s profile on WallpaperFusion.com
We just released ClipboardFusion 5.8.4, would you be able to update to this new version and give it another try? Thanks!
Jul 13, 2020  • #5
User Image
oteqekon
4 discussion posts
The issue remains in 5.8.5. It seems to be completely random.
• Attachment: l9DUAg5CS2.png [26,733 bytes]
l9DUAg5CS2.png
l9DUAg5CS2.png
Jul 31, 2020  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
@oteqekon: Could you attach a backup of your DisplayFusion Settings? (Settings > Options > Export)
Aug 1, 2020  • #7
User Image
oteqekon
4 discussion posts
I won't be doing that because I have sensitive information under my trigger settings. But I will say that the issue is unbelievably annoying, since it's seemingly random.

ClipboardFusion didn't have this problem before, so the developers should just take a closer look at whatever changes they made to the trigger/scrubbing feature...
Aug 14, 2020 (modified Aug 14, 2020)  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We've just posted 5.8.5 Beta 2, and this should hopefully be fixed for good now. Please let me know if not.

Thanks!
Aug 19, 2020  • #9
User Image
oteqekon
4 discussion posts
It seems to be working a lot better. There are times when I'll have to copy text twice or more before it sticks to the clipboard, but that may be an application issue...
Aug 22, 2020  • #10
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, thanks for the update! If you notice a pattern to the issue of having to copy multiple times, let me know and I'll see if I can reproduce it here as well.

Thanks!
Aug 22, 2020  • #11
User Image
oteqekon
4 discussion posts
Contrary to the latest beta's release notes, I don't think the problem is fully fixed. Is anyone else still experiencing this issue?
Sep 16, 2020  • #12
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We haven't run into it here since we released Beta 3. Can you confirm you're on Beta 3 and not still on Beta 2?
Sep 17, 2020  • #13
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)