Cursor display method and device, electronic equipment and storage medium

By calculating and moving the coordinates when the cursor enters the hot zone, the problem that the cursor cannot be displayed in the control area after the hot zone is expanded, and the effect of automatically displaying the cursor in the control area is achieved.

CN119960635APending Publication Date: 2025-05-09BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311474130.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

When the hot zone expands, the control area may not be in the hot zone area. At this time, the cursor cannot be displayed in the control area when it enters the hot zone.

Method used

By determining whether it is located in the target hot zone based on the first coordinate of the cursor. If so, the display offset of the cursor in the hot zone is obtained, and the second coordinate of the cursor in the control area is obtained through product calculation, and the cursor is moved to the second coordinate position.

Benefits of technology

This makes the cursor automatically display in the control area when it enters the hot zone, solving the problem that the cursor cannot display in the control area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119960635A_ABST
    Figure CN119960635A_ABST
Patent Text Reader

Abstract

The invention discloses a cursor display method and device, electronic equipment and a storage medium. According to the main technical scheme, the cursor display method comprises the steps that whether a cursor is located in a target hot area or not is determined according to a first coordinate of the cursor; when it is determined that the cursor is located in the target hot area, performing quotient calculation on a first coordinate of the cursor and a boundary coordinate of the target hot area to obtain a display offset of the cursor in the target hot area; performing product calculation on the display offset and a boundary coordinate of a target control corresponding to the target hot area to obtain a second coordinate of the cursor in the target control; and moving a cursor from the first coordinate position to the second coordinate position. Compared with the prior art, the cursor is moved from the first coordinate position to the second coordinate position, so that the cursor is automatically displayed in the control area when entering the hot area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a cursor display method and device, an electronic device, and a storage medium. Background Art

[0002] In the display interface, the area that can interact with the display interface is called a hot zone. When the hot zone receives a trigger instruction, it triggers a preset operation or event.

[0003] To help users interact better, a control element is expanded into a hot zone. The hot zone area is generally larger than the control element area. To make it easier for users to determine whether the cursor has entered the hot zone, the cursor will change when it enters the hot zone.

[0004] In the related art, the cursor display method is to redraw and display the cursor in the hot zone when the cursor enters the hot zone. However, when the hot zone expands, the control area may not be within the hot zone. At this time, the cursor cannot be displayed in the control area when entering the hot zone. Summary of the Invention

[0005] The present disclosure provides a cursor display method and device, electronic device, and storage medium. The main purpose is to solve the problem that when a hot zone is expanded, the control area may not be within the hot zone area. In this case, when the cursor enters the hot zone, it cannot be displayed within the control area.

[0006] According to a first aspect of the present disclosure, a method for displaying a cursor is provided, comprising:

[0007] Determining whether the cursor is located within a target hot zone according to a first coordinate of the cursor; wherein each hot zone is associated with a corresponding control;

[0008] When it is determined that the cursor is located in the target hot zone, calculating the quotient of the first coordinate of the cursor and the boundary coordinate of the target hot zone to obtain a display offset of the cursor in the target hot zone;

[0009] Calculating the product of the display offset and the boundary coordinates of the target control corresponding to the target hot zone to obtain a second coordinate of the cursor within the target control;

[0010] Move the cursor from the first coordinate position to the second coordinate position.

[0011] Optionally, calculating the quotient of the first coordinate of the cursor and the boundary coordinate of the target hot zone to obtain a display offset of the cursor within the target hot zone includes:

[0012] When the cursor is located in the target hot zone, obtaining the upper left corner coordinates, the lower right corner coordinates or the lower left corner coordinates, the upper right corner coordinates in the boundary coordinates of the target hot zone;

[0013] Performing a first difference calculation on the first coordinate and the upper left corner coordinate, or performing a first difference calculation on the first coordinate and the lower left corner coordinate to obtain an offset difference;

[0014] Performing a second difference calculation on the upper left corner coordinate and the lower right corner coordinate, or performing a second difference calculation on the lower left corner coordinate and the upper right corner coordinate, to obtain a boundary value corresponding to the target hot zone;

[0015] The quotient of the offset difference and the boundary value is calculated to obtain the display offset of the cursor in the target hot zone.

[0016] Optionally, the performing a product calculation on the display offset and the boundary coordinates of the target control corresponding to the target hot zone to obtain the second coordinates of the cursor within the target control includes:

[0017] Get the coordinates of the upper left corner, lower right corner or lower left corner, upper right corner of the control area;

[0018] The second coordinate of the cursor in the control area is obtained by performing a product calculation on the display offset, the upper left corner coordinate, and the lower right corner coordinate, or performing a product calculation on the display offset, the lower left corner coordinate, and the upper right corner coordinate.

[0019] Optionally, moving the cursor from the first coordinate position to the second coordinate position includes:

[0020] generating a cursor trajectory of a cursor moving from the first coordinate position to the second coordinate position;

[0021] The cursor trajectory is visually displayed.

[0022] Optionally, determining whether the cursor is located in the target hot zone according to the first coordinate of the cursor includes:

[0023] Obtaining the first coordinate of the cursor and the boundary coordinate of the target hot zone;

[0024] Determining whether the first coordinate of the cursor is within the boundary coordinates of the target hot zone;

[0025] In a case where it is determined that the first coordinate of the cursor is within the boundary coordinates of the target hot zone, determining that the cursor is within the target hot zone;

[0026] When it is determined that the first coordinate of the cursor is outside the boundary coordinates of the target hot zone, it is determined that the cursor is not within the target hot zone.

[0027] Optionally, determining that the cursor is not within the target hot zone includes:

[0028] Determining that the cursor is within other hot zones;

[0029] and / or, not within any hot zone in the display interface, wherein the other hot zones are hot zones other than the target hot zone.

[0030] Optionally, after determining that the cursor is not within any hot zone in the display interface, the method further includes:

[0031] Outputs a prompt message indicating that no hot zone is selected.

[0032] According to a second aspect of the present disclosure, there is provided a cursor display device, comprising:

[0033] A first determining unit, configured to determine whether the cursor is located within a target hot zone according to a first coordinate of the cursor; wherein each hot zone is associated with a corresponding control;

[0034] a first calculating unit, configured to, when determining that the cursor is located in the target hot zone, calculate a quotient of the first coordinate of the cursor and the boundary coordinate of the target hot zone to obtain a display offset of the cursor in the target hot zone;

[0035] A second calculation unit is configured to calculate the product of the display offset and the boundary coordinates of the target control corresponding to the target hot zone to obtain a second coordinate of the cursor within the target control;

[0036] A moving unit is used to move the cursor from the first coordinate position to the second coordinate position.

[0037] Optionally, the first determining unit includes:

[0038] A first acquisition module is used to acquire the first coordinates of the cursor and the boundary coordinates of the target hot zone;

[0039] a judging module, configured to judge whether the first coordinate of the cursor is within the boundary coordinates of the target hot zone;

[0040] a first determining module, configured to determine that the cursor is within the target hot zone when it is determined that the first coordinate of the cursor is within the boundary coordinate of the target hot zone;

[0041] The second determining module is configured to determine that the cursor is not within the target hot zone when it is determined that the first coordinate of the cursor is outside the boundary coordinate of the target hot zone.

[0042] Optionally, the first computing unit includes:

[0043] A second acquisition module is configured to acquire, when the cursor is located in the target hot zone, the upper left corner coordinates, the lower right corner coordinates, or the lower left corner coordinates, the upper right corner coordinates in the boundary coordinates of the target hot zone;

[0044] a first calculation module, configured to perform a first difference calculation on the first coordinate and the upper left corner coordinate, or perform a first difference calculation on the first coordinate and the lower left corner coordinate, to obtain an offset difference;

[0045] A second calculation module is configured to perform a second difference calculation on the upper left corner coordinate and the lower right corner coordinate, or perform a second difference calculation on the lower left corner coordinate and the upper right corner coordinate, to obtain a boundary value corresponding to the target hot zone;

[0046] The third calculation module is used to calculate the quotient of the offset difference and the boundary value to obtain the display offset of the cursor in the target hot zone.

[0047] Optionally, the second calculation unit includes:

[0048] A third acquisition module is used to obtain the coordinates of the upper left corner, the lower right corner, or the lower left corner and the upper right corner of the control area;

[0049] The fourth calculation module is used to perform product calculation on the display offset, the upper left corner coordinate, and the lower right corner coordinate, or to perform product calculation on the display offset, the lower left corner coordinate, and the upper right corner coordinate to obtain the second coordinate of the cursor in the control area.

[0050] Optionally, the mobile unit includes:

[0051] a moving module, configured to generate a cursor trajectory of a cursor moving from the first coordinate position to the second coordinate position;

[0052] The display module is used to visually display the cursor track.

[0053] Optionally, the second determining module is further configured to determine whether the cursor is within another hot zone;

[0054] and / or, not within any hot zone in the display interface, wherein the other hot zones are hot zones other than the target hot zone.

[0055] Optionally, the device further includes:

[0056] The output unit is used to output a prompt message indicating that no hot zone is selected.

[0057] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0058] at least one processor; and

[0059] a memory communicatively connected to the at least one processor; wherein,

[0060] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0061] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0062] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.

[0063] The present disclosure provides a cursor display method and device, electronic device, and storage medium, which determine whether the cursor is located in a target hot zone according to a first coordinate of the cursor; wherein each hot zone is associated with a corresponding control; when it is determined that the cursor is located in the target hot zone, the first coordinate of the cursor and the boundary coordinate of the target hot zone are calculated as a quotient to obtain a display offset of the cursor in the target hot zone; the display offset and the boundary coordinate of the target control corresponding to the target hot zone are calculated as a product to obtain a second coordinate of the cursor in the target control; and the cursor is moved from the first coordinate position to the second coordinate position. Compared with the related art, the embodiment of the present application determines whether the cursor is located in the target hot zone according to the first coordinate of the cursor, and when it is determined that the cursor is located in the target hot zone, the first coordinate of the cursor and the boundary coordinate of the target hot zone are calculated as a quotient to obtain a display offset of the cursor in the target hot zone, the display offset and the boundary coordinate of the target control corresponding to the target hot zone are calculated as a product to obtain a second coordinate of the cursor in the target control, and the cursor is moved from the first coordinate position to the second coordinate position, so that the cursor is automatically displayed in the control area when entering the hot zone.

[0064] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.

[0066] Figure 1 A flowchart of a cursor display method provided by an embodiment of the present disclosure;

[0067] Figure 2 A schematic diagram of a process of displaying a cursor in a target hot zone provided by an embodiment of the present disclosure;

[0068] Figure 3 A schematic diagram of a hot zone and a control area after hot zone adjustment provided by an embodiment of the present disclosure;

[0069] Figure 4 A schematic diagram of a correspondence between a first coordinate and a second coordinate of a cursor provided in an embodiment of the present disclosure;

[0070] Figure 5 A schematic diagram of a cursor trajectory provided by an embodiment of the present disclosure;

[0071] Figure 6 A schematic diagram of a process for determining that a cursor is located in a target hot zone provided by an embodiment of the present disclosure;

[0072] Figure 7 A schematic structural diagram of a cursor display device provided by an embodiment of the present disclosure;

[0073] Figure 8 A schematic structural diagram of another cursor display device provided by an embodiment of the present disclosure;

[0074] Figure 9 A schematic block diagram of an exemplary electronic device 400 provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0075] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0076] The following describes a cursor display method and apparatus, an electronic device, and a storage medium according to embodiments of the present disclosure with reference to the accompanying drawings.

[0077] Figure 1 A flowchart of a cursor display method provided by an embodiment of the present disclosure is provided.

[0078] like Figure 1 As shown, the method is applied to the client and includes the following steps:

[0079] Step 101: Determine whether the cursor is located in a target hot zone according to a first coordinate of the cursor; wherein each hot zone is associated with a corresponding control.

[0080] In order to better understand the display of the cursor in the target hot zone, Figure 2 As shown, Figure 2 A flow chart of a cursor displayed in a target hot zone is provided in an embodiment of the present application; by determining whether the first coordinate of the cursor is in the target hot zone, it can be determined whether the cursor is to interact with the target hot zone. When the first coordinate value of the cursor is in the target hot zone, the cursor can issue a control instruction corresponding to the target hot zone to realize the interaction between the cursor and the target hot zone; by calling an API (Application Programming Interface) function to obtain the first coordinate of the cursor and the boundary values ​​of all hot zones in the display interface, the first coordinate of the cursor is compared with the boundary values ​​of all hot zones in the display interface to determine whether the cursor is in the target hot zone, wherein the first coordinate of the cursor is the actual coordinate of the cursor in the display interface, and the target hot zone is the hot zone where the first coordinate of the cursor is located; however, it should be clear that this statement is not intended to limit the method of obtaining the first coordinate of the cursor and the boundary values ​​of all hot zones in the display interface, and may also be other methods that can obtain the first coordinate of the cursor and the boundary values ​​of all hot zones in the display interface. The client includes but is not limited to smartphones, tablets, laptops, desktop computers, game consoles, learning machines, smart watches, and car displays.

[0081] Step 102 : When it is determined that the cursor is located in the target hot zone, a quotient is calculated between the first coordinate of the cursor and the boundary coordinate of the target hot zone to obtain a display offset of the cursor in the target hot zone.

[0082] In order to better understand the target hotspot and control area, such as Figure 3 As shown, Figure 3A schematic diagram of a hot zone and a control area after hot zone adjustment is provided in an embodiment of the present application. The first coordinate of the cursor and the boundary values ​​of all hot zones in the display interface obtained in step 101 are compared with the boundary values ​​of all hot zones in the display interface. If the cursor is within the boundary of the hot zone, the target hot zone where the cursor is located is determined. The boundary value of the target hot zone is obtained by calling an API function, and the control corresponding to the target hot zone is selected. The color of the control area changes, for example, the color of the control area changes to red. According to the first coordinate of the cursor and the boundary value of the target hot zone, when it is determined that the cursor is within the target hot zone, the first coordinate of the cursor and the boundary coordinate of the target hot zone are calculated to obtain a display offset of the cursor within the target hot zone, wherein the display offset is the offset value of the first coordinate of the cursor relative to the boundary value of the target hot zone. However, it should be clear that this statement is not intended to limit the method of obtaining the boundary value of the target hot zone, but may also be other methods that can or cannot have the boundary value of the target hot zone. This statement is also not intended to limit the color of the control area to only red, but may also be other colors.

[0083] Step 103 : performing a product calculation on the display offset and the boundary coordinates of the target control corresponding to the target hot zone to obtain a second coordinate of the cursor within the target control.

[0084] Please continue reading Figure 3 After calculating the display offset of the cursor in the target hot zone through step 102, the API function is called to obtain the boundary value of the control area corresponding to the target hot zone. According to the display offset of the cursor and the boundary value of the control area, the display offset and the boundary coordinates of the target control corresponding to the target hot zone are multiplied to obtain the second coordinate of the cursor in the target control, which is the display coordinate of the cursor in the control area. However, it should be clear that this statement is not intended to limit the method of obtaining the boundary value of the control area, and other methods that can obtain the boundary value of the control area can also be used.

[0085] Step 104: Move the cursor from the first coordinate position to the second coordinate position.

[0086] In order to make the cursor appear in the control area, the cursor needs to be moved from the first coordinate position to the second cursor position. According to the first and second coordinates of the cursor, the SetCursorPos (set cursor position) function is called to move the cursor from the first coordinate position to the second coordinate position, thereby realizing the movement of the cursor from the hot zone area to the control area.

[0087] The present disclosure provides a cursor display method, which determines whether the cursor is located in a target hot zone according to a first coordinate of the cursor; wherein each hot zone is associated with a corresponding control; when it is determined that the cursor is located in the target hot zone, the first coordinate of the cursor and the boundary coordinate of the target hot zone are calculated as a quotient to obtain a display offset of the cursor in the target hot zone; the display offset and the boundary coordinate of the target control corresponding to the target hot zone are calculated as a product to obtain a second coordinate of the cursor in the target control; and the cursor is moved from the first coordinate position to the second coordinate position. Compared with the related art, the embodiment of the present application determines whether the cursor is located in the target hot zone according to the first coordinate of the cursor, and when it is determined that the cursor is located in the target hot zone, the first coordinate of the cursor and the boundary coordinate of the target hot zone are calculated as a quotient to obtain a display offset of the cursor in the target hot zone, the display offset and the boundary coordinate of the target control corresponding to the target hot zone are calculated as a product to obtain a second coordinate of the cursor in the target control, and the cursor is moved from the first coordinate position to the second coordinate position, so that the cursor is automatically displayed in the control area when entering the hot zone.

[0088] As a refinement of step 102, when the cursor is located in the target hot zone, an API function is called to obtain the upper left corner coordinates, lower right corner coordinates or lower left corner coordinates, upper right corner coordinates of the target hot zone, a first difference calculation is performed on the first coordinates and the upper left corner coordinates, or a first difference calculation is performed on the first coordinates and the lower left corner coordinates to obtain an offset difference, a second difference calculation is performed on the upper left corner coordinates and the lower right corner coordinates, or a second difference calculation is performed on the lower left corner coordinates and the upper right corner coordinates to obtain a boundary value corresponding to the target hot zone, a quotient calculation is performed on the offset difference and the boundary value to obtain a display offset of the cursor in the target hot zone.

[0089] The corresponding formula for calculating the quotient of the offset difference and the boundary value is:

[0090] x off =(xx nhl ) / (x nhr -x nhl )

[0091] y off =(y nhl -y) / (y nhl -y nhr )

[0092] Among them, (x nhr -x nhl )、(y nhl -y nhr ) is the boundary value corresponding to the target hot zone, (xxnhl )、(y nhl -y) is the offset difference of the cursor in the target hot zone;

[0093] However, it should be clear that this description does not limit the formula used to calculate the quotient of the offset difference and the boundary value.

[0094] As a refinement of step 103, in order to facilitate a better understanding of calculating the second coordinate of the cursor in the control area, as shown in FIG. Figure 4 As shown, Figure 4 A schematic diagram of the correspondence between the first coordinate and the second coordinate of a cursor provided in an embodiment of the present application; calling an API function to obtain the upper left corner coordinate, the lower right corner coordinate or the lower left corner coordinate, the upper right corner coordinate of the control area, performing a product calculation on the display offset, the upper left corner coordinate, and the lower right corner coordinate, or performing a product calculation on the display offset, the lower left corner coordinate, and the upper right corner coordinate to obtain the second coordinate of the cursor in the control area.

[0095] The corresponding formula for calculating the product of the display offset, the upper left corner coordinate, and the lower right corner coordinate or the product of the display offset, the lower left corner coordinate, and the upper right corner coordinate is:

[0096] x d =x off *(x nr -x nl )

[0097] y d =y off *(y nl -y nr )

[0098] Among them, x nl 、y nl is the upper left corner coordinate or lower left corner coordinate of the control area, x nr 、y nr is the lower right corner coordinate or upper right corner coordinate of the control area, x off 、y off To display the offset;

[0099] However, it should be clear that this description method does not limit the product calculation of the display offset, the upper left corner coordinate, and the lower right corner coordinate, or the formula used for the product calculation of the display offset, the lower left corner coordinate, and the upper right corner coordinate.

[0100] As a refinement of step 104, in order to better understand the movement of the cursor from the first coordinate position to the second coordinate position, as shown in FIG. Figure 5 As shown, Figure 5A schematic diagram of a cursor trajectory provided in an embodiment of the present application; after calculating the second coordinate of the cursor within the control area, the SetCursorPos function is called to generate a cursor trajectory of the cursor moving from the first coordinate position to the second coordinate position, and the cursor trajectory is visualized so that the user can clearly see the path of the cursor, thereby performing operations more accurately or understanding the position of the cursor.

[0101] As a refinement of step 101, when determining whether the cursor is located in the target hot zone according to the first coordinate of the cursor, as shown in FIG. Figure 6 As shown, Figure 6 A schematic diagram of a process for determining that a cursor is located in a target hot zone is provided in an embodiment of the present application, including:

[0102] Step 201: Acquire the first coordinates of the cursor and the boundary coordinates of the target hot zone.

[0103] In order to determine whether the first coordinate of the cursor is located within the boundary coordinates of the target hot zone, it is necessary to call an API function to obtain the first coordinate of the cursor and the boundary coordinates of the target hot zone.

[0104] Step 202: Determine whether the first coordinate of the cursor is within the boundary coordinates of the target hot zone.

[0105] Please continue reading Figure 3 According to the first coordinate of the cursor obtained in step 201 and the boundary coordinate of the target hot zone, the first coordinate of the cursor is compared with the boundary coordinate of the target hot zone to determine whether the first coordinate of the cursor is within the boundary coordinate of the target hot zone; for example, the first coordinate of the cursor is (x, y), and the coordinate of the upper left corner of the target hot zone is (x nhl ,y nhl ), the coordinate of the lower right corner of the target hot zone is (x nhr ,y nhr ), the formula for determining whether the first coordinate of the cursor is within the boundary coordinates of the target hot zone is:

[0106] x nhl ≤x≤x nhr And y nhl ≤y≤y nhr

[0107] Among them, x is the horizontal coordinate of the first coordinate of the cursor, y is the vertical coordinate of the first coordinate of the cursor, nhl is the horizontal coordinate of the upper left corner of the target hot zone, x nhr is the horizontal coordinate of the lower right corner of the target hot zone, y nhl is the horizontal coordinate of the upper left corner of the target hot zone, y nhris the vertical coordinate of the lower right corner coordinate of the target hot zone; when the first coordinate value of the cursor meets the conditions of the formula for judging whether the first coordinate of the cursor is within the boundary coordinate of the target hot zone, it is determined that the first coordinate of the cursor is within the boundary coordinate of the target hot zone.

[0108] Step 203: When it is determined that the first coordinate of the cursor is within the boundary coordinates of the target hot zone, determine that the cursor is within the target hot zone.

[0109] When it is determined that the first coordinate of the cursor is within the boundary coordinates of the target hot zone, the cursor is determined to be within the target hot zone, and the control corresponding to the target hot zone is selected; for example, the first coordinate of the cursor is (2, 5), the coordinates of the upper left corner of the target hot zone are (1, 6), and the coordinates of the lower right corner of the target hot zone are (7, 2), satisfying x nhl ≤x≤x nhr And y nhl ≤y≤y nhr , determine that the cursor is located in the target hot zone, but it should be clear that this statement is not intended to limit the first coordinate of the cursor, the upper left corner coordinate of the target hot zone, and the upper right corner coordinate of the target hot zone to only the coordinates mentioned, and can also be other coordinates, which is not limited here.

[0110] Step 204 : When it is determined that the first coordinate of the cursor is outside the boundary coordinates of the target hot zone, determine that the cursor is not within the target hot zone.

[0111] When it is determined that the first coordinate of the cursor is outside the boundary coordinates of the target hot zone, it is determined that the cursor is not in the target hot zone, and the control corresponding to the target hot zone is not selected. For example, the first coordinate of the cursor is (8, 7), the coordinates of the upper left corner of the target hot zone are (1, 6), and the coordinates of the lower right corner of the target hot zone are (7, 2), which does not satisfy x nhl ≤x≤x nhr And y nhl ≤y≤y nhr , it is determined that the cursor is not in the target hot zone, but it should be clear that this statement is not intended to limit the first coordinate of the cursor, the upper left corner coordinate of the target hot zone, and the upper right corner coordinate of the target hot zone to only the coordinates mentioned, and can also be other coordinates, which is not limited here.

[0112] As a refinement of step 204, when it is determined that the first coordinate of the cursor is not within the boundary coordinates of the target hot zone, it is determined that the cursor is within other hot zones; and / or is not within any hot zone in the display interface, wherein the other hot zones are hot zones other than the target hot zone. For example, the first coordinate of the cursor is (9, 7), the upper left corner coordinates of the target hot zone are (1, 6), and the lower right corner coordinates of the target hot zone are (7, 2), which does not satisfy x nhl ≤x≤x nhr And y nhl ≤y≤y nhr , the upper left corner coordinates of other hot zones are (8, 8), and the lower right corner coordinates of other hot zones are (14, 2), satisfying 8≤9≤14 and 2≤7≤8. If the first coordinate of the cursor is (9, 7), then the first coordinate of the cursor is located in other hot zones. However, it should be clear that this statement is not intended to limit the first coordinate of the cursor, the upper left corner coordinates of other hot zones, and the upper right corner coordinates of other hot zones to only the coordinates listed in the example, but can also be other coordinates, which is not limited here.

[0113] In actual applications, the hot zone may not be displayed in the display interface, and the cursor is not in any hot zone in the display interface. The user cannot determine whether the cursor is in the hot zone. After determining that the cursor is not in any hot zone in the display interface, a prompt message indicating that no hot zone is selected is output. For example, when the cursor is not in any hot zone in the display interface, a prompt box pops up near the cursor, and the prompt box displays that the cursor is not in the hot zone.

[0114] Corresponding to the above-mentioned cursor display method, the present invention also provides a cursor display device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment and will not be repeated in this invention.

[0115] Figure 7 A schematic diagram of a cursor display device according to an embodiment of the present disclosure is shown in FIG. Figure 7 As shown, including:

[0116] A first determining unit 31 is configured to determine whether the cursor is located within a target hot zone according to a first coordinate of the cursor; wherein each hot zone is associated with a corresponding control;

[0117] A first calculation unit 32 is configured to calculate a quotient of the first coordinate of the cursor and the boundary coordinate of the target hot zone when determining that the cursor is located in the target hot zone, so as to obtain a display offset of the cursor in the target hot zone;

[0118] A second calculation unit 33 is configured to calculate the product of the display offset and the boundary coordinates of the target control corresponding to the target hot zone to obtain a second coordinate of the cursor within the target control;

[0119] The moving unit 34 is configured to move the cursor from the first coordinate position to the second coordinate position.

[0120] The present disclosure provides a cursor display device, which determines whether the cursor is located in a target hot zone according to a first coordinate of the cursor; wherein each hot zone is associated with a corresponding control; when it is determined that the cursor is located in the target hot zone, the first coordinate of the cursor and the boundary coordinate of the target hot zone are calculated as a quotient to obtain a display offset of the cursor in the target hot zone; the display offset and the boundary coordinate of the target control corresponding to the target hot zone are calculated as a product to obtain a second coordinate of the cursor in the target control; and the cursor is moved from the first coordinate position to the second coordinate position. Compared with the related art, the embodiment of the present application determines whether the cursor is located in the target hot zone according to the first coordinate of the cursor, and when it is determined that the cursor is located in the target hot zone, the first coordinate of the cursor and the boundary coordinate of the target hot zone are calculated as a quotient to obtain a display offset of the cursor in the target hot zone, the display offset and the boundary coordinate of the target control corresponding to the target hot zone are calculated as a product to obtain a second coordinate of the cursor in the target control, and the cursor is moved from the first coordinate position to the second coordinate position, so that the cursor is automatically displayed in the control area when entering the hot zone.

[0121] Furthermore, in a possible implementation of this embodiment, as Figure 8 As shown, the first calculation unit 32 includes:

[0122] The second acquisition module 321 is configured to acquire, when the cursor is located in the target hot zone, the upper left corner coordinates, the lower right corner coordinates, or the lower left corner coordinates, the upper right corner coordinates in the boundary coordinates of the target hot zone;

[0123] A first calculation module 322 is configured to perform a first difference calculation on the first coordinate and the upper left corner coordinate, or perform a first difference calculation on the first coordinate and the lower left corner coordinate to obtain an offset difference;

[0124] A second calculation module 323 is configured to perform a second difference calculation on the upper left corner coordinate and the lower right corner coordinate, or perform a second difference calculation on the lower left corner coordinate and the upper right corner coordinate, to obtain a boundary value corresponding to the target hot zone;

[0125] The third calculation module 324 is configured to calculate a quotient of the offset difference and the boundary value to obtain a display offset of the cursor within the target hot zone.

[0126] Furthermore, in a possible implementation of this embodiment, as Figure 8 As shown, the second calculation unit 33 includes:

[0127] The third acquisition module 331 is used to obtain the coordinates of the upper left corner, the lower right corner, or the lower left corner and the upper right corner of the control area;

[0128] The fourth calculation module 332 is used to perform product calculation on the display offset, the upper left corner coordinate, and the lower right corner coordinate, or to perform product calculation on the display offset, the lower left corner coordinate, and the upper right corner coordinate to obtain the second coordinate of the cursor in the control area.

[0129] Furthermore, in a possible implementation of this embodiment, as Figure 8 As shown, the mobile unit 34 includes:

[0130] The moving module 341 is configured to generate a cursor trajectory for moving the cursor from the first coordinate position to the second coordinate position;

[0131] The display module 342 is configured to visually display the cursor trajectory.

[0132] Furthermore, in a possible implementation of this embodiment, as Figure 8 As shown, the first determining unit 31 includes:

[0133] A first acquisition module 311 is used to acquire the first coordinates of the cursor and the boundary coordinates of the target hot zone;

[0134] A determination module 312 is configured to determine whether the first coordinate of the cursor is within the boundary coordinates of the target hot zone;

[0135] A first determining module 313 is configured to determine that the cursor is within the target hot zone when it is determined that the first coordinate of the cursor is within the boundary coordinates of the target hot zone;

[0136] The second determining module 314 is configured to determine that the cursor is not within the target hot zone when it is determined that the first coordinate of the cursor is outside the boundary coordinates of the target hot zone.

[0137] Furthermore, in a possible implementation of this embodiment, as Figure 8 As shown, the second determining module 314 is further configured to determine that the cursor is within another hot zone;

[0138] Or it is not in any hot zone in the display interface, wherein the other hot zones are hot zones other than the target hot zone.

[0139] Optionally, in a possible implementation of this embodiment, as Figure 8 As shown, the device also includes:

[0140] The output unit 35 is used to output a prompt message indicating that no hot zone is selected.

[0141] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principles are the same, which is not limited in this embodiment.

[0142] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0143] Figure 9 A schematic block diagram of an example electronic device 400 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are provided as examples only and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0144] like Figure 9 As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 402 or a computer program loaded from a storage unit 408 into a RAM (Random Access Memory) 403. Various programs and data required for the operation of device 400 can also be stored in RAM 403. Computing unit 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An I / O (Input / Output) interface 405 is also connected to bus 404.

[0145] Multiple components in device 400 are connected to I / O interface 405, including an input unit 406, such as a keyboard, mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a magnetic disk, optical disk, etc.; and a communication unit 409, such as a network card, modem, wireless communication transceiver, etc. Communication unit 409 allows device 400 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0146] The computing unit 401 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Unit), various specialized AI (Artificial Intelligence) computing chips, various computing units that run machine learning model algorithms, a DSP (Digital Signal Processor), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as the cursor display method. For example, in some embodiments, the cursor display method can be implemented as a computer software program that is tangibly embodied in a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method described above can be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute the aforementioned cursor display method in any other appropriate manner (for example, by means of firmware).

[0147] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System on Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that can be executed and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0148] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0149] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, RAM, ROM, EPROM (Flectrically Programmable Read-0nly-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-0nly Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0150] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0151] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0152] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship is established by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system. It solves the problems of traditional physical hosts and VPS services ("Virtual Private Server", or "VPS"), such as high management difficulty and poor business scalability. The server may also be a server in a distributed system, or a server integrated with blockchain.

[0153] It's important to note that artificial intelligence (AI) is the study of how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, and planning). This encompasses both hardware and software technologies. AI hardware technologies generally include sensors, specialized AI chips, cloud computing, distributed storage, and big data processing. AI software technologies primarily encompass computer vision, speech recognition, natural language processing, machine learning / deep learning, big data processing, and knowledge graphs.

[0154] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.

[0155] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.

Claims

1. A cursor display method, characterized in that: include: Determining whether the cursor is located in a target hot zone according to a first coordinate of the cursor; wherein each hot zone is associated with a corresponding control; When it is determined that the cursor is located in the target hot zone, a quotient is calculated between the first coordinate of the cursor and the boundary coordinate of the target hot zone to obtain a display offset of the cursor in the target hot zone; The display offset and the boundary coordinates of the target control corresponding to the target hot zone are calculated to obtain a second coordinate of the cursor in the target control; The cursor is moved from the first coordinate position to the second coordinate position.

2. The method according to claim 1, characterized in that The calculating the quotient of the first coordinate of the cursor and the boundary coordinate of the target hot zone to obtain the display offset of the cursor in the target hot zone comprises: When the cursor is located in the target hot zone, obtaining the upper left corner coordinates, the lower right corner coordinates or the lower left corner coordinates, the upper right corner coordinates in the boundary coordinates of the target hot zone; Performing a first difference calculation on the first coordinate and the upper left corner coordinate or performing a first difference calculation on the first coordinate and the lower left corner coordinate to obtain an offset difference; Performing a second difference calculation on the upper left corner coordinates and the lower right corner coordinates or performing a second difference calculation on the lower left corner coordinates and the upper right corner coordinates to obtain a boundary value corresponding to the target hot zone; The quotient of the offset difference and the boundary value is calculated to obtain the display offset of the cursor in the target hot zone.

3. The method according to claim 2, characterized in that The performing product calculation on the display offset and the boundary coordinates of the target control corresponding to the target hot zone to obtain the second coordinates of the cursor in the control area includes: Get the coordinates of the upper left corner, the lower right corner or the lower left corner, the upper right corner of the control area; The display offset, the upper left corner coordinate, and the lower right corner coordinate are multiplied or the display offset, the lower left corner coordinate, and the upper right corner coordinate are multiplied to obtain the second coordinate of the cursor in the control area.

4. The method according to claim 3, characterized in that The moving the cursor from the first coordinate position to the second coordinate position comprises: generating a cursor trajectory of a cursor moving from the first coordinate position to the second coordinate position; The cursor track is displayed visually.

5. The method according to claim 1, characterized in that Determining whether the cursor is located in the target hot zone according to the first coordinate of the cursor includes: Acquire the first coordinate of the cursor and the boundary coordinate of the target hot zone; Determining whether the first coordinate of the cursor is within the boundary coordinate of the target hot zone; In the case where it is determined that the first coordinate of the cursor is within the boundary coordinate of the target hot zone, determining that the cursor is within the target hot zone; When it is determined that the first coordinate of the cursor is outside the boundary coordinate of the target hot zone, it is determined that the cursor is not within the target hot zone.

6. The method according to claim 2, characterized in that Determining that the cursor is not within the target hot zone includes: Determining that the cursor is within other hot zones; And / or, not within any hot zone in the display interface, wherein the other hot zones are hot zones other than the target hot zone.

7. The method according to claim 6, characterized in that After determining that the cursor is not within any hot zone in the display interface, the method further includes: Outputs a prompt message that no hot zone is selected.

8. A cursor display device, characterized in that: include: A first determination unit, configured to determine whether the cursor is located in a target hot zone according to a first coordinate of the cursor; wherein each hot zone is associated with a corresponding control; A first calculation unit is used to calculate the quotient of the first coordinate of the cursor and the boundary coordinate of the target hot zone to obtain the display offset of the cursor in the target hot zone when it is determined that the cursor is located in the target hot zone; A second calculation unit is used to calculate the product of the display offset and the boundary coordinates of the target control corresponding to the target hot zone to obtain a second coordinate of the cursor in the target control; A moving unit is used to move the cursor from the first coordinate position to the second coordinate position.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

11. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.