Page 1 of 1

Capture Clipboard

Posted: 19 Jul 2025 14:30
by BertV
I’ve been using RJ TextEd for years and I’m a very satisfied user. I use the portable version. One of the things I use this program for is retrieving data from the internet. Since switching to Windows 11, I’ve been experiencing problems with that. What’s happening is this: when I copy data from the internet, it appears twice in RJ TextEd. I didn’t have this issue with Windows 10. In fact, since I’m using the portable version, I copied the entire folder to a Windows 10 computer and the problem doesn’t occur there. (So it’s the same program with the same settings.) It must be related to Windows 11, but I’d really like to get it working the same way as on Windows 10.

The function I’m referring to is: Edit → Clipboards → Capture Clipboard. I use this feature to copy the clipboard multiple times (from various webpages), and the text then automatically appears in the text editor. This function behaves differently in Windows 11. Is there a way to adjust something—perhaps in the INI file—to get it working properly in Windows 11 as well?

Re: Capture Clipboard

Posted: 19 Jul 2025 16:57
by Rickard Johansson
I tried on two different Windows 11 systems and it only catch the clipboard content once, on each system.

Did you install exactly the same software and tools you were running on Windows 10?
Do you by any chance use some kind of clipboard tool?
Which web browser do you use? (I used Edge)

Re: Capture Clipboard

Posted: 19 Jul 2025 18:11
by BertV
Thank you for your response. I use RJ Text Editor (v16.43 portable) and Firefox (ESR version 128.12.0 Portable from the Portable Apps site as my browser. What I’ve noticed is that the first time it works fine. But when I copy text a second time (again using CTRL-C), I see the text duplicated in RJ TextEd.

I also tried it with Chrome (also a portable version from Portable Apps), and then it works fine. I tested with your own site (the text under 'About').

Re: Capture Clipboard

Posted: 20 Jul 2025 12:15
by Rickard Johansson
When most apps add something to the clipboard - they open the clipboard, add everything (maybe different formats) and then close the clipboard. But some apps like Firefox doesn't. They open the clipboard add something, close it, and then open it again to add a different format, close it ...

I've added a timer that activates when the clipboard changes. If it changes again (<100ms) the timer is reset and we wait another 100ms before we capture the clipboard.

The 100ms is arbitrary and maybe it can be a smaller value. Anyway, below is a link to a test version you can try for yourself. Please test it and let me know how it works.

https://www.rj-texted.se/downloads/TextEd.zip