# screenShot(file,area)

Takes snapshot of screen

### Syntax

o_screenShot(file,area)
  file: scalar text- file in which to store the screenshot
  area: array 1D of coord or scalar text- two coordinates in pixels that define the area of the screen to be captured

### Usage

Use this to programmatically capture all or part of the current screen display.

### Location

menu: veeos ==> system ==> screenShot

library: sysLib

### Example

o_screenShot( "C:/temp/capture.png", "" ) captures the entire screen as a PNG file

o_screenShot( "", "(0,0) (500,300)" ) captures a rectangular area to the clipboard.

### Notes

- File Name
  - must have suffix of BMP or PNG. Other graphics types are not supported at this time.
  - If the file name is a null string then the screen is captured to the clipboard
- Area

- Coordinates are referenced to the upper left of the screen and are in pixels. These may be specified by 2 2D coordinates in a coord array or simply written as text.
- If the area field is a null string then the entire screen is captured.

### Reference

### Dependencies

Utilizes external compiled code which is supplied automatically with VEEOS installs. This code is open source and can also be used outside of VEE if desired.

### Supported On

VEE 7.0+, all platforms

### See Also

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:25.