Page 1 of 1
screen captures
Posted: Tue May 22, 2007 4:50 pm
by churchken
Hi,
Is there a way using REV commands to capture a specific screen area (or designated window) and put it into an image?
Thanks,
Posted: Tue May 22, 2007 5:21 pm
by Klaus
Hi Ken,
sure it is
Check the docs for "import snapshot..."
Best from germany
Klaus
thanks from New Mexico
Posted: Tue May 22, 2007 6:51 pm
by churchken
Klaus,
Many thanks for the spot on reference.
Regards,
location of screen snapshot rectangle
Posted: Wed May 23, 2007 2:58 pm
by churchken
Hi,
Using the "export snapshot" command, an area of the screen is sucessfully exported to an image file.
Now, is there a way to capture the rectangle x & y values of the capture area so that the same area may be captured at timed intervals?
I've tried the clickLoc and mouseLoc commands, but don't seem to actually "catch" the precise area that was defined in the "export snapshot" process.
Thanks in advance for any pointers.
Posted: Sat May 26, 2007 1:47 am
by Mark
Hi ken,
What exactly have you tried so far?
You can import/export a snapshot from the rectangle (or a part of it) of any object. It is all explained in the docs. For example:
export snapshot from rect 100,100,200,200 of this card to myVar as PNG
If you need the user to select a part of the card, you should give sufficient visual feedback. For example, set the topleft of an object to the mouseLoc on mouseDown, followed by a repeat loop which sets the bottomright of the object to the mouseLoc. When the mouse is up, put the rect of the object into a variable and use that to export from.
Best,
Mark