com.hp.lft.sdk

Interface MouseDevice



  • public interface MouseDevice
    An interface that provides low-level mouse operations.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void buttonDown(Point point)
      Presses the left mouse button at the specified point on the screen.
      void buttonDown(Point point, MouseButton button)
      Presses the specified mouse button at the specified point on the screen.
      void buttonUp(Point point)
      Releases the left mouse button at the specified point on the screen.
      void buttonUp(Point point, MouseButton button)
      Releases the specified mouse button at the specified point on the screen.
      void click(Point point)
      Moves the mouse to the specified point on the screen and clicks the left mouse button.
      void click(Point point, MouseButton button)
      Moves the mouse to the specified point on the screen and clicks the specified mouse button.
      void doubleClick(Point point)
      Moves the mouse to the specified point on the screen and double-clicks the left mouse button.
      void doubleClick(Point point, MouseButton button)
      Moves the mouse to the specified point on the screen and double-clicks the left mouse button.
      void dragAndDrop(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.
      void dragAndDrop(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.
      void move(Point point)
      Moves the mouse to the specified point on the screen.
    • Method Detail

      • click

        void click(Point point)
                   throws GeneralLeanFtException
        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

        void click(Point point,
                 MouseButton button)
                   throws GeneralLeanFtException
        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 - the MouseButton used for the click operation.
        Throws:
        GeneralLeanFtException - if error occurs during execution
      • doubleClick

        void doubleClick(Point point)
                         throws GeneralLeanFtException
        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

        void doubleClick(Point point,
                       MouseButton button)
                         throws GeneralLeanFtException
        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 - the MouseButton used for the double-click operation.
        Throws:
        GeneralLeanFtException - if error occurs during execution
      • dragAndDrop

        void dragAndDrop(Point fromPoint,
                       Point toPoint)
                         throws GeneralLeanFtException
        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

        void dragAndDrop(Point fromPoint,
                       Point toPoint,
                       MouseButton button)
                         throws GeneralLeanFtException
        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 - the MouseButton that is pressed during the drag operation.
        Throws:
        GeneralLeanFtException - if error occurs during execution
      • buttonDown

        void buttonDown(Point point)
                        throws GeneralLeanFtException
        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
      • buttonUp

        void buttonUp(Point point)
                      throws GeneralLeanFtException
        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
      • move

        void move(Point point)
                  throws GeneralLeanFtException
        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