screenshot
screenshot($filepath,$x=-1,$y=-1,$width=-1,$heigth=-1); - this function is used to create a screenshot of the window.
the input Function accepts parameters:
$filepath – path to the screenshot file
$x – x of the upper-left corner of the screenshot.
$y – y of the upper-left corner of the screenshot.
$width – width of the screenshot area.
$height – height of the screenshot area.
After processing, the function returns the result of its work to the script :
true – the result of message processing.
false – couldn't find it.