LC 5.02 problem with "screen capture"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
LC 5.02 problem with "screen capture"
Hello, hope this is the right place to have an answer from developers. There is a problem with screen capture command in new version 5.02, it returns a black screen on IOS, while in version 5.01 it works perfectly... I am doing some mistake in the use of the command ?
Thank anyone would help!
Antonio - Italy
Thank anyone would help!
Antonio - Italy
Re: LC 5.02 problem with "screen capture"
Post your script.
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: LC 5.02 problem with "screen capture"
Hi Mark,
I think the problem is not version 5.0.2 in itself but definitly the use of the accelerated graphic..
Anyway this is the script, it is connected to a text entry field (field "domanda") and its aim is to take a screenshot of what the user has written in the field, as it was written on the page of a book.
Using the 5.0.1 version, it returned a messy graphics on the IDE but it works perfectly in the iPhone simulator and on the real iPhone. Using 5.0.2 with the command
gives back a screen capture of the 0,0,320,480 of my computer screen (and not of the card) and in simulator gives a black screen.
Thank you for help!
Antonio
I think the problem is not version 5.0.2 in itself but definitly the use of the accelerated graphic..
Anyway this is the script, it is connected to a text entry field (field "domanda") and its aim is to take a screenshot of what the user has written in the field, as it was written on the page of a book.
Code: Select all
on returnInField
disable me
export snapshot from rectangle "0,0,320,480" of this card to pictVariable as PNG
put pictVariable into image "Pagina1" of card "foglio"
go to card "foglio"
aeChangeRect the long ID of image "Pagina1",80, 120, 240, 360,1000,"inOut"
aeChangeRect the long ID of image "Pagina0",0, 0, 320, 480,1000,"inOut"
end returnInField
Code: Select all
set the acceleratedRendering of this stack to true
Thank you for help!
Antonio
Re: LC 5.02 problem with "screen capture"
Hi Antonio,
I tred your script and don't see anything strange. It works fine in the IDE and in the simulator. I have created a simple stack for testing, which you can download here.
I did notice that in some very rare occasions, the PNG picture may get corrupt. Does it help if you use a different format, e.g. JPEG?
I removed the lines using the Animation Engine, because including it was too much trouble for such a little test. Does it make a difference if you don't use AE?
Kind regards,
Mark
I tred your script and don't see anything strange. It works fine in the IDE and in the simulator. I have created a simple stack for testing, which you can download here.
I did notice that in some very rare occasions, the PNG picture may get corrupt. Does it help if you use a different format, e.g. JPEG?
I removed the lines using the Animation Engine, because including it was too much trouble for such a little test. Does it make a difference if you don't use AE?
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: LC 5.02 problem with "screen capture"
Hi Mark, thank you for the script, I will study it to understand why it works while mine don't works.
Another thing: I have tried your stack on my iPhone too, it works fine for screen capture, but it has the same problem of mine about the caps lock mode when the keyboard appears.. Is there any way to turn this off?
Really thanks you!
Antonio
Another thing: I have tried your stack on my iPhone too, it works fine for screen capture, but it has the same problem of mine about the caps lock mode when the keyboard appears.. Is there any way to turn this off?
Really thanks you!
Antonio
Re: LC 5.02 problem with "screen capture"
Hi Antonio,
I don't know what caps lock problem you mean, but if you create a native input control, as described in the iOS Release Notes, then you should be able to change the keyboard types.
Best,
Mark
I don't know what caps lock problem you mean, but if you create a native input control, as described in the iOS Release Notes, then you should be able to change the keyboard types.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: LC 5.02 problem with "screen capture"
Hi Mark, I mean that when the keyboard appears, it has capital letters locked, and it seems there is no way to change it. I will try to create a native input control as you said. Thank you again for your help!
Antonio
Antonio
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: LC 5.02 problem with "screen capture"
Same for meshankez wrote:Hi Mark, I mean that when the keyboard appears, it has capital letters locked, and it seems there is no way to change it.
Antonio
-
- Posts: 54
- Joined: Fri Jan 20, 2012 6:08 pm
Re: LC 5.02 problem with "screen capture"
Hi MarkI did notice that in some very rare occasions, the PNG picture may get corrupt. Does it help if you use a different format, e.g. JPEG?
The best option is to use JPEG on all graphics?
Is there a pattern to know if a PNG will get corrupted?
Re: LC 5.02 problem with "screen capture"
Hi Mark,Mark wrote:Hi Antonio,
I don't know what caps lock problem you mean, but if you create a native input control, as described in the iOS Release Notes, then you should be able to change the keyboard types.
Best,
Mark
I tried with no results to create a useful iOS native input control, can you provide me a very simple stack with a working iOS native input control, so I can customize it by changing properties and keyboard type? I know is asking much, but - believe - me I really got lost

Thank you!!!
Re: LC 5.02 problem with "screen capture"
Hi! Have you resolved the issue? I cannot resolve it, I don't understand if it is a bug of LC or if there is a way to handle the capitalization in text field entries... or if it is a bug o meteacherguy wrote:Same for meshankez wrote:Hi Mark, I mean that when the keyboard appears, it has capital letters locked, and it seems there is no way to change it.
Antonio

Anyway pls, if you have found a solution, share it...
Antonio
Re: LC 5.02 problem with "screen capture"
Shankez...
If you are using 'ordinary' text fields in conjunction with the keyboard then, no you can't control the 'capitalization', however if you elect to use UITextField in your app then you have control over the 'caps'... Read page.58 of the iOS release notes... the 'autoCapitalization' property of the UITextfield will allow you to determine when the shift-key is automatically enabled.
Be well
Dixie
If you are using 'ordinary' text fields in conjunction with the keyboard then, no you can't control the 'capitalization', however if you elect to use UITextField in your app then you have control over the 'caps'... Read page.58 of the iOS release notes... the 'autoCapitalization' property of the UITextfield will allow you to determine when the shift-key is automatically enabled.
Be well
Dixie
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: LC 5.02 problem with "screen capture"
Thank you for the tip, which led me to find this lesson:
http://lessons.runrev.com/s/lessons/m/4 ... ols-on-ios
Funny, I had sent an email to support about the caps issue, and they said there was no way to deal with it.
http://lessons.runrev.com/s/lessons/m/4 ... ols-on-ios
Funny, I had sent an email to support about the caps issue, and they said there was no way to deal with it.