Image CAPTURE from SCREEN - < display_captureimage >() ... [Pro]
Display Image CAPTURE from SCREEN <display_captureimage>(x,y,Width,Height,"Image file") Available in: Professional edition
|
This command captures an image on computer screen.
|
#
|
Parameter name
|
Parameter description
|
1
|
x
|
X coordination of the upper left corner of the area to be captured.
|
2
|
y
|
Y coordination of the upper left corner of the area to be captured.
|
3
|
Width
|
Width of the area to be captured. If it is set to "0" then whole screen is captured.
|
4
|
Height
|
Height of the area to be captured.
|
5
|
Image file
|
Name (or full path) of the resulting image file.
|
|
|
Example (Macro Steps):
|
1
|
<#> <#> This macro shows how to capture display picture
|
2
|
Macro execution: ONLY COMMANDS
|
3
|
Display Image CAPTURE from SCREEN x = "0", y = "0", Width = "0", Height = "0", Image file = "%_vFolder_Personal%\ScreenImage.bmp"
|
4
|
Message SHOW "Question" : "Do you want to see the captured image now?" (other parameters: x = -100, y = -100, Window title = Message, Buttons = Yes and No, Timeout (seconds) = 0, Always on top = ).
|
5
|
IF _vMsgButton==YES
|
6
|
File OPEN open file "%_vFolder_Personal%\ScreenImage.bmp" in system default viewer.
|
7
|
ENDIF
|
|
Example (Plain Text):
<#> This macro shows how to capture display picture
<cmds>
<display_captureimage>(0,0,0,0,"%_vFolder_Personal%\ScreenImage.bmp")
<msg>(-100,-100,"Do you want to see the captured image now?","Message",2,0,1)
<if>("_vMsgButton==YES")
<fileopen>("%_vFolder_Personal%\ScreenImage.bmp",0)
<endif>