Windows copy paste does not work as it should (bug?)

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Windows copy paste does not work as it should (bug?)

Post by mrcoollion » Wed Jan 29, 2025 10:20 am

Hi everyone,

I have the issue on Windows with LiveCode 10.0.1 (rc 2) that Copy and Paste (CTRL-C and CTRL-V) does not work if I want to copy something e.g. code from the LiveCode environment into e.g. Windows Notepad and vice versa.
Is there a setting that prohibits this? Or is it a bug?
Also, Copy Paste works unreliable within LiveCode environment but it works fine in the Windows environment.

This is extreme annoying, anybody has a solution?

Tested it with LiveCode 10.0 (dp 8 ), No problem!
Windows 11 Home
Version 24H2
If anybody can confirm this then I will submit a bugreport.

Regards,

Paul

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Windows copy paste does not work as it should (bug?)

Post by bogs » Thu Jan 30, 2025 12:56 pm

I'm curious Paul, and I don't have Lc 10 to test with.

If you create a blank stack, and put this (card or stack level):

Code: Select all

on mouseUp
   answer the clipboardData
end mouseUp
Then highlight some code from the script editor, press Ctrl+c, then click on the stack what answer do you get back?

If it is the code you copied (or whatever you copied), then copy is working and it may be an incompatibility with the two programs you are using (I have a similar problem on 'nix with various text editors and LC).

If you have a clipboard manager on Windows, you can actually check that directly to see if the text is making the trip to the clipboard.
clipboardManager.png
clipboard Manager
Image

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Windows copy paste does not work as it should (bug?)

Post by mrcoollion » Thu Jan 30, 2025 3:02 pm

Hi bogs,

It does work, however after a while I cannot copy paste between Windows environment and LC Application and vice versa.
It seems like there is a memory buffer getting full and if that happens I cannot copy paste between Windows environment and LC Application and vice versa.

Your suggestion i tried and everything works as intended.
I will install a clipboard manager and keep on testing.

Thanks for your support :-)

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10279
Joined: Wed May 06, 2009 2:28 pm

Re: Windows copy paste does not work as it should (bug?)

Post by dunbarx » Thu Jan 30, 2025 3:08 pm

Paul.
It does work, however after a while I cannot copy paste
"After a while"? Do you mean it does work and then all of a sudden does not?

Craig

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Windows copy paste does not work as it should (bug?)

Post by bogs » Fri Jan 31, 2025 9:07 pm

Heya Paul,

It could certainly be that you are hitting a buffer limit, but not likely.

Unfortunately, I do not have the ability to do any serious testing of the problem your presenting (I do not use Windows and do not have access to Win 11 (last version I have is 8 somewhere on a disc :| ), as well I don't have any of the newer Lc IDEs that came out past 9.x when the OSS project terminated.

I am a little surprised that Windows hasn't included a clipboard manager of their own yet, I thought they were going that way shortly after 8 was released?

If you get a clipboard manager installed, make sure it is one that can display the full history (as shown in my screen shot). If you can find one like that, a good way to test for buffer limits on copy paste would be a repeat loop, where you copy a number in a repeat loop to increment the number, setting the ultimate number higher and higher as you go.

If the clipboard manager shows all the numbers correctly copying, then you are not worried about a limit your hitting anymore, at that point your looking at a bug in the software your trying to paste into.

I would still post the bug report, you said this problem started with your current vers. of LC, not the prior one, the clipboard manager will tell you more about what is happening.

Good luck with it, sorry I can't be of more help.
Image

Post Reply