Screenshot of all the objects in the app
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Screenshot of all the objects in the app
How can I take a screenshot?
I want all objects to be included in this image
I want all objects to be included in this image
Re: Screenshot of all the objects in the app
Hi livecode,
check "import/export snapshot" in the dictionary.
Best
Klaus
check "import/export snapshot" in the dictionary.
Best
Klaus
Re: Screenshot of all the objects in the app
I tried but it only captures the background and not all the objects
Re: Screenshot of all the objects in the app
What exactly did you try?
Please post your script.
Please post your script.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Screenshot of all the objects in the app
Which operating system are you using?
With MacOS and Xubuntu (the 2 systems I use) they have system apps for this sort of thing.
With MacOS and Xubuntu (the 2 systems I use) they have system apps for this sort of thing.
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Screenshot of all the objects in the app
Richmond.
Craig
I would think that the OP wants LC to do all the picture taking, and not (on Mac) cmd-shift-4.With MacOS and Xubuntu (the 2 systems I use) they have system apps for this sort of thing.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Screenshot of all the objects in the app
Really, what Klaus said about the "export snapshot' command.
This will take a picture of the full card window as it is presented on screen.
Craig
Code: Select all
export snapshot from rect the rect of stack "yourStack" to file "/Users/whoeverYouAre/Desktop/yourFileHere" as JPEG
Craig
Last edited by dunbarx on Thu Feb 24, 2022 2:50 pm, edited 2 times in total.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Screenshot of all the objects in the app
viewtopic.php?t=34691
There is also my stack I made in 2001 . . .
I have just tried out that stack and, in my case on MacOS 12, it dumped the screenShot inside
the LiveCode app folder . . .
Stack deleted as per problem mentioned above: better one posted below.
There is also my stack I made in 2001 . . .
I have just tried out that stack and, in my case on MacOS 12, it dumped the screenShot inside
the LiveCode app folder . . .
Stack deleted as per problem mentioned above: better one posted below.
Last edited by richmond62 on Thu Feb 24, 2022 9:20 am, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Screenshot of all the objects in the app
Stack deleted: better one posted below.
Last edited by richmond62 on Thu Feb 24, 2022 11:08 am, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Screenshot of all the objects in the app
Of course, if you wanted a screensnap that wanted ONLY bits of LiveCode
[i.e. NOT the pornographic desktop picture . . . ] you could have the screen snapper
turn on the backdrop.
-
[i.e. NOT the pornographic desktop picture . . . ] you could have the screen snapper
turn on the backdrop.
-
- Attachments
-
- snapper.livecode.zip
- Stack
- (5.4 KiB) Downloaded 77 times
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Screenshot of all the objects in the app
That's the hard way. The easy way is:richmond62 wrote: ↑Thu Feb 24, 2022 9:24 amOf course, if you wanted a screensnap that wanted ONLY bits of LiveCode
[i.e. NOT the pornographic desktop picture . . . ] you could have the screen snapper
turn on the backdrop.
Code: Select all
export snapshot from this cd to file "testshot.png" as PNG
Code: Select all
put specialFolderPath("documents") & "/testshot.png" into tPath
export snapshot from this cd to file tPath as PNG
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Screenshot of all the objects in the app
I created a button and gave it the following code:
But it did not work for me
He did not put the image inside the document folder on the phone
How can I solve this problem?
Code: Select all
on mouseUp
// answer folder "Where to export?"
// lock screen
go card "gameCard"
export snapshot from rect the rect of stack "myFirstTamago" to file specialFolderPath ("documents") & "/ Tamago.png" as JPEG
// unlock screen
go card "setting"
answer "The export worked successfully" & cr & "The image is in the documents"
end mouseUp
He did not put the image inside the document folder on the phone
How can I solve this problem?
Re: Screenshot of all the objects in the app
Before checking any code and operation, first thing I see is the word "phone".
Are you expecting the screenshot to be saved in the publicly accessible external documents folder?
The folder specialFolderPath("documents") is sandboxed for each app, and only your LiveCode app will be able to find and access files in it.
You would need to investigate "external documents" (and enable writing to that location in the app's standalone settings if so.
Otherwise, well I have done no checking yet.
Are you expecting the screenshot to be saved in the publicly accessible external documents folder?
The folder specialFolderPath("documents") is sandboxed for each app, and only your LiveCode app will be able to find and access files in it.
You would need to investigate "external documents" (and enable writing to that location in the app's standalone settings if so.
Otherwise, well I have done no checking yet.
Re: Screenshot of all the objects in the app
So how do I save a screenshot inside the documents in my phone?
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Screenshot of all the objects in the app
Unfortunately that isn't available yet. I'm not sure what "external documents" is supposed to be, because it only saves files to the app's private sandbox. I submitted a bug/feature request because my app also needs to access a public folder.
https://quality.livecode.com/show_bug.cgi?id=23526
However, I recently read that mobileComposeMail will show the standard Share dialog and it does work. Users can then choose the location to place the file. The command isn't only for email, it seems to work for anything.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com