Page 1 of 1

Can eValid take a screenshot

PostPosted: Fri Mar 10, 2017 12:41 pm
by KTaylor
Hey.

Can eValid snap a screenshot of a page if an error is found so we can track down the error ourselves or refer this problem to your technical support team?

Thanks

Re: Can eValid take a screenshot

PostPosted: Mon Mar 13, 2017 12:43 pm
by eValid
KTaylor wrote:Hey.

Can eValid snap a screenshot of a page if an error is found so we can track down the error ourselves or refer this problem to your technical support team?

Thanks


A good point KTaylor.

If you need to save a screen image there are two commands that do that:

SaveWindow wid "uniqueID" or SaveWindowFace wid "uniqueID"

where the wid is the number of the window (wid = 0 is the parent window) and where the screen image will be saved in a file named script-R.uniqueID.bmp, that is, as a bitmap file with the filename you specified.

So if your script is called test.evs the and your uniqueID is TEST, then you will see the image in:

test-R.TEST.bmp

This designed to help you keep track of what images are saved in response to which tests, etc.

That write operation is impolite; it will overwrite any existing file of them same name.

You always get the MOST RECENT saved image.

The SaveWindow saves the entire window, and the SaveWindowFace saves what is inside the border of the window.

-- eValid