How to take a screenshot and send it by email?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How to take a screenshot and send it by email?
I want to make a button that captures the screen
This is the code I have in the meantime:
export snapshot from rect the rect of this stack to file "/Users/XXX/Downloads/yourFileHere.png" as JPEG
The problem is I do not know how to make it send an email
Can someone help me?
This is the code I have in the meantime:
export snapshot from rect the rect of this stack to file "/Users/XXX/Downloads/yourFileHere.png" as JPEG
The problem is I do not know how to make it send an email
Can someone help me?
-
- VIP Livecode Opensource Backer
- Posts: 9751
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: How to take a screenshot and send it by email?
Hi.
Never needed to do this, but there are discussion on this forum that will likely help you. Just a quick search found this:
viewtopic.php?f=8&t=36765&p=213163&hilit=email#p213163
Craig
Never needed to do this, but there are discussion on this forum that will likely help you. Just a quick search found this:
viewtopic.php?f=8&t=36765&p=213163&hilit=email#p213163
Craig
Re: How to take a screenshot and send it by email?
But I could not attach a screenshot
-
- Posts: 641
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: How to take a screenshot and send it by email?
Are you using mobileComposeMail? There are good examples in the dictionary...
As a suggestion it is always a good practice to share your code (and errors) when posting a question like this. It will help "helpers" to be able to help.
Best
As a suggestion it is always a good practice to share your code (and errors) when posting a question like this. It will help "helpers" to be able to help.
Best
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
Re: How to take a screenshot and send it by email?
And maybe you want to think this over:
...yourFileHere.png" as JPEG
...yourFileHere.png" as JPEG
Re: How to take a screenshot and send it by email?
This is my code:
The problem is that he gives this picture
And it's not the whole screen
Code: Select all
on mouseUp
// export snapshot from rect the rect of this stack to image "AuxImg" as JPEG
export snapshot from this cd to image "AuxImg" as PNG
// put img "AuxImg" into img "a" of cd "a"
// go card "a"
put image "AuxImg" into tAttachment ["data"]
put "image / jpg" into tAttachment ["type"]
put "my picture" into tAttachment ["name"]
mobileComposeMail "Imagem Capturada", ,,,, tAttachment
end mouseUp
And it's not the whole screen
Re: How to take a screenshot and send it by email?
Try this:
Code: Select all
...
export snapshot from rect (the screenrect) to image "AuxImg" as PNG
...
Re: How to take a screenshot and send it by email?
Now it's better.
But still not the way I want
Attaches a screenshot of how it is now and how I want it to be
(The problem is that there is some black color up then you do not see the whole field of the version)
But still not the way I want
Attaches a screenshot of how it is now and how I want it to be
(The problem is that there is some black color up then you do not see the whole field of the version)
Re: How to take a screenshot and send it by email?
The first screenshot is from the desktop version, and the second from the phone, right?
Well, you can only screenshot what is displayed!
What fullscreenmode are you using for your app?
Well, you can only screenshot what is displayed!
What fullscreenmode are you using for your app?
Re: How to take a screenshot and send it by email?
yesThe first screenshot is from the desktop version, and the second from the phone, right?
Did you mean that?
Code: Select all
set the fullscreenmode of me to "exactFit"
Re: How to take a screenshot and send it by email?
Yes.
Hm, "exactfit" should actually show everything?
Try "letterbox" and screenshot again.
But remember, if the screen looks ugly on the phone, the screenshot will look ugly, too!
Hm, "exactfit" should actually show everything?
Try "letterbox" and screenshot again.
But remember, if the screen looks ugly on the phone, the screenshot will look ugly, too!
Re: How to take a screenshot and send it by email?
Maybe you want to change the "hilitecolor" of your button "Button to a brighter color, so it looks a little less ugly.
Re: How to take a screenshot and send it by email?
In a few hours I'll try what you said (the phone is not with me now)
What is the original RGB of the button and background?
What is the original RGB of the button and background?
Re: How to take a screenshot and send it by email?
Hm, ask the INSPECTOR!
-
- VIP Livecode Opensource Backer
- Posts: 7258
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to take a screenshot and send it by email?
To me, it looks like the field isn't wide enough to show a longer date. "Tuesday" is shorter than "Wednesday" so Wednesday doesn't fit. The fix is to turn off the bold property and if that doesn't work then use a shorter date format. Mobile fonts are not the same as desktop fonts and will display differently.
Edit : I see you mean the bottom of the stack is cut off. Usually "showAll" works.
Edit : I see you mean the bottom of the stack is cut off. Usually "showAll" works.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com