Project

General

Profile

$screenshot » History » Revision 7

Revision 6 (Per Amundsen, 10/04/2019 06:55 PM) → Revision 7/9 (Per Amundsen, 10/07/2019 11:04 PM)

_Added in 1.9.6_ 

 *$screenshot(filename, aegijprtwxz, [x, y, w, h], aegijprtwx, N)* 

 Takes and saves a screenshot of the desktop or current active window to filename. 

 *Parameters* 

 filename - Filname to save to. 

 a - Take screenshot of active window. 
 b - Save as bmp image. 
 e - Save as Emf image. 
 g - Save as gif image. 
 i - Save as icon image. 
 j - Save as jpeg image. 
 p - Save as png image. 
 r - Select an area of the screen to save. (Use CTRL + S to save when done) 
 t - Save as tiff image. 
 w - Save as wmf image. 
 x - Save as exif image. 
 z - Select and save a rectangle [x, y, w, h] of the screen. 

 [x, y, w, h]- The position and size of a rectangle to save. (use with the 'z' parameter) 
 N - Compression quality (0-100) 

 *Example* 

 <pre> 
 ; Takes a screenshot of current active window and saves it as a png image, then opens the image. 
 //run $qt($screenshot(screenshot.png, pa)) 

 ; Show a transparent form where you can draw a rectangle and save it as a png image, then opens the image. 
 //run $qt($screenshot(screenshot.png, pr)) 
 </pre>