Re: LC Bug: Copying an Image fails

2021-03-22 Thread Bob Sneidar via use-livecode
+1

On Mar 19, 2021, at 9:55 PM, Curry Kenworthy via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Bob:

> MS Office copy operations are notoriously problematic.
> Microsoft maintains their own clipboard format, so that when
> switching to another product the clipboard must be translated.
> Other apps may do the same.
> The translation does not always go to plan.

Eh ... I think this is a more useful current summary:

1. The Windows blank pasted image bug was about a data stream pointer.
Thanks to the LC Team for looking into that; hope it's merged sooner.

2. There's a crash for some copied image data. Not just MS Office.

3. Mac has image copy/paste troubles too. Also not just MS Office.
I'll report that soon, and we'll probably see improvement.

4. There are dozens of issues with copied content being converted in LC.
I'm crushing many of those with workarounds, so improvement there too!

Is copy/paste between apps effortless? No.
Do users expect it? Yes.
Even with the most popular apps? Of course!
There are problems, but also progress

Best wishes,

Curry Kenworthy

Custom Software Development

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-20 Thread e.beugelaar--- via use-livecode
Hi Curry,

It's always fun to read your comments and conclusions that can be somethimes  
interpreted in Dutch as: "de redding is nabij".
So, a solution is near to come!

Nice weekend,
Erik

Met vriendelijke groet,

Erik Beugelaar



From: use-livecode  on behalf of Curry 
Kenworthy via use-livecode 
Sent: Saturday, March 20, 2021 5:55:19 AM
To: use-livecode@lists.runrev.com 
Cc: Curry Kenworthy 
Subject: Re: LC Bug: Copying an Image fails


Bob:

 > MS Office copy operations are notoriously problematic.
 > Microsoft maintains their own clipboard format, so that when
 > switching to another product the clipboard must be translated.
 > Other apps may do the same.
 > The translation does not always go to plan.

Eh ... I think this is a more useful current summary:

1. The Windows blank pasted image bug was about a data stream pointer.
Thanks to the LC Team for looking into that; hope it's merged sooner.

2. There's a crash for some copied image data. Not just MS Office.

3. Mac has image copy/paste troubles too. Also not just MS Office.
I'll report that soon, and we'll probably see improvement.

4. There are dozens of issues with copied content being converted in LC.
I'm crushing many of those with workarounds, so improvement there too!

Is copy/paste between apps effortless? No.
Do users expect it? Yes.
Even with the most popular apps? Of course!
There are problems, but also progress

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-19 Thread Curry Kenworthy via use-livecode



Bob:

> MS Office copy operations are notoriously problematic.
> Microsoft maintains their own clipboard format, so that when
> switching to another product the clipboard must be translated.
> Other apps may do the same.
> The translation does not always go to plan.

Eh ... I think this is a more useful current summary:

1. The Windows blank pasted image bug was about a data stream pointer.
Thanks to the LC Team for looking into that; hope it's merged sooner.

2. There's a crash for some copied image data. Not just MS Office.

3. Mac has image copy/paste troubles too. Also not just MS Office.
I'll report that soon, and we'll probably see improvement.

4. There are dozens of issues with copied content being converted in LC.
I'm crushing many of those with workarounds, so improvement there too!

Is copy/paste between apps effortless? No.
Do users expect it? Yes.
Even with the most popular apps? Of course!
There are problems, but also progress

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-19 Thread Bob Sneidar via use-livecode
MS Office copy operations are notoriously problematic. Microsoft maintains 
their own clipboard format, so that when switching to another product the 
clipboard must be translated. Other apps may do the same. The translation does 
not always go to plan.

Bob S


On Mar 17, 2021, at 12:28 PM, Curry Kenworthy via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Paul:

>  Return an error code or even just empty or something

A very prophetic statement; that appears to be the case on Mac.
I copy a Word image, LC "paste" is not enabled.

Thus, likely image copy/paste trouble is not limited to Windows.
(As opposed to the separate hard crash bug.)

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-17 Thread Curry Kenworthy via use-livecode



Sean:

> char 1 of rawclipboarddata["CF_BITMAP"] crashes it

That's simply standing on principle, which I find admirable!
After all, give us a char and we'll likely take ... an image. :)

But on the tech side, not surprising; char 1 of (the data).

--

Paul:

> I would consider this a serious LC bug.

Indeed it is!
Nor is this limited to rawclipboarddata.
Nor is it limited even to MS Word

I can trigger the same crash with a copied image from OpenOffice.
All it takes is reading either of these:

fullClipboardData["windows metafile"]
fullClipboardData["windows enhanced metafile"]

I'll be filing a bug report (maybe two) this week.

--

Paul:

>  Return an error code or even just empty or something

A very prophetic statement; that appears to be the case on Mac.
I copy a Word image, LC "paste" is not enabled.

Thus, likely image copy/paste trouble is not limited to Windows.
(As opposed to the separate hard crash bug.)

In which case it should be an even more "relevant" priority.
More news on that after I've tested with latest LC.

--

Finally, I've heard that the LC Team will be taking a look.
That's encouraging news; thanks LC Team!

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-16 Thread Paul Dupuis via use-livecode

On 3/16/2021 2:38 PM, Sean Cole (Pi) via use-livecode wrote:

even asking it to only return char 1 of rawclipboarddata["CF_BITMAP"]
crashes it so any attempt to read that data triggers an exception.


I would consider this a serious LC bug. Regardless of what crap another 
application puts on the clipboard, LC should not crash. Return an error 
code or even just empty or something, but not crash.




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-16 Thread Mark Wieder via use-livecode

On 3/16/21 11:47 AM, Tom Glod via use-livecode wrote:


If any of that seems useful I can check the codebase for the exact steps.


Avoiding crashes is *always* useful.

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-16 Thread Tom Glod via use-livecode
 Hey guys.

There are a few issues around windows clipboard and images. I ran into them
ALOT when i worked on the Toolbox application.

I (reported bug also).  https://quality.livecode.com/show_bug.cgi?id=21543

This probably won't help. but  there were times when I had to figure
out which key to read from the rawclipboarddata

Put it in an image control and then export it out from there.. thats
how i avoided some of the crashes and glitches associated with clipboard
and screenshots and windows.

If any of that seems useful I can check the codebase for the exact steps.

Cheers,

Tom


On Tue, Mar 16, 2021 at 2:40 PM Sean Cole (Pi) via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Curry,
> even asking it to only return char 1 of rawclipboarddata["CF_BITMAP"]
> crashes it so any attempt to read that data triggers an exception.
> Remarkable. :D
>
> Sean
>
> On Tue, 16 Mar 2021 at 18:16, Curry Kenworthy via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> >
> > Sean:
> >
> >  > put the keys of the rawclipboarddata
> >
> > Yes, I have a little clipboard browser stack for that.
> > There are regular, full, and raw keys. Joy awaits
> >
> >  > or any other CF_, it crashes out of LC altogether
> >
> > I had that joyful experience earlier today, with my test stack.
> > You gotta love it, right? Really ups the challenge.
> > LC always trains to the fight, so that we are the best of the best.
> >
> > (Nice try, LC, I'm a compulsive stack saver! Fool me twice.)
> >
> > Has anyone reported the crash yet? Or does that joy also await?
> >
> >  > 'do as javascript'
> >
> > Thanks for the idea. I'll experiment further later this week.
> > (Unless anyone has a confirmed workaround already.)
> >
> > I'm also going to test this on Mac soon.
> > Bugs get super "relevant" if they hit the Macophiles too. :)
> >
> > Best wishes,
> >
> > Curry Kenworthy
> >
> > Custom Software Development
> > "Better Methods, Better Results"
> > LiveCode Training and Consulting
> > http://livecodeconsulting.com/
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-16 Thread Sean Cole (Pi) via use-livecode
Curry,
even asking it to only return char 1 of rawclipboarddata["CF_BITMAP"]
crashes it so any attempt to read that data triggers an exception.
Remarkable. :D

Sean

On Tue, 16 Mar 2021 at 18:16, Curry Kenworthy via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> Sean:
>
>  > put the keys of the rawclipboarddata
>
> Yes, I have a little clipboard browser stack for that.
> There are regular, full, and raw keys. Joy awaits
>
>  > or any other CF_, it crashes out of LC altogether
>
> I had that joyful experience earlier today, with my test stack.
> You gotta love it, right? Really ups the challenge.
> LC always trains to the fight, so that we are the best of the best.
>
> (Nice try, LC, I'm a compulsive stack saver! Fool me twice.)
>
> Has anyone reported the crash yet? Or does that joy also await?
>
>  > 'do as javascript'
>
> Thanks for the idea. I'll experiment further later this week.
> (Unless anyone has a confirmed workaround already.)
>
> I'm also going to test this on Mac soon.
> Bugs get super "relevant" if they hit the Macophiles too. :)
>
> Best wishes,
>
> Curry Kenworthy
>
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-16 Thread Curry Kenworthy via use-livecode



Sean:

> put the keys of the rawclipboarddata

Yes, I have a little clipboard browser stack for that.
There are regular, full, and raw keys. Joy awaits

> or any other CF_, it crashes out of LC altogether

I had that joyful experience earlier today, with my test stack.
You gotta love it, right? Really ups the challenge.
LC always trains to the fight, so that we are the best of the best.

(Nice try, LC, I'm a compulsive stack saver! Fool me twice.)

Has anyone reported the crash yet? Or does that joy also await?

> 'do as javascript'

Thanks for the idea. I'll experiment further later this week.
(Unless anyone has a confirmed workaround already.)

I'm also going to test this on Mac soon.
Bugs get super "relevant" if they hit the Macophiles too. :)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Bug: Copying an Image fails

2021-03-16 Thread Sean Cole (Pi) via use-livecode
Curry,

The issue here is that MS Word controls how that clipboard data is
transferred. As an example

Open the taskmanager
In Word, copy an image into the clipboard
In LC message box type
lock the clipboard; put the keys of the rawclipboarddata
Returns something like:
  Art::GVML ClipFormat
  PNG
  GIF
  CF_ENHMETAFILE
  CF_METAFILEPICT
  CF_BITMAP
  JFIF
  Object Descriptor
  image/svg+xml
In LC message box, type
lock the clipboard; put the rawclipboarddata["Art::GVML ClipFormat"]
LC Locks up
Then switch to TaskManager and see that MSWord has sprung into life. At
this stage it is trying it's best to transfer that data into LC, but
probably can't work out how, so they end up in a loop of errors.
If you type into the messagebox:
lock the clipboard; put the rawclipboarddata["CF_BITMAP"]
or any other CF_, it crashes out of LC altogether.

Copy the image from MSWord, paste into MSPaint and immediately copy into
the clipboard again. Now in LC MsgBx type:
lock the clipboard; put the keys of the rawclipboarddata
Returns something like:
  Embed Source
  Object Descriptor
  CF_METAFILEPICT
  CF_DIB
Now:
lock the clipboard; put the rawclipboarddata["CF_DIB"]
and you get the raw data of the image. You cannot do this directly from
MSWord clipboard data.

There might be a way to achieve it using a 'do as javascript' and following
guides listed here:
https://ourcodeworld.com/articles/read/491/how-to-retrieve-images-from-the-clipboard-with-javascript-in-the-browser

All the best

Sean

On Tue, 16 Mar 2021 at 15:40, Curry Kenworthy via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> LC Bugathon continues
>
> Recently I ran into this bug, which Trevor already reported:
>
> "Unable to paste images copied from Microsoft Word on Windows"
> https://quality.livecode.com/show_bug.cgi?id=21906
>
> Copying an image directly (not inline with text) fails.
> The clipboarddata contains nulls, in testing so far.
> Just tested on 9.6.2 RC 3.
>
> Any known script workaround?
>
> (A user behavior workaround, ie copying inline, is not very acceptable.)
>
> Best wishes,
>
> Curry Kenworthy
>
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


LC Bug: Copying an Image fails

2021-03-16 Thread Curry Kenworthy via use-livecode



LC Bugathon continues

Recently I ran into this bug, which Trevor already reported:

"Unable to paste images copied from Microsoft Word on Windows"
https://quality.livecode.com/show_bug.cgi?id=21906

Copying an image directly (not inline with text) fails.
The clipboarddata contains nulls, in testing so far.
Just tested on 9.6.2 RC 3.

Any known script workaround?

(A user behavior workaround, ie copying inline, is not very acceptable.)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode