Desktop dynamic icon generation method and device, equipment and medium

By generating dynamic icons, it solves the problem of users having difficulty finding target applications quickly due to the similarity of desktop icons, improves the differentiation effect and user experience of icons, and enhances the fun of desktop operations.

CN118605979APending Publication Date: 2024-09-06GUANGZHOU SANQIJICAI NETWORK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410625934.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

As the number of applications increases, desktop icons tend to appear similar, making it difficult for users to quickly find target applications and reducing users' interest in using them. Moreover, the icons display less information, making it difficult to adapt to changing scenarios.

Method used

By generating dynamic icons, respond to the creation instructions of the dynamic icon, determine the target application, obtain the display image and display parameters, adjust the initial dynamic image, control the coverage position and switching display of the dynamic icon based on the position and size information, and ensure that the dynamic icon covers the original icon , and adjust as real-time position and size change.

Benefits of technology

It improves the differentiation effect of the target application icon, increases viewing and fun, and helps users quickly find the target application among many applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605979A
    Figure CN118605979A
Patent Text Reader

Abstract

The invention discloses a desktop dynamic icon generation method and device, equipment and a medium, and belongs to the technical field of computers. The method comprises the steps of determining a target application program in response to a creation instruction of a dynamic icon; obtaining a display picture, setting display parameters of the display picture, and generating an initial dynamic image; wherein the display parameters comprise a drawing period and switching duration; obtaining position information and size information of an original icon of the target application program in a desktop; adjusting the initial dynamic image according to the size information to obtain a dynamic icon; and determining a coverage position of the dynamic icon according to the position information so as to control the dynamic icon to switch and display each display picture at the coverage position according to the display parameters. According to the technical scheme, the dynamic icon can be made for the target application program, the ornamental value and the interestingness of the application icon are increased on the basis of not influencing the original icon function, and the target application can be quickly found from multiple applications on a user desktop.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and specifically relates to a method, device, equipment and medium for generating a desktop dynamic icon. Background Art

[0002] Desktop icons are visual elements on the computer desktop that represent different files, folders, programs or system settings. These icons allow users to interact with the computer more intuitively without having to enter complex commands or paths every time.

[0003] Currently, most icons use different colors and shapes to distinguish themselves from desktop icons of other applications. However, with the continuous increase in the number of applications, similar icons are likely to appear, making it difficult for users to quickly find the target application, thereby reducing user interest in use. In addition, icons can display less information and are difficult to adapt to changing scenarios.

[0004] Therefore, how to improve the differentiated effect of the icon display of the target application program and make it easier for the user to find it on the desktop is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method, device, equipment and medium for generating desktop dynamic icons, which can produce dynamic icons for target applications. Without affecting the original icon functions, the viewing and fun of the application icons are increased, which is conducive to the user's desktop to quickly find the target application among many applications.

[0006] In a first aspect, an embodiment of the present application provides a method for generating a desktop dynamic icon, the method comprising:

[0007] In response to the dynamic icon creation instruction, determining a target application;

[0008] Acquire a display picture, set display parameters of the display picture, and generate an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0009] Get the location and size information of the original icon of the target application on the desktop;

[0010] Adjusting the initial dynamic image according to the size information to obtain a dynamic icon;

[0011] The covering position of the dynamic icon is determined according to the position information, so as to control the dynamic icon to switch and display each display picture at the covering position according to the display parameters.

[0012] Further, determining the coverage position of the dynamic icon according to the position information includes:

[0013] Put the window state of the desktop at the bottom;

[0014] Determine the covering position of the dynamic icon in the covering layer according to the position information;

[0015] The covering layer is aligned and covered on the bottom layer, so that the dynamic icon covers the original icon of the target application.

[0016] Furthermore, the location information and size information of the original icon of the target application on the desktop are obtained, including:

[0017] Get the handle of the desktop window, and get the application list of the desktop window according to the handle;

[0018] A target application is matched in the application list, and position information and size information of the original icon of the target application are obtained.

[0019] Furthermore, after controlling the dynamic icon to switch and display each display image at the covering position according to the display parameter, the method includes:

[0020] If the detection period is reached, the real-time position and real-time size of the original icon are obtained;

[0021] When the real-time position changes, adjusting the coverage position of the dynamic icon;

[0022] as well as,

[0023] When the real-time size changes, the size of the dynamic icon is adjusted.

[0024] Further, when the real-time position changes, the covering position of the dynamic icon is adjusted; and when the real-time size changes, the size of the dynamic icon is adjusted, including:

[0025] Get the size and overlay position of the dynamic icon;

[0026] The position of the dynamic icon is compared with the real-time position of the original icon, and when the position of the dynamic icon is inconsistent with the original icon, the covering position of the dynamic icon is adjusted;

[0027] as well as,

[0028] The size of the dynamic icon is compared with the real-time size of the original icon. When the size of the dynamic icon is inconsistent with the original icon, the size of the dynamic icon is adjusted.

[0029] Furthermore, before obtaining the real-time position and real-time size of the original icon, the method further includes:

[0030] In response to a configuration operation of a detection period, determining a detection period according to a configuration result of the configuration operation;

[0031] or,

[0032] When the detection period is configured as an adaptive detection period, the detection period is determined according to the real-time position and the change rule of the real-time size of the original icon on the desktop.

[0033] Furthermore, the method further comprises:

[0034] Receiving an interactive operation from a user and identifying an operation type of the interactive operation;

[0035] If the operation type is the first type, dynamically displaying according to the first response effect corresponding to the first type;

[0036] If the operation type is the second type, dynamic display is performed according to the second response effect corresponding to the second type.

[0037] In a second aspect, an embodiment of the present application provides a device for generating a desktop dynamic icon, the device comprising:

[0038] A target application determining module, for determining a target application in response to a dynamic icon creation instruction;

[0039] An initial dynamic image generation module, used to obtain a display image, set display parameters of the display image, and generate an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0040] An information acquisition module, used to acquire the location information and size information of the original icon of the target application on the desktop;

[0041] A dynamic icon determination module, used for adjusting the initial dynamic image according to the size information to obtain a dynamic icon;

[0042] The covering position determining module is used to determine the covering position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display picture at the covering position according to the display parameters.

[0043] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0044] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0045] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0046] In an embodiment of the present application, in response to a dynamic icon creation instruction, a target application is determined; a display image is obtained, and display parameters of the display image are set to generate an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration; the position information and size information of the original icon of the target application on the desktop are obtained; the initial dynamic image is adjusted according to the size information to obtain a dynamic icon; the overlay position of the dynamic icon is determined according to the position information to control the dynamic icon to switch and display each display image at the overlay position according to the display parameters. Through the above-mentioned method for generating desktop dynamic icons, a dynamic icon can be made for the target application, which increases the ornamental value and fun of the application icon without affecting the original icon function, and is conducive to the user's desktop to quickly find the target application among many applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a flowchart of a method for generating a desktop dynamic icon provided in Example 1 of the present application;

[0048] Figure 2 This is a schematic diagram of a desktop dynamic icon operation process based on a Windows system provided in Example 1 of the present application;

[0049] Figure 3 This is a flowchart of a method for generating a desktop dynamic icon provided in Embodiment 2 of the present application;

[0050] Figure 4 This is a flowchart of a method for generating a desktop dynamic icon provided in Example 3 of the present application;

[0051] Figure 5 This is a flowchart of a method for generating a desktop dynamic icon provided in Embodiment 4 of the present application;

[0052] Figure 6 This is a flowchart of a method for generating a desktop dynamic icon provided in Embodiment 5 of the present application;

[0053] Figure 7This is a flowchart of a method for generating a desktop dynamic icon provided in Example 6 of the present application;

[0054] Figure 8 This is a flowchart of a method for generating a desktop dynamic icon provided in Embodiment 7 of the present application;

[0055] Fig. 9 It is a structural schematic diagram of a device for generating a desktop dynamic icon provided in Embodiment 8 of the present application;

[0056] Fig.10 It is a structural diagram of an electronic device provided in Example 9 of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0058] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0059] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0060] In conjunction with the accompanying drawings, a method, device, equipment and medium for generating a desktop dynamic icon provided by an embodiment of the present application are described in detail through specific embodiments and application scenarios.

[0061] Embodiment 1

[0062] Figure 1 1 is a flowchart of a method for generating a desktop dynamic icon provided in the first embodiment of the present application. Figure 1 As shown, the specific steps include:

[0063] S101, in response to a dynamic icon creation instruction, determining a target application;

[0064] The application scenario of this solution may be a scenario of generating a corresponding dynamic icon for a target application.

[0065] Based on the above scenario, it can be understood that the executor of this scenario can be an intelligent terminal that generates and displays dynamic icons, such as a desktop computer, a laptop computer, a tablet computer, and an interactive multimedia device, etc., and no excessive limitations are made here.

[0066] A dynamic icon is an icon that can move, change, or display some dynamic effects in the user interface. Compared with traditional static icons, dynamic icons can convey information more vividly and intuitively and attract users' attention.

[0067] The target application may be an application whose desktop icon needs to be replaced with a dynamic icon.

[0068] The method for determining the target application can be to trigger the creation operation of the dynamic icon by entering the target application name or other operations. The smart terminal generates a creation instruction for the dynamic icon based on the user's operation content, runs the creation instruction, and matches the application with the same name as the target application on the desktop as the target application.

[0069] S102, obtaining a display picture, setting display parameters of the display picture, and generating an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0070] The display pictures may be a group of pictures that are cyclically displayed in the dynamic icon with a certain regularity and frequency. By cyclically switching the display pictures, the animation effect of the dynamic icon may be achieved.

[0071] The drawing cycle can be the interval between the complete playback of the displayed image.

[0072] The switching duration may be the display duration of each display picture during the playing of the display pictures.

[0073] The method for generating the initial dynamic image is that the staff can set the display parameters according to the number of display pictures and the reading speed of most users. The smart terminal switches the display pictures in sequence according to the display parameters set by the staff and the switching duration, and after all the display pictures are played, waits for the drawing cycle and starts the playback of the next round of display pictures.

[0074] S103, obtaining the position information and size information of the original icon of the target application on the desktop;

[0075] The original icon of the target application may be the original icon of the target application before the dynamic image is generated.

[0076] The location information may be the location coordinates of the original icon on the desktop.

[0077] The size information may be the length and width values ​​of the original icon. In this embodiment, for an original icon of an irregular shape, the longest value and the widest value of the icon may be used as the size information.

[0078] The method for obtaining the position information and size information of the original icon of the target application on the desktop can be that the smart terminal sends a basic information acquisition instruction of the target application to the user's terminal device, and the user's terminal device responds to the instruction content, extracts the corresponding position information and size information according to the target application name, and sends it to the smart terminal.

[0079] S104, adjusting the initial dynamic image according to the size information to obtain a dynamic icon;

[0080] The dynamic icon can be obtained by acquiring the size information of the original icon, and scaling the size of the initial dynamic image proportionally according to the length and width values ​​in the size information, so that the size of the initial dynamic image can just cover the original icon. At this time, the adjusted initial dynamic image is the dynamic icon, and the scaled display image is played in the dynamic icon according to the display parameters.

[0081] S105: Determine a covering position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display image at the covering position according to the display parameters.

[0082] The overlay position of the dynamic icon may be the display position of the dynamic icon on the user's desktop. The dynamic icon needs to be overlaid on the original icon. Therefore, the overlay position of the dynamic icon should be consistent with the position information of the original icon.

[0083] The covering position of the dynamic icon may be determined by obtaining the position information of the original icon, using the position coordinates of the original icon as the covering position coordinates of the dynamic icon, so that the covering position of the dynamic icon coincides with the position of the original icon.

[0084] The way to control the display of dynamic icons is to cover the dynamic icons on the original icons and cyclically switch the display pictures according to the frequency of the display parameters. At this time, the dynamic icons are in an opaque state, and the user can only observe the dynamic icons on the desktop, but cannot see the covered original icons.

[0085] For example, Figure 2 This is a schematic diagram of the operation process of desktop dynamic icons based on the Windows system. Figure 2 For example, after determining the target application, a dynamic icon main program is created for the target application, and the desktop window is set as the bottom window to avoid affecting the normal use of the application. A set of pre-stored display pictures are obtained, and they are quickly rotated according to the display parameters (one picture is switched every 30 milliseconds) to obtain the initial dynamic image. The handle of the windows system desktop window is obtained, and the application list of the current desktop is obtained through the handle. The position information and size information of the desktop icon associated with the option with the same name as the target application are obtained in the application list. The position and size of the dynamic icon are set according to the position information and size information, and the dynamic icon is placed at the corresponding position of the overlay layer so that it completely covers the original desktop icon, and the initial dynamic image is played in the dynamic icon. During the display of the dynamic image, the position and size of the original icon on the desktop are obtained again every 200 milliseconds, and the covering position and size of the dynamic icon are updated according to the real-time acquired position data and size data to ensure that the dynamic icon can completely cover the original icon; at the same time, during the display of the dynamic image, if it is recognized that the user clicks the dynamic icon, the corresponding animation effect is displayed in the dynamic icon. For example, a ripple pattern is generated, and a target application is started according to the corresponding effect of the original icon on the user's interactive operation.

[0086] In an embodiment of the present application, in response to a dynamic icon creation instruction, a target application is determined; a display image is obtained, and display parameters of the display image are set to generate an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration; the position information and size information of the original icon of the target application on the desktop are obtained; the initial dynamic image is adjusted according to the size information to obtain a dynamic icon; the overlay position of the dynamic icon is determined according to the position information to control the dynamic icon to switch and display each display image at the overlay position according to the display parameters. Through the above-mentioned method for generating desktop dynamic icons, a dynamic icon can be made for the target application, which increases the ornamental value and fun of the application icon without affecting the original icon function, and is conducive to the user's desktop to quickly find the target application among many applications.

[0087] Embodiment 2

[0088] Figure 3 This is a flow chart of the method for generating a desktop dynamic icon provided in the second embodiment of the present application. This solution makes a better improvement on the above embodiment, and the specific improvement is: determining the covering position of the dynamic icon according to the position information, including: placing the window state of the desktop at the bottom layer; determining the covering position of the dynamic icon in the covering layer according to the position information; and aligning the covering layer to cover the bottom layer so that the dynamic icon covers the original icon of the target application.

[0089] like Figure 3 As shown, specifically including the following:

[0090] S301, in response to a dynamic icon creation instruction, determining a target application;

[0091] S302, obtaining a display picture, setting display parameters of the display picture, and generating an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0092] S303, obtaining the location information and size information of the original icon of the target application on the desktop;

[0093] S304, adjusting the initial dynamic image according to the size information to obtain a dynamic icon;

[0094] S305, placing the window status of the desktop at the bottom layer;

[0095] Window state can be various properties and states of a window opened on a computer desktop. Window state may include the size, position, visibility, etc. of the window.

[0096] The way to put the window status of the desktop at the bottom layer is to adjust the user's terminal system before displaying the dynamic icon and set the user's window as the bottom layer, that is, to put the desktop display layer below other windows. When the display windows are stacked, other windows will cover or block the desktop.

[0097] S306, determining a covering position of the dynamic icon in the covering layer according to the position information;

[0098] The overlay layer can be the layer where the dynamic icons are located, above the bottom window of the desktop.

[0099] The method for determining the overlay position of the dynamic icon in the overlay layer may be to establish the coordinate system of the overlay layer according to the coordinate system of the underlying window, and use the position coordinate value of the original icon in the underlying window as the overlay position coordinate value of the dynamic icon in the overlay layer. In this case, the coordinate values ​​of the dynamic icon and the original icon are consistent, but the two icons are in different layers.

[0100] S307, aligning and covering the covering layer on the bottom layer, so that the dynamic icon covers the original icon of the target application;

[0101] The way to position the overlay layer on the bottom layer is to create an overlay layer on the bottom window where the desktop is located, and ensure that the dynamic icon in the overlay layer coincides with the position of the original icon in the bottom layer. At this time, the dynamic icon can completely cover the original icon, and, in order not to affect the normal use of the application, the overlay layer is only on the bottom layer and will not cover other windows. In this solution, except for the dynamic icon, the rest of the overlay layer is transparent, which does not affect the user's viewing of other elements on the desktop, and, when the user opens other windows, if the window does not block the dynamic icon, the user can still view the animation effect displayed by the dynamic icon.

[0102] S308: Control the dynamic icon to switch and display each display image at the covering position according to the display parameters.

[0103] The advantage of this arrangement of the solution is that it can ensure that the dynamic icon can cover the original icon, which is helpful to avoid the original icon being not neatly covered, affecting the display effect of the dynamic icon and the aesthetics of the desktop.

[0104] Embodiment 3

[0105] Figure 4This is a flowchart of a method for generating a desktop dynamic icon provided in Example 3 of the present application. This solution makes a better improvement on the above-mentioned embodiment, and the specific improvement is: obtaining the position information and size information of the original icon of the target application on the desktop, including: obtaining the handle of the desktop window, and obtaining the desktop window application list according to the handle; matching the target application in the application list, and obtaining the position information and size information of the original icon of the target application.

[0106] like Figure 4 As shown, specifically including the following:

[0107] S401, in response to a dynamic icon creation instruction, determining a target application;

[0108] S402, obtaining a display picture, setting display parameters of the display picture, and generating an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0109] S403, obtaining a handle of the desktop window, and obtaining a list of desktop window applications according to the handle;

[0110] The handle of the desktop window can be used to uniquely identify and reference the desktop window. In the Windows operating system (Microsoft Windows operating system), a handle is a special pointer used to point to the memory address of an object in the system kernel. Through the handle of the desktop window, various operations and management can be performed on the desktop window.

[0111] The application list may be a collection of all software or applications installed on the system. These applications may be default programs pre-installed in the operating system or programs downloaded and installed by the user from the Internet or other sources. In this solution, the desktop window application list may refer to a collection of all software or applications that have application icons on the desktop.

[0112] The way to get the handle of the desktop window is to use Windows API functions, such as GetDesktopWindow, which returns a handle representing the desktop window. Through this handle, you can use other Windows API functions to perform various operations, such as moving windows, changing window sizes, and sending messages.

[0113] The way to obtain the desktop window application list based on the handle is to use the EnumWindows() function to enumerate all top-level windows on the desktop. This function will traverse all top-level windows and call a callback function for each window. In the callback function, you can use functions such as GetWindowLongPtr() or GetWindowThreadProcessId() to obtain additional information about the window, such as the process ID to which the window belongs, and use the additional information to determine whether the window belongs to an application. If it is determined that a window belongs to an application, collect the information of the application, such as the window title, process ID, etc., and add it to the application list. After the callback function is called, you can get the collected desktop window application list.

[0114] S404, matching a target application in the application list, and obtaining position information and size information of an original icon of the target application;

[0115] The target application may be matched in the application list by obtaining the name of the target application, traversing the application list, and searching in the application list whether there is a desktop application matching the name.

[0116] The method of obtaining the location information and size information of the original icon of the target application is to obtain the additional information associated with the desktop application with the same name after matching it, and extract the location information and size information of the original icon from the additional information.

[0117] S405, adjusting the initial dynamic image according to the size information to obtain a dynamic icon;

[0118] S406: Determine the covering position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display image at the covering position according to the display parameters.

[0119] The advantage of this arrangement of the present embodiment is that the application list can be obtained through the handle of the desktop window, and then the relevant information of the original icon can be determined, which is conducive to standardizing the process of obtaining the position information and size information, making the original icon information more accurate.

[0120] Embodiment 4

[0121] Figure 5This is a flow chart of the method for generating desktop dynamic icons provided by Example 4 of the present application. This solution makes a better improvement on the above-mentioned embodiment, and the specific improvement is: after controlling the dynamic icon to switch and display each display image according to the display parameters at the covering position, the method includes: if the detection cycle is detected, the real-time position and real-time size of the original icon are obtained; when the real-time position changes, the covering position of the dynamic icon is adjusted; and when the real-time size changes, the size of the dynamic icon is adjusted.

[0122] like Figure 5 As shown, specifically including the following:

[0123] S501, in response to a dynamic icon creation instruction, determining a target application;

[0124] S502, obtaining a display picture, setting display parameters of the display picture, and generating an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0125] S503, obtaining the location information and size information of the original icon of the target application on the desktop;

[0126] S504, adjusting the initial dynamic image according to the size information to obtain a dynamic icon;

[0127] S505: determining a covering position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display picture according to the display parameter at the covering position;

[0128] S506: If the detection period is reached, obtain the real-time position and real-time size of the original icon;

[0129] The detection cycle may be a time interval for starting to detect whether the position and size of the original icon have changed during the display of the dynamic icon. For example, the position and size changes of the original icon may be monitored every 200 milliseconds.

[0130] The real-time position and size of the original icon can be obtained by re-obtaining the application list through the handle of the desktop window, and obtaining additional information of the target application through a callback function, from which the current real-time position and size of the original icon can be extracted.

[0131] S507: When the real-time position changes, adjust the coverage position of the dynamic icon; and when the real-time size changes, adjust the size of the dynamic icon.

[0132] The method for adjusting the coverage position and size of the dynamic icon is to compare the real-time position and real-time size obtained in this detection with the position and size in the last detection. If there is inconsistent information, the corresponding information of the dynamic icon will be changed. That is, when the position information is inconsistent, the coverage position of the dynamic icon will be adjusted to be consistent with the real-time position; if the size information is inconsistent, the size of the dynamic icon will be adjusted to be consistent with the real-time size.

[0133] The advantage of this arrangement is that the original icons on the desktop can be monitored and the position and size of the dynamic icons can be updated in a timely manner, which is conducive to maintaining the dynamic icon in a state where it can cover the original icon, so as to avoid the inconvenience of two desktop icons of the same application program.

[0134] Embodiment 5

[0135] Figure 6 This is a flowchart of a method for generating desktop dynamic icons provided in Embodiment 5 of the present application. This solution makes a better improvement on the above embodiment, specifically: when the real-time position changes, the covering position of the dynamic icon is adjusted; and when the real-time size changes, the size of the dynamic icon is adjusted, including: obtaining the size and covering position of the dynamic icon; comparing the position of the dynamic icon with the real-time position of the original icon, and when the position of the dynamic icon is inconsistent with the original icon, adjusting the covering position of the dynamic icon; and comparing the size of the dynamic icon with the real-time size of the original icon, and when the size of the dynamic icon is inconsistent with the original icon, adjusting the size of the dynamic icon.

[0136] like Figure 6 As shown, specifically including the following:

[0137] S601, in response to a dynamic icon creation instruction, determining a target application;

[0138] S602, obtaining a display picture, setting display parameters of the display picture, and generating an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0139] S603, obtaining the position information and size information of the original icon of the target application on the desktop;

[0140] S604, adjusting the initial dynamic image according to the size information to obtain a dynamic icon;

[0141] S605: Determine the covering position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display picture according to the display parameter at the covering position;

[0142] S606: If the detection period is reached, obtain the real-time position and real-time size of the original icon;

[0143] S607, obtaining the size and coverage position of the dynamic icon;

[0144] The size and coverage position of the dynamic icon can be obtained by the intelligent terminal identifying the program code of the dynamic icon and extracting the size parameters and coverage position parameters of the dynamic icon therefrom.

[0145] S608. Compare the position of the dynamic icon with the real-time position of the original icon. When the position of the dynamic icon is inconsistent with the original icon, adjust the covering position of the dynamic icon; and compare the size of the dynamic icon with the real-time size of the original icon. When the size of the dynamic icon is inconsistent with the original icon, adjust the size of the dynamic icon.

[0146] The method for adjusting the covering position of the dynamic icon is to match the obtained covering position coordinates of the dynamic icon with the real-time position coordinates of the original icon. If the coordinate values ​​are inconsistent, the covering position coordinates of the dynamic icon are changed to values ​​consistent with the real-time position coordinates.

[0147] The size of the dynamic icon can be adjusted by matching the length and width values ​​of the acquired dynamic icon with the length and width values ​​of the original icon. If the length and width values ​​are inconsistent, the length and width values ​​of the coverage position of the dynamic icon are changed to values ​​consistent with the real-time size.

[0148] The advantage of this setting is that it can monitor in real time whether the coverage position and size of the dynamic icon are consistent with the original icon, thereby avoiding problems such as confusion of desktop icons caused by untimely updates of dynamic icons, which is conducive to improving the user experience.

[0149] Embodiment 6

[0150] Figure 7 It is a flowchart of the method for generating desktop dynamic icons provided in Example 6 of the present application. This solution makes a better improvement on the above-mentioned embodiment, and the specific improvement is: it is characterized in that before obtaining the real-time position and real-time size of the original icon during the detection period, the method further includes: responding to the configuration operation of the detection period, determining the detection period according to the configuration result of the configuration operation; or, when the detection period is configured as an adaptive detection period, determining the detection period according to the real-time position and real-time size change rule of the original icon on the desktop.

[0151] like Figure 7 As shown, specifically including the following:

[0152] S701, in response to a dynamic icon creation instruction, determining a target application;

[0153] S702, obtaining a display picture, setting display parameters of the display picture, and generating an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0154] S703, obtaining the location information and size information of the original icon of the target application on the desktop;

[0155] S704, adjusting the initial dynamic image according to the size information to obtain a dynamic icon;

[0156] S705, determining the covering position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display picture according to the display parameter at the covering position; executing S706 or S707;

[0157] S706, in response to the configuration operation of the detection period, determining the detection period according to the configuration result of the configuration operation;

[0158] The configuration operation of the detection cycle can be that the staff changes the detection cycle by modifying the parameter value at the specified position of the dynamic icon program code.

[0159] The detection period may be determined by extracting the detection period value set in the configuration result after accepting the configuration operation of the detection period, and writing it into a designated position of the dynamic icon program code.

[0160] S707: When the detection period is configured as an adaptive detection period, determine the detection period according to a change rule of the real-time position and real-time size of the original icon on the desktop;

[0161] The adaptive detection cycle can determine the detection cycle according to the frequency of user adjustment of the icon of the target application, without the need for staff to input a detection cycle value.

[0162] The method for determining the detection period is that when the staff sets the detection period to an adaptive detection period, the smart terminal obtains the historical information of the original icon of the target application from the user's terminal system, extracts the time nodes when the position and size of the original icon change, and calculates the frequency of the user adjusting the icon according to the change pattern of the time nodes, and uses the frequency as the detection period.

[0163] S708: If the detection period is reached, obtain the real-time position and size of the original icon;

[0164] S709: When the real-time position changes, adjust the coverage position of the dynamic icon; and when the real-time size changes, adjust the size of the dynamic icon.

[0165] The advantage of this arrangement of the solution is that the detection cycle can be determined in a variety of ways, so that the update of the dynamic icon can be consistent with the update of the original icon, thereby achieving continuous coverage of the original icon.

[0166] Embodiment 7

[0167] Figure 8 This is a flowchart of a method for generating desktop dynamic icons provided in Embodiment 7 of the present application. This solution makes a better improvement on the above embodiment, specifically: receiving a user's interactive operation and identifying the operation type of the interactive operation; if the operation type is the first type, dynamically displaying according to the first response effect corresponding to the first type; if the operation type is the second type, dynamically displaying according to the second response effect corresponding to the second type.

[0168] like Figure 8 As shown, specifically including the following:

[0169] S801, in response to a dynamic icon creation instruction, determining a target application;

[0170] S802, obtaining a display picture, setting display parameters of the display picture, and generating an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0171] S803, obtaining the location information and size information of the original icon of the target application on the desktop;

[0172] S804, adjusting the initial dynamic image according to the size information to obtain a dynamic icon;

[0173] S805: Determine the covering position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display picture according to the display parameter at the covering position;

[0174] S806, receiving an interactive operation of the user, and identifying an operation type of the interactive operation;

[0175] Interactive operations can be a series of operations that users perform on dynamic icons using the mouse, such as double-clicking, dragging, etc.

[0176] The operation type of the interactive operation may be identified by analyzing the user's operation on the terminal external device (mouse, touch screen, etc.) and the pointer action received by the desktop to determine whether the operation type of the interactive operation is the first type or the second type.

[0177] S807: If the operation type is the first type, dynamically display the operation according to the first response effect corresponding to the first type.

[0178] The first type may be an interactive operation in which the user controls the pointer to move across a dynamic icon.

[0179] The first response effect may correspond to the first type. When the pointer passes over the dynamic icon, the dynamic icon displays a specific animation effect in response to the pointer operation.

[0180] The method of dynamic display according to the first response effect may be that the user controls the pointer to pass over the dynamic icon. After recognizing that the interactive operation is of the first type, the smart terminal calls up the first response effect for display, for example, with the pointer position as the center, a water wave effect is generated to spread to both sides of the dynamic icon.

[0181] S808: If the operation type is the second type, dynamically display according to a second response effect corresponding to the second type.

[0182] The second type may be an interactive operation in which the user controls the pointer to click on a dynamic icon.

[0183] The second response effect may correspond to the second type. When the pointer clicks the dynamic icon, the dynamic icon displays a specific animation effect in response to the pointer operation.

[0184] The method of dynamic display according to the second response effect may be that the user controls the pointer to click on the dynamic icon. After recognizing that the interactive operation is of the second type, the smart terminal calls up the second response effect for display. For example, an explosion effect is produced with the pointer position as the center, which lasts for a certain period of time and then returns to its original state.

[0185] It should be noted that the dynamic icon in this solution only covers the original icon visually and does not affect the original functional effect of the original icon. For example, when you double-click the dynamic icon, the original icon covered by the dynamic icon will also respond to the interactive operation and open the window of the target application.

[0186] The advantage of this arrangement of the scheme is that it can add corresponding response effects to the interactive operations between users and dynamic icons, increase the fun of dynamic icons, and improve the attractiveness of dynamic icons to users.

[0187] Embodiment 8

[0188] Fig. 9 It is a structural diagram of a device for generating desktop dynamic icons provided in Example 8 of the present application.

[0189] like Fig. 9 As shown, specifically including the following:

[0190] A target application determining module 901 is used to determine a target application in response to a dynamic icon creation instruction;

[0191] The initial dynamic image generation module 902 is used to obtain a display image, set display parameters of the display image, and generate an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration;

[0192] The information acquisition module 903 is used to acquire the position information and size information of the original icon of the target application on the desktop;

[0193] A dynamic icon determination module 904, configured to adjust the initial dynamic image according to the size information to obtain a dynamic icon;

[0194] The covering position determining module 905 is used to determine the covering position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display image at the covering position according to the display parameters.

[0195] In an embodiment of the present application, a target application determination module is used to determine the target application in response to a dynamic icon creation instruction; an initial dynamic image generation module is used to obtain a display image, set the display parameters of the display image, and generate an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration; an information acquisition module is used to obtain the position information and size information of the original icon of the target application on the desktop; a dynamic icon determination module is used to adjust the initial dynamic image according to the size information to obtain a dynamic icon; an overlay position determination module is used to determine the overlay position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display image at the overlay position according to the display parameters. Through the above-mentioned desktop dynamic icon generation device, a dynamic icon can be made for the target application, which increases the ornamental value and fun of the application icon without affecting the original icon function, and is conducive to the user's desktop to quickly find the target application among many applications.

[0196] In the embodiment of the present application, a device for generating a desktop dynamic icon can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0197] In the embodiment of the present application, a device for generating a desktop dynamic icon may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0198] The device for generating a desktop dynamic icon provided in the embodiment of the present application can implement each process implemented in the above-mentioned method embodiments, and will not be described again here to avoid repetition.

[0199] Embodiment 9

[0200] like Fig.10 As shown, an embodiment of the present application also provides an electronic device 1000, including a processor 1001, a memory 1002, and a program or instruction stored in the memory 1002 and executable on the processor 1001. When the program or instruction is executed by the processor 1001, each process of an embodiment of a device for generating a desktop dynamic icon described above is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0201] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0202] Embodiment 10

[0203] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned method embodiment for generating a desktop dynamic icon is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0204] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0205] Embodiment 11

[0206] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment for generating desktop dynamic icons, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0207] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0208] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0209] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0210] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0211] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A method for generating a desktop dynamic icon, It is characterized in that The method comprises: In response to the dynamic icon creation instruction, determining a target application; Acquire a display picture, set display parameters of the display picture, and generate an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration; Get the location and size information of the original icon of the target application on the desktop; Adjusting the initial dynamic image according to the size information to obtain a dynamic icon; The covering position of the dynamic icon is determined according to the position information, so as to control the dynamic icon to switch and display each display picture at the covering position according to the display parameters.

2. The method for generating a desktop dynamic icon according to claim 1, It is characterized in that Determining the covering position of the dynamic icon according to the position information includes: Put the window state of the desktop at the bottom; Determine the covering position of the dynamic icon in the covering layer according to the position information; The covering layer is aligned and covered on the bottom layer, so that the dynamic icon covers the original icon of the target application.

3. The method for generating a desktop dynamic icon according to claim 1, It is characterized in that Get the location and size information of the original icon of the target application on the desktop, including: Get the handle of the desktop window, and get the application list of the desktop window according to the handle; A target application is matched in the application list, and position information and size information of the original icon of the target application are obtained.

4. The method for generating a desktop dynamic icon according to claim 1, It is characterized in that After controlling the dynamic icon to switch and display each display image at the covering position according to the display parameter, the method includes: If the detection period is reached, the real-time position and real-time size of the original icon are obtained; When the real-time position changes, adjusting the coverage position of the dynamic icon; as well as, When the real-time size changes, the size of the dynamic icon is adjusted.

5. The method for generating a desktop dynamic icon according to claim 4, It is characterized in that When the real-time position changes, adjusting the coverage position of the dynamic icon; And, in the case where the real-time size changes, adjusting the size of the dynamic icon includes: Get the size and overlay position of the dynamic icon; The position of the dynamic icon is compared with the real-time position of the original icon, and when the position of the dynamic icon is inconsistent with the original icon, the covering position of the dynamic icon is adjusted; as well as, The size of the dynamic icon is compared with the real-time size of the original icon. When the size of the dynamic icon is inconsistent with the original icon, the size of the dynamic icon is adjusted.

6. The method for generating a desktop dynamic icon according to claim 4, It is characterized in that If the detection cycle is reached, before obtaining the real-time position and real-time size of the original icon, the method further includes: In response to a configuration operation of a detection period, determining a detection period according to a configuration result of the configuration operation; or, When the detection period is configured as an adaptive detection period, the detection period is determined according to the real-time position and the real-time size change rule of the original icon on the desktop.

7. The method for generating a desktop dynamic icon according to claim 1, It is characterized in that The method further comprises: Receiving an interactive operation from a user and identifying an operation type of the interactive operation; If the operation type is the first type, dynamically displaying according to the first response effect corresponding to the first type; If the operation type is the second type, dynamic display is performed according to the second response effect corresponding to the second type.

8. A device for generating desktop dynamic icons, It is characterized in that The device comprises: A target application determining module, for determining a target application in response to a dynamic icon creation instruction; An initial dynamic image generation module, used to obtain a display image, set display parameters of the display image, and generate an initial dynamic image; wherein the display parameters include a drawing cycle and a switching duration; An information acquisition module, used to acquire the location information and size information of the original icon of the target application on the desktop; A dynamic icon determination module, used for adjusting the initial dynamic image according to the size information to obtain a dynamic icon; The covering position determining module is used to determine the covering position of the dynamic icon according to the position information, so as to control the dynamic icon to switch and display each display picture at the covering position according to the display parameters.

9. An electronic device, It is characterized in that It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of a method for generating a desktop dynamic icon as described in any one of claims 1 to 7 are implemented.

10. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of a method for generating a desktop dynamic icon as described in any one of claims 1-7 are implemented.

Citation Information

Cited By

  • Display method and device of interactive control, electronic equipment and readable storage medium

    CN119739452A