void ClickCoordinate(X, Y, ClickCount)
|
|
|
|
|
|
|
Click in window X,Y offset
X: Horizontal Offset from the Element in screen pixels (can use P2cx to convert screen percentage to pixels)
Y: Vertical Offset from the Element in screen pixels (can use P2cy to convert screen percentage to pixels)
Click Count: Number of Clicks
If for some reason, you want to click on a specific coordinates on the screen instead of an object you can use the "ClickCoordinate" command.
Scenario:
We will use the facebook website and will use the clickCoordinate command to click on the 'add friend' button.
To get the correct coordinates, we will use the offline tab (Capture Scene) and will get the coordinates from a screenshot we captured (Width/Height).
Parameters:
X: will be set to991
Y: 460
Click count: will be set to 1
client.clickCoordinate(991, 460, 1);client.ClickCoordinate(991, 460, 1);client.ClickCoordinate 991, 460, 1Reportself.client.clickCoordinate(991, 460, 1)$client->clickCoordinate(991, 460, 1);