Project

General

Profile

$screenshot » History » Version 8

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