send_click
send_click($x="",$y="",$scroll=true); - this function is used to send a left-click at a given point in the browser, even if the program is hidden in the tray.
the input Function accepts parameters:
$x – x - coordinate of the point to send the click to, relative to the upper-left corner of the browser. (int)
$y – y - coordinate of the point to send the click to, relative to the upper-left corner of the browser. (int)
$scroll – whether to scroll the browser to the specified point. If false, the user will simply click at the specified point. if true, the user will automatically scroll to the specified point (boolean).
If the coordinates are empty, the click is made at the current point.
After testing, the function returns the result of its work to the script :
true – successfully clicked at the specified point(boolean)false – operation failed (boolean)