Project

General

Profile

$screenshot » History » Version 7

Per Amundsen, 10/07/2019 11:04 PM

1 1 Per Amundsen
_Added in 1.9.6_
2
3 7 Per Amundsen
*$screenshot(filename, aegijprtwxz, [x, y, w, h], N)*
4 1 Per Amundsen
5
Takes and saves a screenshot of the desktop or current active window to filename.
6
7
*Parameters*
8
9
filename - Filname to save to.
10
11
a - Take screenshot of active window.
12
b - Save as bmp image.
13
e - Save as Emf image.
14
g - Save as gif image.
15
i - Save as icon image.
16
j - Save as jpeg image.
17
p - Save as png image.
18 3 Per Amundsen
r - Select an area of the screen to save. (Use CTRL + S to save when done)
19 1 Per Amundsen
t - Save as tiff image.
20
w - Save as wmf image.
21
x - Save as exif image.
22 7 Per Amundsen
z - Select and save a rectangle [x, y, w, h] of the screen.
23 1 Per Amundsen
24 7 Per Amundsen
[x, y, w, h]- The position and size of a rectangle to save. (use with the 'z' parameter)
25 2 Per Amundsen
N - Compression quality (0-100)
26 1 Per Amundsen
27
*Example*
28
29
<pre>
30 6 Per Amundsen
; Takes a screenshot of current active window and saves it as a png image, then opens the image.
31
//run $qt($screenshot(screenshot.png, pa))
32
33
; Show a transparent form where you can draw a rectangle and save it as a png image, then opens the image.
34
//run $qt($screenshot(screenshot.png, pr))
35 1 Per Amundsen
</pre>