send_click_to_flash_player
send_click_to_flash_player($x,$y,$flash_num,$bUseFlashXY=false,$scroll=true); - this function is used to send a mouse click to a flash element on the current page
The function accepts parameters as input:
$x – x - coordinate of the point to send the click to. (int)
$y – y - coordinate of the point to send the click to. (int)
$flash_num – number of the flash element on the current page. (int)
$bUseFlashXY – use the coordinates of the flash element. If true, the $x and $y parameters pass coordinates relative to the upper - left corner of the flash, and if false – relative to the upper-left corner of the browser (boolean)
$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)