send_touch
send_touch($id,$touch_type,$dx,$dy,$radiusX=0,$radiusY=0,$rotationAngle=0,$pressure=0,$modiefiers=0,$pointerType=0); - emulate finger tapping (interaction) on an element at the event level relative to the upper-left corner of the element ( available from 7.0.37 )
The function accepts parameters as input:
$id – interaction ID (finger) (from 0 to 16)$touch_type – interaction type : Released = 0, Pressed = 1, Moved = 2, canceled = 3$dx – X – axis offset relative to the upper – left corner of the element$dy - Y-axis Offset relative to the upper-left corner of the element$radiusX - radius of the click spot x-axes (in Pixels)$radiusX – radius of the click spot on the Y axis (in pixels)$rotationAngle – rotation angle (in radians), when the value is 0 - the parameter is not used$pressure – pressing pressure (from 0 to 1), when the value is 0 - the parameter is not used$modiefiers – keyboard modifier flags, summed by logical or (0 - None, 1 - CapsLockOn, 2 - ShiftDown, 4 - ControlDown, 8 - AltDown, 16 - LeftMouseButton, 32 - middlemousebutton, 64 - rightmousebutton, 128 - commanddown, 256 - numlockon, 512 - iskeypad, 1024 - isleft, 2048 - isright )$pointerType – pointer type (0 - Touch, 1 - Mouse, 2 - Pen, 3 - Eraser, 4 - Unknown)
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)