Method and system for mouse pointer to automatically follow cursor
First Claim
Patent Images
1. A computer-implemented method for controlling a mouse pointer to automatically follow a cursor, comprising:
- detecting, by a computing device, whether the cursor is in a currently active window displayed on a screen of the computing device; and
in response to detecting that the cursor is in the currently active window, entering a state in which the mouse pointer automatically follows the cursor, by;
obtaining coordinates of the cursor;
calculating follow coordinates based on the coordinates of the cursor and a predetermined distance, by;
determining an angle formed between a y-axis coordinate of the cursor and a hypothetical line connecting the cursor with a position of a mouse pointer, wherein a mouse pointer device controls the position of the mouse pointer, and wherein calculating the follow coordinates is further based on the angle;
setting coordinates for the position of the mouse pointer to the follow coordinates; and
in response to detecting any movement of the cursor;
intercepting signals from the mouse pointer device;
calculating updated follow coordinates based on current coordinates of the cursor and the predetermined distance; and
updating the coordinates for the position of the mouse pointer to the updated follow coordinates,
which causes the mouse pointer to be displayed on the screen of the computing device at the updated follow coordinates, and further causes the computing device to display on the screen and maintain the predetermined distance between the cursor and the mouse pointer.
3 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present application disclose a method for controlling a mouse pointer to automatically follow a cursor. During operation, the system detects whether the cursor is in a currently active window displayed on a screen of a computing device. In response to detecting that the cursor is in the currently active window, the system obtains coordinates of the cursor. The system then calculates follow coordinates according to the coordinates of the cursor and a predetermined distance value. The system subsequently sets coordinates of the mouse pointer to the follow coordinates.
11 Citations
23 Claims
-
1. A computer-implemented method for controlling a mouse pointer to automatically follow a cursor, comprising:
-
detecting, by a computing device, whether the cursor is in a currently active window displayed on a screen of the computing device; and in response to detecting that the cursor is in the currently active window, entering a state in which the mouse pointer automatically follows the cursor, by; obtaining coordinates of the cursor; calculating follow coordinates based on the coordinates of the cursor and a predetermined distance, by; determining an angle formed between a y-axis coordinate of the cursor and a hypothetical line connecting the cursor with a position of a mouse pointer, wherein a mouse pointer device controls the position of the mouse pointer, and wherein calculating the follow coordinates is further based on the angle; setting coordinates for the position of the mouse pointer to the follow coordinates; and in response to detecting any movement of the cursor;
intercepting signals from the mouse pointer device;
calculating updated follow coordinates based on current coordinates of the cursor and the predetermined distance; and
updating the coordinates for the position of the mouse pointer to the updated follow coordinates,
which causes the mouse pointer to be displayed on the screen of the computing device at the updated follow coordinates, and further causes the computing device to display on the screen and maintain the predetermined distance between the cursor and the mouse pointer. - View Dependent Claims (2, 3, 4, 5, 6, 21, 22, 23)
-
-
7. A computing system comprising:
-
one or more processors; a memory; and a non-transitory computer-readable medium coupled to the one or more processors storing instructions stored that, when executed by the one or more processors, cause the computing system to perform a method for controlling a mouse pointer to automatically follow a cursor, comprising; detecting, by the computing system, whether the cursor is in a currently active window displayed on a screen of the computing system; and in response to detecting that the cursor is in the currently active window, entering a state in which the mouse pointer automatically follows the cursor, by; obtaining coordinates of the cursor; calculating follow coordinates based on the coordinates of the cursor and a predetermined distance, by; determining an angle formed between a y-axis coordinate of the cursor and a hypothetical line connecting the cursor with a position of a mouse pointer, wherein a mouse pointer device controls the position of the mouse pointer, and wherein calculating the follow coordinates is further based on the angle; setting coordinates for the position of the mouse pointer to the follow coordinates; and in response to detecting any movement of the cursor; intercepting signals from the mouse pointer device; calculating updated follow coordinates based on current coordinates of the cursor and the predetermined distance; and updating the coordinates for the position of the mouse pointer to the updated follow coordinates, which causes the mouse pointer to be displayed on the screen of the computing device at the updated follow coordinates, and further causes the computing device to display on the screen and maintain the predetermined distance between the cursor and the mouse pointer. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for controlling a mouse pointer to automatically follow a cursor, the method comprising:
-
detecting, by the computer, whether the cursor is in a currently active window displayed on a screen of the computer; and in response to detecting that the cursor is in the currently active window, entering a state in which the mouse pointer automatically follows the cursor, by; obtaining coordinates of the cursor; calculating follow coordinates based on the coordinates of the cursor and a predetermined distance, by; determining an angle formed between a y-axis coordinate of the cursor and a hypothetical line connecting the cursor with a position of a mouse pointer, wherein a mouse pointer device controls the position of the mouse pointer, and wherein calculating the follow coordinates is further based on the angle; setting coordinates for the position of the mouse pointer to the follow coordinates; and in response to detecting any movement of the cursor; intercepting signals from the mouse pointer device; calculating updated follow coordinates based on current coordinates of the cursor and the predetermined distance; and updating the coordinates for the position of the mouse pointer to the updated follow coordinates, which causes the mouse pointer to be displayed on the screen of the computing device at the updated follow coordinates, and further causes the computing device to display on the screen and maintain the predetermined distance between the cursor and the mouse pointer. - View Dependent Claims (14, 15, 16, 17)
-
-
18. A method of controlling a mouse pointer displayed on a screen of a device, comprising:
-
detecting the cursor in a currently active window displayed on the screen of the device; obtaining coordinates of the cursor; and resetting coordinates for a position of the mouse pointer to a predetermined position in the currently active window, by; determining an angle formed between a y-axis coordinate of the cursor and a hypothetical line connecting the cursor with a position of a mouse pointer, wherein a mouse pointer device controls the position of the mouse pointer, and wherein the predetermined position is based on the angle; and in response to detecting any movement of the cursor; intercepting signals from the mouse pointer device; calculating updated follow coordinates based on current coordinates of the cursor and the predetermined position; and updating the coordinates for the position of the mouse pointer to the updated follow coordinates, which causes the mouse pointer to be displayed on the screen of the device at the updated follow coordinates, and further causes the device to display on the screen and maintain the predetermined distance between the cursor and the mouse pointer. - View Dependent Claims (19, 20)
-
Specification