Changes in snapshot over versions

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
windowsLC
Posts: 26
Joined: Sat Dec 16, 2017 5:58 am

Changes in snapshot over versions

Post by windowsLC » Mon Jan 15, 2018 9:25 am

I have an old standalone (maybe version 2.9) that uses the import snapshot command (with no object or rec) and you get the cross icon to click and drag. Well If you do not move the cursor and double click an image of the whole desktop is imported. If I do a snapshot with version 9 dp11(windows) and just double click it just fails silently.

Does anyone know if this is a bug or was it changed at some point?

I liked the old way better plus it seems in a standalone it turns the icon into a permanent ring/clock though it doesn't freeze the program so you have to click with the clock cursor. in the IDE it just fails.

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

Re: Changes in snapshot over versions

Post by bogs » Mon Jan 15, 2018 2:21 pm

In 2.2.1 (only older version I have) it works as you describe, no matter where you just click, it shoots the whole desktop.

In 6.5.2, it will shoot the whole desktop if you click outside of the stack, otherwise it shoots the stack.

in 7.1.4 and 8.1.6 it actually froze the desktop screen and the IDE, forcing a reboot (go figure). I stopped testing at that point, so haven't narrowed down exactly when it changed, but it did change at least twice.

I think I liked it the way it worked better in previous editions myself.
Image

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3999
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Changes in snapshot over versions

Post by bn » Mon Jan 15, 2018 4:57 pm

Hi windowsLC,

I tried double-clicking on a Mac using LC9 DP11 and it imported a snapshot of the whole screen.

Using the crosshair cursor it imported the selection.

If accidentally your stack is located at the screenloc you would not notice that an image was imported.

If that is not the case you probably should do a bug report.

As bogs noted in its testing this feature was broken on and off over time. But now it works for me.

Kind regards

Bernd

windowsLC
Posts: 26
Joined: Sat Dec 16, 2017 5:58 am

Re: Changes in snapshot over versions

Post by windowsLC » Mon Jan 15, 2018 10:00 pm

thanks for the testing.

I tested a bit also on Windows.

On version v6.0.2 it works and I get full screenshot

I tried a few v7 stable builds and it just fails silently.

I tried v9 dp11 and it script fails with this info: button "Button": execution error at line 4 (snapshot: no screen), char 1

so if it is working for BN on Mac v9 dp11 I suspect that they tried to fix the silent fail at some point and fixed for Mac but not for Windows.

Maybe a few more tests can determine exactly what version it happened.

UPDATE: after a little more testing I can see that my theory is probably wrong. I can see that when it failed in previous versions it fails at that line in the script and doesn't continue. I think the only difference in v9 is that it can now report the error in the script editor and express what the execution error is.

windowsLC
Posts: 26
Joined: Sat Dec 16, 2017 5:58 am

Re: Changes in snapshot over versions

Post by windowsLC » Tue Jan 16, 2018 1:06 am

I've determined the bug surfaced at least on windows after 6.6.5 stable. Bug exists in 6.7 stable. I have filed a bug report.

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

Re: Changes in snapshot over versions

Post by bogs » Tue Jan 16, 2018 3:50 am

Nice work testing, I didn't have time to return to it myself today.
Image

Post Reply

Return to “Talking LiveCode”