Package com.hp.lft.sdk
Interface MouseDevice
public interface MouseDevice
An interface that provides low-level mouse operations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbuttonDown(Point point) Presses the left mouse button at the specified point on the screen.voidbuttonDown(Point point, MouseButton button) Presses the specified mouse button at the specified point on the screen.voidReleases the left mouse button at the specified point on the screen.voidbuttonUp(Point point, MouseButton button) Releases the specified mouse button at the specified point on the screen.voidMoves the mouse to the specified point on the screen and clicks the left mouse button.voidclick(Point point, MouseButton button) Moves the mouse to the specified point on the screen and clicks the specified mouse button.voiddoubleClick(Point point) Moves the mouse to the specified point on the screen and double-clicks the left mouse button.voiddoubleClick(Point point, MouseButton button) Moves the mouse to the specified point on the screen and double-clicks the left mouse button.voiddragAndDrop(Point fromPoint, Point toPoint) Drags the mouse from and to the specified points while the left mouse button is pressed, and then releases the mouse button.voiddragAndDrop(Point fromPoint, Point toPoint, MouseButton button) Drags the mouse from and to the specified points while the specified mouse button is pressed, and then releases the mouse button.voidMoves the mouse to the specified point on the screen.
-
Method Details
-
click
Moves the mouse to the specified point on the screen and clicks the left mouse button.- Parameters:
point- the point on the screen to place the mouse pointer.- Throws:
GeneralLeanFtException- if error occurs during execution
-
click
Moves the mouse to the specified point on the screen and clicks the specified mouse button.- Parameters:
point- the point on the screen to place the mouse pointer.button- theMouseButtonused for the click operation.- Throws:
GeneralLeanFtException- if error occurs during execution
-
doubleClick
Moves the mouse to the specified point on the screen and double-clicks the left mouse button.- Parameters:
point- the point on the screen to place the mouse pointer.- Throws:
GeneralLeanFtException- if error occurs during execution
-
doubleClick
Moves the mouse to the specified point on the screen and double-clicks the left mouse button.- Parameters:
point- the point on the screen to place the mouse pointer.button- theMouseButtonused for the double-click operation.- Throws:
GeneralLeanFtException- if error occurs during execution
-
dragAndDrop
Drags the mouse from and to the specified points while the left mouse button is pressed, and then releases the mouse button.- Parameters:
fromPoint- the point from which to perform the drag and drop operation.toPoint- the point where the drag ends and the mouse button is released.- Throws:
GeneralLeanFtException- if error occurs during execution
-
dragAndDrop
Drags the mouse from and to the specified points while the specified mouse button is pressed, and then releases the mouse button.- Parameters:
fromPoint- the point from which to perform the drag and drop operation.toPoint- the point where the drag ends and the mouse button is released.button- theMouseButtonthat is pressed during the drag operation.- Throws:
GeneralLeanFtException- if error occurs during execution
-
buttonDown
Presses the left mouse button at the specified point on the screen.- Parameters:
point- the point where the mouse button is pressed.- Throws:
GeneralLeanFtException- if error occurs during execution
-
buttonDown
Presses the specified mouse button at the specified point on the screen.- Parameters:
point- the point where the mouse button is pressed.button- theMouseButtonto press.- Throws:
GeneralLeanFtException- if error occurs during execution
-
buttonUp
Releases the left mouse button at the specified point on the screen.- Parameters:
point- the point where the mouse button is released.- Throws:
GeneralLeanFtException- if error occurs during execution
-
buttonUp
Releases the specified mouse button at the specified point on the screen.- Parameters:
point- the point where the mouse button is released.button- theMouseButtonto release.- Throws:
GeneralLeanFtException- if error occurs during execution
-
move
Moves the mouse to the specified point on the screen.- Parameters:
point- the point on the screen to place the mouse pointer.- Throws:
GeneralLeanFtException- if error occurs during execution
-