Package FlaNium.WinAPI.actions
Class MouseActions
- java.lang.Object
-
- FlaNium.WinAPI.actions.MouseActions
-
public class MouseActions extends Object
-
-
Constructor Summary
Constructors Constructor Description MouseActions(FlaNiumDriver flaNiumDriver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddragAndDrop(int x, int y, int dx, int dy)Drags and drops the mouse from the starting point with the given distance.voidsmoothDragAndDrop(int x, int y, int dx, int dy, int duration)Drags and drops the mouse from the starting point with the given distance within the specified time.
-
-
-
Constructor Detail
-
MouseActions
public MouseActions(FlaNiumDriver flaNiumDriver)
-
-
Method Detail
-
dragAndDrop
public void dragAndDrop(int x, int y, int dx, int dy)Drags and drops the mouse from the starting point with the given distance.- Parameters:
x- X coordinate of the start point.y- Y coordinate of the start point.dx- The x distance to drag and drop, + for right, - for left.dy- The y distance to drag and drop, + for down, - for up.
-
smoothDragAndDrop
public void smoothDragAndDrop(int x, int y, int dx, int dy, int duration)Drags and drops the mouse from the starting point with the given distance within the specified time.- Parameters:
x- X coordinate of the start point.y- Y coordinate of the start point.dx- The x distance to drag and drop, + for right, - for left.dy- The y distance to drag and drop, + for down, - for up.duration- Execution time in milliseconds.
-
-