Boolean Pinch(int inside, int X, int Y, int Radius)
|
|
|
Pinch In/Out at specific location using a specific pinch radius.
Inside: Boolean set the direction of the pinch.
True for Zoom In
False for Zoom Out
X: The x coordinate of the center point from top left. (can use p2cx to convert screen percentage to pixels).
Y: The y coordinate of the center point from top left. (can use p2cy to convert screen percentage to pixels).
Radius: The pinch radius in screen pixels.
Performing pinch directly on the User Interface (UI):
Pinch in (Zooms out): Scroll the mouse wheel down while pressing the control (CTRL) key.
Pinch out (Zooms in): Scroll the mouse whee up while pressing the control (CTRL) key.
Following example demonstrates how the pinch command works:
We will zoom in the Google maps:
Parameters:
Inside: set to- true
X: set to - 600
Y: set to - 1000
Radius: set to – 700
Before running the script:
After executing the script:
if(client.pinch(true, 600, 1000, 700)){// If statement}if(client.Pinch(true, 600, 1000, 700)){// If statement}If StrComp (client.Pinch ( true, 600, 1000, 700 ), "True") = 0 Then Report 'If statementElse ReportEnd Ifif(self.client.pinch(True, 600, 1000, 700)):# If statementpassif($client->pinch(1, 600, 1000, 700)){# If statement}