snapshot and animation capture

Matt Maier blueback09 at gmail.com
Fri Jan 29 06:40:05 CET 2016


What I'm working on now is putting a stack across the whole screen with a
resizable rectangle on it. Then as long as the stack is transparent, or
semi-transparent, the user can position the rectangle over what they want
to capture. When they're done the stack coordinates can be converted into
screen coordinates and the window can be closed.

On Thu, Jan 28, 2016 at 8:23 PM, Scott Rossi <scott at tactilemedia.com> wrote:

> As a concept, I thought it might be possible to detect the screenMouseLoc
> in a frontScript and use the resulting snapshot dimensions to determine
> the width/height of captured screen rect.  Two problems though: 1) under
> 7.1.1 here on OS X 10.9.5, when executing just "import snapshot" the
> capture is WAY off from the selected rect, to the point of being unusable
> (bug?), and 2) a frontScript doesn't appear to grab the mouse location
> while the snapshot feature is active.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 1/28/16, 7:26 PM, "use-livecode on behalf of Matt Maier"
> <use-livecode-bounces at lists.runrev.com on behalf of blueback09 at gmail.com>
> wrote:
>
> >About that, is there a way to save the rectangle that the user draws
> >manually using the crosshairs? With that I could at least capture the same
> >rectangle again automatically.
> >
> >I suppose all I really need is a way for the user to define an area on the
> >screen once and grab screenshots from that same area many times.
> >On Jan 28, 2016 12:47, "Scott Rossi" <scott at tactilemedia.com> wrote:
> >
> >> Regarding lagginess: yes. I can't say for sure, but if the LiveCode guys
> >> could enable the windowShape property to work with images that have
> >> centerRect dimensions, this would eliminate the need to do any image
> >> exporting and potentially make drawing of the window faster.  I've
> >> suggested for years that window masks be based on graphics and converted
> >> image/alphaData behind the scenes, but for now we're stuck with images.
> >>
> >> Regarding screenshots, WITHIN LiveCode you can capture just about
> >> anything, but I don't believe there are any options for capturing
> >> externally other than defining a rect on the screen.
> >>
> >> Regards,
> >>
> >> Scott Rossi
> >> Creative Director
> >> Tactile Media, UX/UI Design
> >>
> >>
> >>
> >>
> >> On 1/28/16, 12:21 PM, "use-livecode on behalf of Matt Maier"
> >> <use-livecode-bounces at lists.runrev.com on behalf of
> >>blueback09 at gmail.com>
> >> wrote:
> >>
> >> >Mark, oops, didn't scroll far enough. I found the link to Snapper,
> >>thanks.
> >> >
> >> >Scott, that's great, and thanks for putting that post and stack up so
> >> >fast.
> >> >It's a little laggy on my system when it resizes quickly or gets to
> >>around
> >> >750 pixels. Is it the same on yours?
> >> >
> >> >Is there a way to control other applications from within Livecode?
> >>Like,
> >> >if
> >> >the user has their browser running, could I bring it to the front,
> >>take a
> >> >screenshot, then send it back behind the stand-alone again? Or is
> >>there a
> >> >parameter in Livecode's screenshot function to only include another
> >> >application in the screenshot?
> >> >On Jan 27, 2016 14:28, "Scott Rossi" <scott at tactilemedia.com> wrote:
> >> >
> >> >> I thought this might make an interesting read, so the demo stack is
> >> >> included in an article:
> >> >> <
> >> >>
> >> >>
> >>
> >>
> http://tactilemedia.com/blog/2016/01/27/i-was-framed-a-resizable-custom-w
> >> >>i
> >> >> ndowshape-in-livecode/>
> >> >>
> >> >>
> >> >> Hope this works for you.
> >> >>
> >> >> Regards,
> >> >>
> >> >> Scott Rossi
> >> >> Creative Director
> >> >> Tactile Media, UX/UI Design
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> On 1/27/16, 11:55 AM, "use-livecode on behalf of Scott Rossi"
> >> >> <use-livecode-bounces at lists.runrev.com on behalf of
> >> >> scott at tactilemedia.com> wrote:
> >> >>
> >> >> >Hi Matt:
> >> >> >
> >> >> >I have a method for a resizable masked window that requires LC7 --
> >>I'll
> >> >> >try to post something later today or tomorrow.  As far as image
> >> >>animation
> >> >> >goes, I have a very vague memory that LC used to be able to export
> >> >> >animated GIF images, but that may have been static images only.  You
> >> >>may
> >> >> >indeed need to go with a 3rd party option -- hopefully somebody else
> >> >>has a
> >> >> >suggestion for this.
> >> >> >
> >> >> >Regards,
> >> >> >
> >> >> >Scott Rossi
> >> >> >Creative Director
> >> >> >Tactile Media, UX/UI Design
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >On 1/27/16, 11:38 AM, "use-livecode on behalf of Matt Maier"
> >> >> ><use-livecode-bounces at lists.runrev.com on behalf of
> >> >>blueback09 at gmail.com>
> >> >> >wrote:
> >> >> >
> >> >> >>I need to be able to easily capture stuff the user is seeing on
> >>their
> >> >> >>screen so that they can import it into my application without
> >>having
> >> >>to
> >> >> >>navigate the file manager multiple times. There's some good screen
> >> >> >>capture
> >> >> >>stuff already in Livecode, but what I'm picturing is an actual
> >>window
> >> >> >>with
> >> >> >>a hole in it the user can position and leave there so they know
> >>what's
> >> >> >>going to be captured multiple times. Like gifcam
> >> >> >>http://blog.bahraniapps.com/gifcam/
> >> >> >>
> >> >> >>There doesn't seem to be a way to set the background of a window to
> >> >> >>transparent. There is a way to mask the window using a transparent
> >> >>.png,
> >> >> >>but that won't allow the user to resize the window. At the moment
> >>the
> >> >> >>only
> >> >> >>mechanism I can come up with is to screencap what's behind the
> >>window
> >> >> >>every
> >> >> >>time the user moves or resizes it and display that in the window so
> >> >>that
> >> >> >>it
> >> >> >>looks like it's transparent. Is there a better way?
> >> >> >>
> >> >> >>Also, in addition to capturing still images, I'd like the user to
> >>be
> >> >>able
> >> >> >>to capture animated images (as an alternative to video). So, that
> >>part
> >> >> >>would be exactly like gifcam. The only mechanism I've found for
> >>that
> >> >>is
> >> >> >>to
> >> >> >>export each frame and then use something external like imagemagik
> >>to
> >> >> >>stitch
> >> >> >>them together into an animation.
> >> >> >>
> >> >> >>- Matt
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list