Processing method and device of application, electronic equipment and storage medium

CN122593885APending Publication Date: 2026-08-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510181599.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-18
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

[0004]本申请实施例提供了一种应用的处理方法、装置、电子设备、计算机可读存储介质及计算机程序产品,用于解决现有技术中,将目标应用的应用界面作为壁纸显示时操作繁琐、效率低的技术问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122593885A_ABST
    Figure CN122593885A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a processing method and device of an application, electronic equipment, computer readable storage medium and product, and relate to the technical field of computer. The method comprises: in a preset trigger mode, searching for a workspace window other than a first workspace window, the first workspace window being a workspace window corresponding to a desktop icon window; if any workspace window other than the first workspace window is found, taking the any workspace window as a target workspace window; if no workspace window other than the first workspace window is found, creating a new workspace window as the target workspace window; determining a window of a target application, setting the target workspace window as a management window of the window of the target application; and refreshing a display interface of a terminal. The embodiments of the present application achieve the wallpaper display of the application interface of the target application conveniently and quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to an application processing method, apparatus, electronic device, computer storage medium, and product. Background Technology

[0002] With the continuous development of computer technology, electronic devices with displays such as mobile phones, computers, and tablets have become indispensable tools in daily life. Users can set desktop wallpapers on their devices according to their personal preferences, such as choosing static images as backgrounds. Operating systems usually provide wallpaper management services, but existing wallpaper management services do not support dynamic rendering functions, such as game screens or live streaming content, resulting in limited interactivity and playability.

[0003] In existing technologies, there are desktop wallpaper engines, such as Wallpaper Engine, which support setting static images, videos, or application interfaces as desktop wallpapers. However, when users set an application interface as their desktop wallpaper using these engines, they need to manually start the wallpaper engine, select the application within the engine, and then set the application interface as the wallpaper. This results in low efficiency when displaying the application interface as wallpaper. Summary of the Invention

[0004] This application provides an application processing method, apparatus, electronic device, computer-readable storage medium, and computer program product to solve the technical problem of cumbersome operation and low efficiency when displaying the application interface of a target application as wallpaper in the prior art.

[0005] According to a first aspect of the embodiments of this application, an application processing method is provided, executed by a terminal, the method comprising: When a launch command for a target application is received and the target application is in wallpaper mode, or when a modification command to change the display mode of the target application from non-wallpaper mode to wallpaper mode is received while the target application has been launched, the system searches for workspace windows other than the first workspace window in the workspace windows created by the operating system of the terminal. The first workspace window is the workspace window corresponding to the desktop icon window of the terminal. If any workspace window other than the first workspace window is found, then that workspace window is taken as the target workspace window. If no workspace window other than the first workspace window is found, a new workspace window is created and used as the target workspace window. Determine the window of the target application and set the target workspace window as the management window of the target application window; The terminal's display interface is refreshed so that the target application's interface is displayed as wallpaper.

[0006] As an optional embodiment of this application, setting the target workspace window as the management window of the target application includes: Set the target workspace window as the parent window of the target application window; or Create a host window, set the target workspace window as the parent window of the host window, and set the host window as the parent window of the target application window; The method further includes: Upon receiving a modification instruction to change the display mode of the target application from wallpaper mode to non-wallpaper mode, the host window is destroyed.

[0007] As an optional embodiment of this application, setting the target workspace window as the management window of the target application window further includes: Record the style and position of the target application's window, and set the style of the target application's window to a preset style; Determine the size of the terminal's display interface, and set the window size of the associated window to the size of the terminal's display interface; The method further includes: Upon receiving a modification instruction to change the display mode of the target application from wallpaper mode to non-wallpaper mode, the style and position of the target application's window are restored to the recorded style and position of the target application's window. When the target workspace window is set as the parent window of the target application window, the associated windows include the target workspace window and the target application window; when the target workspace window is set as the parent window of the host window and the host window is set as the parent window of the target application window, the associated windows include the target workspace window, the target application window, and the host window.

[0008] As an optional embodiment of this application, the window for determining the target application includes: Get all created top-level windows; If the startup command or the modification command includes a target handle, the window whose window handle is the target handle among all the created top-level windows is identified as the window of the target application, and the target handle is the window handle of the window of the target application. If the target handle is not included in the startup or modification command, the target class name is determined, and the window whose window class name is the target class name among all the created top-level windows is determined as the window of the target application, where the target class name is the window class name of the window of the target application.

[0009] As an optional embodiment of this application, the step of setting the target workspace window as the management window of the target application window further includes: Register a message hook in the operating system. The message hook is used to obtain operation information obtained through the desktop icon window and provide the operation information to the window of the target application. The process of refreshing the display interface of the terminal further includes: When operation information obtained through the desktop icon window is obtained through the message hook, the operation information is provided to the window of the target application through the message hook, so that at least one of the desktop icon window and the window of the target application can perform a corresponding operation based on the operation information.

[0010] As an optional embodiment of this application, the step of searching for workspace windows other than the first workspace window in the created workspace windows of the terminal's operating system includes: Get all created top-level windows, and find the workspace window among all created top-level windows based on the window class name of the workspace window; For any workspace window found, determine whether the workspace window is a workspace window other than the first workspace window based on the window class name of the desktop icon window.

[0011] As an optional embodiment of this application, refreshing the display interface of the terminal further includes: Receive a modification instruction to change the display mode of the target application from wallpaper mode to non-wallpaper mode; Obtain the desktop window of the operating system, wherein the desktop window is the lowest level window of the operating system; Unregister the message hook in the operating system; Set the desktop window as the parent window of the target application window; The terminal's display interface is refreshed so that the target application's interface is displayed as a window.

[0012] As an optional embodiment of this application, when a launch command for a target application is received and the target application's display mode is not wallpaper mode, the method includes: Identify the target application's window and the operating system's desktop window, wherein the desktop window is the lowest-level window in the operating system; Set the desktop window as the management window for the target application's windows; The terminal's display interface is refreshed so that the target application's interface is displayed as a window.

[0013] According to a second aspect of the embodiments of this application, an application processing apparatus is provided, applied to a terminal, the apparatus comprising: The search module is used to search for workspace windows other than the first workspace window in the workingspace windows created by the terminal's operating system when it receives a launch instruction for the target application and the display mode of the target application is wallpaper mode, or when it receives a modification instruction to change the display mode of the target application from non-wallpaper mode to wallpaper mode after the target application has been launched. The first workspace window is the workspace window corresponding to the desktop icon window of the terminal. The acquisition module is used to, if any workspace window other than the first workspace window is found, take that workspace window as the target workspace window; if no workspace window other than the first workspace window is found, create a new workspace window and take the newly created workspace window as the target workspace window. The determination module is used to determine the window of the target application and set the target workspace window as the management window of the target application window; The display module is used to refresh the display interface of the terminal so that the application interface of the target application in the display interface is displayed as wallpaper.

[0014] According to a third aspect of the embodiments of this application, an electronic device is provided, the electronic device including a memory, a processor and a computer program stored in the memory, wherein the processor executes the program to implement the steps of the method provided in the first aspect.

[0015] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps of the method provided in the first aspect.

[0016] According to a fifth aspect of the present application, a computer program product is provided, the computer program product including computer instructions stored in a computer-readable storage medium, wherein when a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, causing the computer device to perform steps implementing the method provided in the first aspect.

[0017] The beneficial effects of the technical solutions provided in this application are: This application provides two scenarios in which the application interface of a target application can be displayed as a wallpaper. One scenario is when a launch command for the target application is received and the display mode of the target application is wallpaper mode. The other scenario is when the target application has been launched and a modification command to change the display mode to wallpaper mode is received. In either of these scenarios, the application interface of the target application can be displayed as a wallpaper through subsequent operations, providing high flexibility in displaying the application interface as a wallpaper.

[0018] The method finds a target workspace window by searching for any existing workspace window in the terminal's operating system other than the first workspace window. If no other workspace window exists besides the first workspace window, it creates a new workspace window as the target workspace window to ensure successful acquisition of the target workspace window. By setting the target workspace window as the management window of the target application, and based on the operating system's window stacking rules, the application interface is refreshed to display the target application's interface as wallpaper, increasing desktop interactivity and visual effects. Furthermore, this method is based on the hierarchical relationship between windows in the operating system, does not rely on third-party applications, is simple to operate, and is highly efficient in setting the target application's interface as wallpaper. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.

[0020] Figure 1 A schematic diagram of a system architecture for processing an application provided in an embodiment of this application; Figure 2 A flowchart illustrating an application processing method provided in an embodiment of this application; Figure 3 A window hierarchy diagram of a desktop provided in an embodiment of this application; Figure 4 Another window hierarchy diagram of a desktop provided in this application embodiment; Figure 5 A schematic diagram of a display interface provided in an embodiment of this application; Figure 6 Another display interface diagram provided for an embodiment of this application; Figure 7 Another desktop hierarchy diagram provided for embodiments of this application; Figure 8 A schematic diagram of another display interface provided in an embodiment of this application; Figure 9A system architecture diagram provided for an embodiment of this application; Figure 10 A schematic diagram of thread interaction provided in an embodiment of this application; Figure 11 A schematic diagram of thread interaction provided in an embodiment of this application; Figure 12 A flowchart illustrating an application processing method provided in an embodiment of this application; Figure 13 A schematic diagram of the structure of a processing device for an application provided in an embodiment of this application; Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0021] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.

[0022] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” can be implemented as “A,” or as “B,” or as “A and B.”

[0023] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0024] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0025] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0026] Figure 1 This is a schematic diagram of the system architecture for implementing the application processing provided in this application embodiment. The application layer is used to access the application, and the accessed application can then be wallpapered as an application interface. The interface layer provides relevant programming interfaces for the application layer to call, such as an interface for enabling wallpaper mode. The implementation layer includes implementation code for application wallpapering, used to execute the specific steps of the method provided in this application. This system architecture can be deployed in a terminal, which can be a smartphone, tablet, laptop, desktop computer, smart voice interaction device (e.g., smart speaker), wearable electronic device (e.g., smartwatch), in-vehicle terminal, smart home appliance (e.g., smart TV), AR / VR device, etc., but is not limited thereto. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited herein.

[0027] The application layer can initiate wallpaper mode by calling the wallpaper mode initiation interface when it receives a launch command from the target application and the target application's display mode is in wallpaper mode, or when it receives a modification command to change the display mode to wallpaper mode while the target application is already running. The interface layer calls the internal interface, the implementation layer begins initialization, creates and runs the wallpapering thread. The wallpapering thread starts working, first searching for the target workspace window at the system window level. If the target workspace window does not exist, a new workspace window is created as the target workspace window. Then, the window of the target application is obtained, the target workspace window is set as the management serial port of the target application window, and the terminal's display interface is refreshed. The refreshed display interface shows the target application's application interface as wallpaper.

[0028] Taking a game application as an example, this application embodiment utilizes the system window hierarchy to embed the game screen into the operating system desktop, so that the game screen is directly displayed on the system desktop after the game is launched, thus mixing daily use applications with games, allowing users to seamlessly play games while using the computer normally.

[0029] This application provides a processing method for an application, such as... Figure 2 As shown, the method includes: S201. When a startup command for the target application is received and the target application's display mode is wallpaper mode, or when the target application has already started and a modification command to change the target application's display mode from non-wallpaper mode to wallpaper mode is received, the system searches for workspace windows in the terminal's operating system that are not the first workspace window. The first workspace window is the workspace window corresponding to the terminal's desktop icon window.

[0030] In this embodiment, the target application can be any type of application, such as a social media application, instant messaging application, e-commerce application, live streaming application, or game application. As an optional embodiment, the target application can be a game application. When the target application is a game application, displaying the game interface as wallpaper not only allows users to interact with the game interface while handling other tasks on the terminal, but also enhances the user's immersion and interactive experience. This allows users to conveniently perform multitasking without interrupting the game, greatly enhancing the interactivity and flexibility of the desktop environment.

[0031] In this embodiment, at least two triggering conditions can be preset for wallpapering the application interface of the target application. The first triggering condition is when a launch command for the target application is received and the display mode of the target application is wallpaper mode. The second triggering condition is when a command to change the display mode to wallpaper mode is received after the target application has been launched.

[0032] When a user clicks on the application icon of a target application to launch the application, the click operation can be converted into a launch command within the terminal. After receiving the launch command, the terminal determines the steps required to launch the target application. The application icon of the target application can be the application icon of the shortcut of the target application on the desktop.

[0033] The display mode of the target application refers to the display style of the application interface on the terminal's display screen. When the display mode of the target application is wallpaper mode, the application interface is displayed in a wallpaper style, that is, the application interface is presented to the user in the form of a wallpaper. When the display mode of the target application is non-wallpaper mode, the application interface is displayed in a window style, that is, the application interface is presented to the user in the form of a window. The non-wallpaper mode can be referred to as window mode.

[0034] In this embodiment, a default display mode can be preset in the operating system when the target application is launched. This default display mode can be either wallpaper mode or non-wallpaper mode. When the default display mode of the target application is wallpaper mode, after receiving the launch command of the target application, the terminal, based on the default display mode, can determine the current triggering condition and execute the step of wallpapering the application interface of the target application. When the default display mode of the target application is non-wallpaper mode, after receiving the launch command of the target application, the terminal, based on the default display mode, executes the step of displaying the application interface of the target application in window form.

[0035] In this embodiment, when launching the application, a display mode selection option can be provided to the user. This selection option may include wallpaper mode or non-wallpaper mode. When the user launches the target application and selects wallpaper mode, the terminal can determine the current triggering condition based on the user's operation and execute the step of wallpapering the target application's interface. When the user launches the target application and selects non-wallpaper mode, the terminal executes the step of displaying the target application's interface in window form based on the user's operation.

[0036] In this embodiment, a display mode modification operation can be provided. After the target application is launched, the user can modify the display mode from wallpaper mode to non-wallpaper mode, and vice versa, through the display mode modification operation. When the user modifies the display mode from non-wallpaper mode to wallpaper mode through the display mode modification operation, the terminal receives the modification instruction to modify the display mode of the target application from non-wallpaper mode to wallpaper mode, determines that it is currently in a preset triggering state, and executes the step of wallpapering the application interface of the target application.

[0037] In this embodiment, under a preset trigger condition, the terminal can achieve application interface wallpapering by obtaining the operating system's workspace window. The operating system can be Windows, and the workspace window is a window created by the operating system. The window class name of the workspace window is "Worker W," and it can also be called a worker window. The workspace window is used to provide services or handle tasks for applications or system processes. It is created and managed by the operating system to support system functions, background processing, and provide some functions that do not require direct user interaction.

[0038] Once an application is launched on the terminal, the terminal's display interface may also include the application's window. The application's window is a window created by the application to interact with the user. It typically contains various interface elements, such as buttons, text boxes, and graphical interfaces, and is used to display the application's core functions and content. The application's window is the main interface through which the user directly interacts with the application, providing a complete display of functions and operational feedback.

[0039] In this embodiment, the interface created by the terminal includes at least a first workspace window, which is the workspace window corresponding to the desktop icon window. The desktop icon window is a graphical user interface in the terminal's display interface, typically used to display applications, shortcuts, or folders. The desktop icon window provides users with interactive operations such as right-click menus, drag-and-drop, and double-clicks, allowing users to perform related tasks or open corresponding applications. Figure 3 As shown, Figure 3 This application provides a desktop window hierarchy diagram. The window hierarchy diagram displays the window identifiers of windows created in the terminal in a hierarchical manner. Each window identifier includes a window handle and a window class name. The window handle is the unique identifier of the window, and the window class name is the type or function of the window. Figure 3 This shows that the desktop icon window corresponds to the first workspace window, and the first workspace window is the managing window of the desktop icon window; it is also called the parent window of the first workspace window. Specifically, in... Figure 3 The example only illustrates the window identifiers for each window. The window identifier for the first workspace window can be "Window 005702AA""WorkerW", where "Window005702AA" is the window handle of the first workspace window, and "WorkerW" is the window class name of the first workspace window. The window identifier for the desktop icon window is "Window 000101F6""FolderView"SvsListView32", where "Window000101F6" is the window handle of the desktop icon window, and "FolderView" and "SvsListView32" are the window class names of the desktop icon window.

[0040] In this embodiment of the application, under a preset trigger condition, the terminal searches for workspace windows other than the first workspace window in the created workspace windows, and makes corresponding adjustments and preparations for the subsequent wallpapering of the application interface. The search for workspace windows other than the first workspace window can be the search for window handles of workspace windows other than the first workspace window.

[0041] As an optional embodiment of this application, finding workspace windows other than the first workspace window in the created workspace windows of the terminal's operating system includes: Get all created top-level windows, and find the workspace window among all created top-level windows based on the window class name of the workspace window; For any workspace window found, determine whether the workspace window is a workspace window other than the first workspace window based on the window class name of the desktop icon window.

[0042] In this embodiment, the top-level windows created in the terminal may include application windows and workspace windows. Obtaining all created top-level windows can involve retrieving the window handles and window class names of all created top-level windows. Alternatively, the window hierarchy of the terminal's display interface can be obtained, and all created top-level windows can be retrieved from the window hierarchy.

[0043] The system can search for a window with the class name "Worker W" from the window class names of all created top-level windows. Once a window with the class name "Worker W" is found, it can determine whether the window corresponds to a desktop icon window. This can be done by checking whether the managed windows under the found workspace window include a window with the class name "FolderView". This will determine whether the found workspace window is the first workspace window, where "FolderView" is the window class name of the desktop icon window.

[0044] If a window with the class name "FolderView" exists, then the found workspace window is the first workspace window, and the search for other workspace windows needs to continue; if no window with the class name "FolderView" exists, then the found workspace window is the first workspace window, and so on. Figure 4 As shown, Figure 4 This is another window hierarchy diagram of the desktop provided in this application embodiment. The window class name of the desktop icon window is matched with the window class names of each window under this workspace window. If a match is successful, it indicates that this workspace window is the first workspace window. From Figure 4As can be seen, when the window identifier of the found workspace window is "window handle a window class name A", "window class name C" is matched with the window class name of the windows under this workspace window. The matching result is successful, thus determining that the found workspace window is the first workspace window. If the window identifier of the found workspace window is "window handle e window class name A", "window class name C" is matched with the window class name of the windows under this workspace window. The matching result is unsuccessful, then other identified workspace windows can be directly used as the target workspace window. In practical applications, the window identifier of a workspace window that is not the first workspace window can be "Window 00420F42 " WorkerW".

[0045] Optionally, after the first workspace window is determined, other determined workspace windows can be directly used as target workspace windows without needing to determine whether they correspond to desktop icon windows.

[0046] In this embodiment, the window class name of the workspace window is used to initially filter all the top-level windows created in the terminal to obtain the workspace window. The obtained workspace window is then detected by the window class name of the desktop icon window to determine whether the obtained workspace window is the first workspace window or not. The accuracy of finding workspace windows other than the first workspace window in the workspace windows created by the terminal's operating system is then assessed.

[0047] In this embodiment of the application, by pre-setting multiple triggering conditions for the terminal, the terminal can promptly wallpaper the application interface of the target application under the preset triggering conditions, and also allows users to wallpaper the application interface of the target application in multiple situations, making application interface wallpapering more flexible.

[0048] S202. If any workspace window other than the first workspace window is found, then that workspace window shall be taken as the target workspace window.

[0049] In this embodiment of the application, the terminal's operating system can be a Windows system. Different versions of the Windows system include a first workspace window, and some versions include other workspace windows in addition to the first workspace window, while some versions do not have other workspace windows in addition to the first workspace window.

[0050] In this embodiment of the application, if a workspace window other than the first workspace window is found, then any one of the workspace windows in that workspace window is taken as the target workspace window; if multiple workspace windows other than the first workspace window are found, then any one of the multiple workspace windows is taken as the target workspace window.

[0051] S203. If no workspace window other than the first workspace window is found, a new workspace window is created and used as the target workspace window.

[0052] In this embodiment, when there is no workspace window other than the first workspace window in the terminal, or when there is a workspace window other than the first workspace window but the terminal makes a query error (misjudgment) due to some occasional problems, the terminal will not be able to find any workspace window other than the first workspace window. If the terminal cannot find any workspace window other than the first workspace window, it means that there is no workspace window other than the first workspace window in the terminal or there is a query error. In this case, a new workspace window can be created by the operating system, and the newly created workspace window can be used as the target workspace window.

[0053] As an optional embodiment of this application, to ensure successful creation of a workspace window, after creating a new workspace window, wait for a preset time, and then search for workspace windows other than the first workspace window again. If any workspace window other than the first workspace window is found, that workspace window is used as the target workspace window. If no workspace window other than the first workspace window is found, create a new workspace window again, wait for a preset time, and then search for workspace windows other than the first workspace window again. This process is repeated until a workspace window other than the first workspace window is found or the number of searches reaches a preset number.

[0054] If the number of searches reaches a preset limit, a wallpaper creation failure message will be displayed to the user. The preset duration is 50ms, and the preset number of searches is 40. This loop of creating and searching for the workspace window ensures the successful creation of the target workspace. The preset duration allows the operating system time to complete resource allocation and window initialization, preventing errors caused by premature searches. The preset number of searches ensures timely feedback when the terminal fails to create the window for an extended period, avoiding unlimited searches, reducing invalid operations, and preventing infinite loops or endless queries.

[0055] It should be noted that in practical applications, the number of searches reaching the preset number is extremely rare. The preset number is set as a safety net mechanism to ensure that the method provided in this application embodiment is more robust and complete.

[0056] It should be understood that different versions of Windows may have different operations when creating a workspace window. As an optional embodiment of this application, when creating a new workspace window, the version information of the terminal's operating system can be obtained, the version of the operating system can be determined based on the version information, and a request message can be sent to the operating system to request the operating system to create the workspace window, so as to improve the success rate of creating the workspace window.

[0057] S204. Determine the window of the target application and set the target workspace window as the management window of the target application's window.

[0058] In this embodiment, the window of the target application is a window created by the terminal through the target application when the target application is launched. The window of the target application is the same as the window of the application described above, and the window of the target application contains various interface elements of the target application, such as buttons, text boxes, and graphical interfaces.

[0059] In this embodiment, setting the target workspace window as the management window of the target application window can be done by setting the target workspace window as the direct management window of the target application window, where the direct management window of the target application window is the parent window of the target application window, i.e., setting the target workspace window as the parent window of the target application window; setting the target workspace window as the management window of the target application window can also be done by setting the target workspace window as the indirect management window of the target application window, where the indirect management window of the target application window is a higher-level window that is not the parent window of the target application window, i.e., setting the target workspace window as a higher-level window that is not the parent window of the target application window. For example, the target workspace window can be the parent window of the parent window of the target application window.

[0060] In this embodiment of the application, after obtaining the target workspace window, the window handle of the target workspace window is obtained, and the hierarchical relationship is set based on the window handle of the target workspace window and the window handle of the target application window.

[0061] As an optional embodiment of this application, setting the target workspace window as the management window of the target application's window includes: Set the target workspace window as the parent window of the target application window; or Create a host window, set the target workspace window as the parent window of the host window, and set the host window as the parent window of the target application window.

[0062] The method further includes: When a modification instruction is received to change the display mode of the target application from wallpaper mode to non-wallpaper mode, the host window is destroyed.

[0063] In this embodiment of the application, the target workspace window can be set as the parent window of the target application window, and in this case, the target workspace window is the direct management window of the target application window.

[0064] To increase the efficiency of message transmission between the target workspace window and the target application window, a host window can be created, which serves as the parent window of the target application window, and the target workspace window serves as the parent window of the host window.

[0065] This embodiment of the application creates a host window and sets the hierarchical relationship between the target workspace window, the host window, and the target application window. The host window controls the hierarchical relationship between the target workspace window and the game window, improving the efficiency of message transmission between the target workspace window and the target application window, and achieving the goal of displaying the target application's interface as wallpaper. The host window can be a borderless full-screen window, and its window class name can be any value, as long as it does not conflict with other class names; it can be "WallpaperifyHostWindow". After creating the host window, a window handle for the host window is generated.

[0066] In this embodiment of the application, the hierarchical relationship between the target workspace window, the target application window, and the host window can be set through the window handle of the target workspace window, the window handle of the target application window, and the window handle of the host window.

[0067] In this embodiment of the application, by determining the window of the target application, setting the target workspace window as the management window of the target application window, and changing the display method of the target application window, the effect of displaying the window of the target application as a wallpaper is obtained based on the window overlay rules in the operating system.

[0068] S205. Refresh the terminal's display interface so that the target application's interface is displayed as wallpaper.

[0069] In this embodiment, by setting the above-mentioned hierarchical relationship, the underlying operation of displaying the application interface of the target application in the display screen as wallpaper is realized. To obtain the corresponding display effect, the corresponding display effect is provided to the user, and the terminal's display interface is refreshed. After the display interface is refreshed, the application interface of the target application is displayed as wallpaper, and the desktop icons are displayed on the application interface of the target application.

[0070] like Figure 5 As shown, Figure 5 This is a schematic diagram of a display interface provided in an embodiment of this application. Figure 5The wallpaper in the display interface is the original wallpaper with a "car" image. The interface also displays a desktop icon for "Application A." By default, Application A is displayed in wallpaper mode. When the user clicks the "Application A" icon, the displayed interface looks like this... Figure 6 As shown, where, Figure 6 Another display interface diagram provided for embodiments of this application, from Figure 6 As can be seen, application A is a game application. The application interface includes game screen (characters in the figure) and application controls (directional keys in the figure). The application interface is displayed as wallpaper in the display interface, and the icon of application A is not obscured by the application interface.

[0071] In this embodiment, refreshing the terminal's display interface updates the displayed content, allowing the target application's interface to visually resemble a wallpaper. Failure to refresh the current display interface would result in a lag or incorrect rendering of the visual effects corresponding to the hierarchical settings of the target workspace window and the target application window, negatively impacting the user experience.

[0072] This application provides two scenarios in which the application interface of a target application can be displayed as a wallpaper. One scenario is when a launch command for the target application is received and the display mode of the target application is in wallpaper mode. The other scenario is when the target application has been launched and a modification command to change the display mode from non-wallpaper mode to wallpaper mode is received. In either of these scenarios, the application interface of the target application can be displayed as a wallpaper through subsequent operations, providing high flexibility in displaying the application interface as a wallpaper.

[0073] The method finds a target workspace window by searching for any existing workspace window in the terminal's operating system other than the first workspace window. If no other workspace window exists besides the first workspace window, it creates a new workspace window as the target workspace window to ensure successful acquisition of the target workspace window. By setting the target workspace window as the management window of the target application, and based on the operating system's window stacking rules, the application interface is refreshed to display the target application's interface as wallpaper, increasing desktop interactivity and visual effects. Furthermore, this method is based on the hierarchical relationship between windows in the operating system, does not rely on third-party applications, is simple to operate, and is highly efficient at setting the application's interface as wallpaper.

[0074] In the embodiments of this application, the terminal performs different operations depending on the display mode of the target application when the launch command of the target application is received. The following describes an optional embodiment of the operations performed by the terminal when the display mode of the target application is not wallpaper mode when the launch command of the target application is received.

[0075] As an optional embodiment of this application, when a launch command for the target application is received and the target application's display mode is not wallpaper mode, the method includes: Identify the target application's window and the operating system's desktop window, where the desktop window is the lowest-level window in the operating system; Set the desktop window as the management window for the target application's windows; Refresh the terminal's display so that the target application's interface is displayed as a window.

[0076] In this embodiment, when a user launches a target application by clicking its icon, the terminal responds to the API interface corresponding to the click and receives the launch command of the target application. If the target application's display mode is not wallpaper mode, the terminal determines the target application's window or the operating system's desktop window. The desktop window is the lowest-level window in the terminal, i.e., the highest-level window. The relationship between all created windows in the terminal can be viewed as a tree diagram, with the desktop window as the root node in this tree diagram.

[0077] like Figure 7 As shown, Figure 7 This is another desktop hierarchy diagram provided in an embodiment of this application. The desktop window is the bottommost window. In practical applications, the window identifier of the desktop window can be "Window 00010010"" #32769(Desktop)".

[0078] In this embodiment of the application, when setting the desktop window as the management window of the target application's window, the desktop window can be set as the parent window of the target application's window, and the corresponding visual effect is that the target application's window is displayed in the form of a window.

[0079] To ensure that the visual effects corresponding to the aforementioned hierarchical relationship are displayed on the real-world interface for user viewing, the terminal's display interface is refreshed to update the content displayed on the page. The visual effect after the refresh is the application interface of the target application displayed in a window. For example... Figure 8 As shown, Figure 8 This is a schematic diagram illustrating another display interface provided in an embodiment of this application. From Figure 8As you can see, the application interface opens in the form of a window, which obscures the original wallpaper and application icons on the desktop.

[0080] In the embodiments of this application, displaying the application interface of the target application as a wallpaper and displaying the application page of the target application as a window both include determining the window of the target application. An optional embodiment for determining the window of the target application is given below.

[0081] As an optional embodiment of this application, determining the window of the target application includes: Get all created top-level windows; If the startup command or modification command includes a target handle, then the window whose window handle is the target handle among all the created top-level windows is identified as the window of the target application, and the target handle is the window handle of the window of the target application. If the target handle is not included in the startup or modification command, determine the target class name, and identify the window whose window class name is the target class name among all the created top-level windows as the window of the target application, where the target class name is the window class name of the window of the target application.

[0082] In the embodiments of this application, the step of determining the window of the target application can be performed under at least the following conditions.

[0083] The first scenario is when the target application's launch command is received and the target application's display mode is wallpaper mode; The second scenario is when the target application is already running and a command to change the display mode to wallpaper mode is received. The third scenario is when a launch command for the target application is received and the target application's display mode is not wallpaper mode.

[0084] For any of the above scenarios, it is necessary to obtain all top-level windows created on the terminal. These are all currently existing top-level windows on the terminal, excluding those that have been created and then closed or destroyed. Since the target application's window is a top-level window, obtaining all created top-level windows allows for a more efficient identification of the target application's window compared to obtaining all windows created on the terminal.

[0085] In the first scenario, if the received launch command includes a target handle, the terminal searches for a window whose window handle matches the target application's window among all created top-level windows. If a window exists, the window corresponding to that handle is the target application's window. Here, the target handle is the window handle of the target application's window. If the received launch command does not include a target handle, the terminal obtains the target application's window class name, which is the target class name. The window corresponding to this target class name in the top-level windows is the target application's window. Here, the target class name is recorded in the terminal. For example, when the target application is a game application, since the two main game engines used to create games are Unity and Unreal Engine, and the window class name for games created by Unity is "UnityWndClass" and for games created by Unreal Engine is "UnrealWindow," the game application's window class name can be either "UnityWndClass" or "UnrealWindow." The window with the window class name "UnityWndClass" or "UnrealWindow" in the top-level windows is used as the target application's window.

[0086] In the second scenario, upon receiving a modification command to change the display mode to wallpaper mode, if the command includes a target handle, the terminal searches all top-level windows created in the terminal for a window whose window handle matches the target handle. If a window exists with that target handle, it is the window of the target application. If the command does not include a target handle, the terminal obtains the target class name, and the window in the top-level window corresponding to that target class name is the window of the target application.

[0087] For the third scenario, similar to the first, if the received startup command includes a target handle, the system searches among all top-level windows created in the terminal to see if a window with the target handle exists. If it does, the window corresponding to that handle is the window of the target application. If the received startup command does not include a target handle, the terminal obtains the target class name, and the window corresponding to that class name in the top-level windows is the window of the target application.

[0088] It should be noted that, in this embodiment of the application, obtaining the window of the target application is essentially obtaining the window handle of the target application's window, so that the window of the target application can be set in a subsequent manner. When the start command or modification command includes the target handle, the window of the target application can be set directly based on the target handle.

[0089] In this embodiment, by acquiring all created top-level windows, when determining the window of the target application, if the target handle can be obtained directly, the window corresponding to the target handle in the created top-level windows is determined as the window of the target application; if the target handle cannot be obtained, the target class name is acquired, and the window corresponding to the target class name in the top-level windows is determined as the window of the target application, thereby ensuring that the window of the target application can be found.

[0090] As an optional embodiment of this application, setting the target workspace window as the management window of the target application's window further includes: Record the style and position of the target application's window, and set the style of the target application's window to a preset style; Determine the size of the terminal's display interface, and set the window size of the associated windows to the size of the terminal's display interface; The method also includes: When a modification instruction is received to change the display mode of the target application from wallpaper mode to non-wallpaper mode, the style and position of the target application's window are restored to the recorded style and position of the target application's window. Specifically, when the target workspace window is set as the parent window of the target application window, the associated windows include the target workspace window and the target application window; when the target workspace window is set as the parent window of the host window, and the host window is set as the parent window of the target application window, the associated windows include the target workspace window, the target application window, and the host window.

[0091] In this embodiment, the style and position of the target application's window are recorded, and the window style is set to a preset style. The window style, also known as window style or window design, includes attributes such as border and title bar, control buttons, resizing, transparency and shadow, as well as window type and behavior. The border and title bar attribute indicates whether the window has a border and title bar, and the style of these elements. For example, in the Windows operating system, the window style of an application typically includes a resizable border and a title bar to display the window name. The control button attribute indicates the style and position of the minimize, maximize, and close buttons. The resizing attribute indicates whether the user is allowed to resize the window. The transparency and shadow attribute indicates whether the window has a transparent background or a shadow effect. Window type and behavior attributes include: modal windows, typically pop-up dialog boxes that the user must complete before returning to the main window; non-modal windows, which can be switched freely without affecting the main interface operation; and borderless windows, which have no border or title bar and are often used for custom UIs or full-screen applications.

[0092] By using the window style and position of the target application, the window style and position of the target application's window can be restored when the target application's display mode is subsequently changed from wallpaper mode to non-wallpaper mode.

[0093] When setting the window style of a target application to a preset style, it is necessary to obtain the preset style. This preset style can be generated by pre-setting the window style. The preset style can be a borderless window without borders or a title bar, making the target application's interface more aesthetically pleasing when displayed as wallpaper, thus improving the user experience.

[0094] In this embodiment, after recording the window position of the target application's window, the window size of the target application's window can be adjusted. The size of the terminal's display interface can be obtained. The size of the display interface can be the size of the terminal's maximum visible area, or the size of the terminal's screen, or the size of the wallpaper when displayed in full screen. By obtaining the size of the terminal's display interface, the size of the associated window is set to the size of that display interface. According to the above description, in this embodiment, setting the target workspace window as the management window of the target application's window includes setting the target workspace window as a directly associated window or indirectly managed window of the target application's window. When the target workspace window is set as the direct management window of the target application's window, it can be set as the parent window of the target application's window. In this case, the associated windows are the target workspace window settings and the target application's window. When the target workspace window is set as an indirect management window of the target application's window, it can be set as the parent window of the host window, and the host window can be set as the parent window of the target application's window. In this case, the associated windows are the target workspace window settings, the target application's window, and the host window.

[0095] The size of the associated window is set to the size of the display interface, so that the application interface of the target application can be displayed not only as a wallpaper, but also as a full-screen wallpaper. At the same time, the window position of the target application's window is changed, and the efficiency of message transmission between windows is improved by ensuring that the size of the parent window and the child window are consistent.

[0096] As an optional embodiment of this application, the target workspace window is set as the management window of the target application's window, and then the following is further included: Register a message hook in the operating system. This message hook is used to obtain operation information obtained through the desktop icon window and provide the operation information to the target application's window. The display interface of the terminal is refreshed, and then the process includes: If operation information obtained through the desktop icon window is obtained through a message hook, the operation information is provided to the window of the target application through the message hook, so that the corresponding operation is performed based on the operation information through at least one of the desktop icon window and the window of the target application.

[0097] In this embodiment of the application, after setting the target workspace window as the management window of the target application window, a message hook can be registered in the operating system so that the user can interact with the wallpapered application interface after the application interface of the target application is set as wallpaper.

[0098] In an operating system, a message hook is a program mechanism that can acquire user input information, including mouse clicks or keyboard input. In this embodiment, registering a message hook is used to obtain specific operation information, which is the user's input into the desktop icon window.

[0099] In this embodiment, after refreshing the terminal's display interface, the target application's interface is displayed as the wallpaper. Users can interact with either the desktop icons or the target application on the terminal's desktop. Specifically, when a user interacts with either the desktop icons or the target application, the desktop icon window on the terminal obtains the corresponding operation information. The aforementioned registered message hook can obtain the operation information obtained by the desktop icon window and transmit this information to the target application's window, so that at least one of the desktop icon window and the target application's window performs a corresponding operation based on the operation information.

[0100] The operation performed based on the operation information by at least one of the desktop control window and the target application window can be as follows: If the operation information corresponds to a control on the desktop control window but not to a control on the target application window, then the desktop control window performs the corresponding operation based on the operation information; if the operation information does not correspond to a control on the desktop control window but corresponds to a control on the target application window, then the target application window performs the corresponding operation based on the operation information; if the operation information corresponds to both a control on the desktop control window and the target application window, then the window to perform the operation can be determined according to a pre-set priority, or a selection option can be displayed to the user for the user to determine the window to perform the operation; if the operation information corresponds to neither a control on the desktop control window nor to the target application window, then neither operation is performed. It should be understood that the corresponding operation here is not performed.

[0101] Performing the corresponding operation based on the operation information through at least one of the desktop control window and the target application window can also be as follows: if the operation information corresponds to a control on the desktop control window, then the desktop control window performs the corresponding operation based on the operation information; if the operation information corresponds to a control on the target application window, then the target application window performs the corresponding operation based on the operation information; if the operation information corresponds to both a control on the desktop control window and the target application window, then the window that needs to perform the operation can be determined according to a pre-set priority, and both windows perform the corresponding operation.

[0102] This application implements a method that, by registering a message hook, enables the target application window to obtain user input operation information and respond accordingly to the obtained operation information, thereby realizing the interaction between the user and the wallpaper-style application interface.

[0103] As an optional embodiment of this application, the display interface of the terminal is refreshed, and then the process further includes: Receive a modification command to change the display mode of the target application from wallpaper mode to non-wallpaper mode; Get the operating system's desktop window, which is the lowest-level window in the operating system; Unregister the message hook in the operating system; Set the desktop window as the parent window of the target application; Refresh the terminal's display so that the target application's interface is displayed as a window.

[0104] In this embodiment of the application, after setting the window relationship between the target workspace window and the target application, the terminal display interface is refreshed so that the application interface of the target application is displayed as wallpaper, that is, the display mode of the target application is wallpaper mode.

[0105] When the target application's display mode is wallpaper mode, the user can change the target application's display mode from wallpaper mode to non-wallpaper mode through the aforementioned display mode modification operation. After receiving the modification instruction to change the target application's display mode to non-wallpaper mode, the terminal responds to the display mode modification operation by displaying the target application's interface as a window.

[0106] Specifically, the message hook is unregistered in the operating system to prevent it from consuming resources and affecting the windowed target application. The operating system's desktop window and the target application's window are obtained, and the desktop window is set as the parent window of the target application's window. This hierarchical setting ensures that the target application's interface visually appears as a window.

[0107] By refreshing the terminal's display interface, the visual effect of the desktop window (which is the parent window of the target application) is presented in the display interface and provided to the user.

[0108] As an optional embodiment, determining the window status of the target application may further include: when receiving the modification instruction to change the display mode of the target application to a non-wallpaper mode, if the modification instruction includes a target handle, then all windows in the created top-level windows that correspond to that window handle are identified as windows of the target application; if the modification instruction to change the display mode of the target application to a non-wallpaper mode does not include a target handle, then the window class name of the target application is determined, and all windows in the created top-level windows that correspond to that window class name are identified as windows of the target application.

[0109] As an optional embodiment of this application, when the target workspace window is used as the management window of the target application window, if a host window is created and the host window is set as the parent window of the target application window, and the target workspace window is set as the parent window of the host window, the operation of changing the display mode of the target application from wallpaper mode to non-wallpaper mode also includes destroying the host window.

[0110] Destroying the host window can be done by first closing the host window and then destroying it, to prevent direct destruction of the host window from causing operating system malfunctions.

[0111] As an optional embodiment of this application, if when setting the target workspace window as the management window of the target application's window, the style of the target application's window is set to a preset style, and upon receiving a modification instruction to change the display mode of the target application from wallpaper mode to non-wallpaper mode, the method further includes: Set the style and position of the target application's window to the recorded style and position of the target application's window.

[0112] In this embodiment, by setting the style and position of the target application's window to the recorded style and position of the target application's window, the target application's window can be displayed from a preset style to the target application's original style, and the target application's position can be displayed in its original position. The display page after the target application's display mode is windowed mode is as follows: Figure 8 As shown.

[0113] like Figure 9 As shown, Figure 9This application provides a system architecture diagram. The system includes an application layer, an interface layer, and an implementation layer. The application layer is used for connected applications, which can then be wallpapered as their user interface. The interface layer provides relevant programming interfaces for the application layer to call, such as an interface for enabling wallpaper mode. The implementation layer includes the implementation code for application wallpapering, comprising a host window and message hooks. The host window is a window that contains the application's window, and the message hooks are a method for obtaining system input messages, used to handle keyboard and mouse input.

[0114] For a clearer explanation of the specific steps to enter wallpaper mode, please refer to [link / reference]. Figure 10 , Figure 10 This application provides a schematic diagram of thread interaction, using a game application as an example, and includes the following steps: S1. The application layer calls the start wallpaper mode interface to start the game wallpaper mode; S2. The interface layer calls the internal interface to initiate the initialization of the implementation layer. S3. Obtain operating system information, such as the operating system version; S4. Create and run the game wallpaper thread; S5. The thread starts working. First, it searches for a system workspace window in the system window hierarchy. If the window does not exist, it sends a message to the system to request the system to create the workspace window according to the system version. After the request, it waits 50 milliseconds and tries to search again. This process is repeated until the number of retries exceeds 40. If the window is still not found after 40 retries, the process cannot continue and the program exits. S6. Obtain the application layer game window handle. If the application layer does not specify the game window class name, enumerate all top-level windows in the system, obtain their window class names, and compare the window class names with the fixed window class names created by the Unity game engine UnityWndClass and the fixed window class names created by the UnrealEngine game engine UnrealWindow. If the class names are consistent, they are regarded as game windows that need to be wallpapered. S7. Create an internal host window; S8. Set the host window's related logic, and record the game window's window style and position. Then, set the host window as the game window's parent window, and set the workspace window as the host window's parent window. After setting this window hierarchy, the game window and desktop icons will not affect each other. After setting the hierarchy, register a system message hook to handle keyboard and mouse input. S9. The implementation layer thread enters the message loop, which will continuously wait for and process messages related to the host window. The host window can be closed by sending a close message to the host window, thus exiting the game wallpaper mode.

[0115] For a clearer explanation of the steps to exit wallpaper mode, please refer to [link / reference]. Figure 11 , Figure 11 A schematic diagram of thread interaction provided in this application embodiment includes the following steps: S1. The application layer calls the exit wallpaper mode interface to request to exit the game wallpaper mode; S2. The interface layer calls the restore method of the internal host window instance to restore the original wallpaper; S3, Unregister message hook; S4. Request the window to be closed and destroyed by sending a close message to the host window; S5. After the host window is destroyed, the message loop thread exits. S6. Reset the hierarchy between the system workspace window and the game window, set the desktop window as the parent window of the game window, restore the saved game window style and position, so that the game window is restored to the desktop windowed form, and the desktop will restore the original desktop wallpaper.

[0116] As can be seen from the above steps, in this embodiment of the application, the game can be embedded into the desktop upon startup, and users can switch between normal window game mode, full-screen game mode, or exit the game at any time during use. Users can interact with the game directly on the desktop or use other applications normally without interference.

[0117] Game applications integrating the methods provided in this application can automatically enter the game wallpaper upon game launch, without relying on third-party applications to passively enter the game wallpaper mode. This solves the problem of using third-party programs to enter the game wallpaper mode but changing the user's game launch habits. Furthermore, this application embodiment can be easily integrated into game applications without affecting existing game gameplay logic. It supports switching between game wallpaper and windowed game modes, providing greater flexibility.

[0118] The following is a complete embodiment of entering and exiting wallpaper mode according to this application, such as... Figure 12 As shown, Figure 12 A flowchart illustrating an application processing method provided in this application embodiment includes the following steps: S301. Under a preset trigger condition, obtain all top-level windows created by the terminal, and search for the workspace window among all the created top-level windows according to the window class name of the workspace window; the preset trigger condition is when a launch command of the target application is received and the display mode of the target application is wallpaper mode, or when a modification command to change the display mode from non-wallpaper mode to wallpaper mode is received when the target application has been launched. S302. For any workspace window found, determine whether the workspace window is a workspace window other than the first workspace window based on the window class name of the desktop icon window. If it is not a workspace window other than the first workspace window, continue searching. S303. If any workspace window other than the first workspace window is found, then that workspace window shall be taken as the target workspace window. S304. If no workspace window other than the first workspace window is found, a new workspace window is created and used as the target workspace window. S305. If the preset triggering conditions include a target handle, the window corresponding to the target handle in all created top-level windows shall be used as the window of the target application. S306. If the target handle is not included in the preset triggering conditions, then obtain the target class name and use the window corresponding to the target class name in all the top-level windows that have been created as the window of the target application. S307. Record the style and position of the target application's window, and set the style of the target application's window to a preset style; S308. Create a host window, set the target workspace window as the parent window of the host window, and set the host window as the parent window of the target application window; S309. Obtain the size of the terminal's display interface, and set the size of the target application's window, the target workspace window, and the host window to the size of the terminal's display interface. S310. Register a message hook in the operating system to refresh the display interface of the terminal; S311. Receive a modification instruction to change the display mode of the target application to non-wallpaper mode, and obtain the desktop window of the operating system. S312. Unregister the message hook in the operating system; S313. Destroy the host window; S314. Set the desktop window as the parent window of the target application's window; S315. Restore the style and position of the target application's window to the recorded style and position of the target application's window; S316. Refresh the terminal's display interface so that the target application's interface is displayed as a window.

[0119] This application provides a processing apparatus for an application, such as... Figure 13 As shown, the device may include: a search module 1301, an acquisition module 1302, a determination module 1303, and a display module 1304, wherein, The search module 1301 is used to search for workspace windows other than the first workspace window in the workingspace windows created by the terminal's operating system when it receives a startup command for the target application and the display mode of the target application is wallpaper mode, or when it receives a modification command to change the display mode of the target application from non-wallpaper mode to wallpaper mode after the target application has been started. The first workspace window is the workspace window corresponding to the desktop icon window of the terminal. The acquisition module 1302 is used to, if any workspace window other than the first workspace window is found, take that workspace window as the target workspace window; if no workspace window other than the first workspace window is found, create a new workspace window and take the newly created workspace window as the target workspace window. The determination module 1303 is used to determine the window of the target application and set the target workspace window as the management window of the target application window; Display module 1304 is used to refresh the display interface of the terminal so that the application interface of the target application in the display interface is displayed as wallpaper.

[0120] The apparatus in this application embodiment can execute the method provided in this application embodiment, and the implementation principle is similar. The actions performed by each module in the apparatus of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the apparatus, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0121] As an optional embodiment of this application, when the determining module is used to set the target workspace window as the management window of the target application's window, it is specifically used for: Set the target workspace window as the parent window of the target application; or Create a host window, set the target workspace window as the parent window of the host window, and set the host window as the parent window of the target application window; The device also includes: The window destruction module is used to destroy the host window when a modification instruction is received to change the display mode of the target application from wallpaper mode to non-wallpaper mode.

[0122] As an optional embodiment of this application, when the determining module is used to set the target workspace window as the management window of the target application's window, it is specifically used for: Record the style and position of the target application's window, and set the style of the target application's window to a preset style; Determine the size of the terminal's display interface, and set the window size of the associated windows to the size of the terminal's display interface; The device also includes: The window setting module is used to restore the style and position of the target application's window to the recorded style and position when a modification instruction is received to change the display mode of the target application from wallpaper mode to non-wallpaper mode. Specifically, when the target workspace window is set as the parent window of the target application window, the associated windows include the target workspace window and the target application window; when the target workspace window is set as the parent window of the host window, and the host window is set as the parent window of the target application window, the associated windows include the target workspace window, the target application window, and the host window.

[0123] As an optional embodiment of this application, when determining the window for the target application, the determining module is specifically used for: Get all created top-level windows; If the startup command or modification command includes a target handle, then the window whose window handle is the target handle among all the created top-level windows will be identified as the window of the target application, and the target handle will be the window handle of the window of the target application. If the target handle is not included in the startup or modification command, determine the target class name, and identify the window whose window class name is the target class name among all the created top-level windows as the window of the target application, and the target class name is the window class name of the window of the target application.

[0124] As an optional embodiment of this application, the device further includes: The register message hook module is used to register message hooks in the operating system. These message hooks are used to obtain operation information obtained through desktop icon windows and provide this operation information to the window of the target application. The operation information acquisition module is used to provide the operation information obtained through the desktop icon window to the window of the target application through the message hook, so that at least one of the desktop icon window and the window of the target application can perform the corresponding operation based on the operation information.

[0125] As an optional embodiment of this application, when the search module searches for workspace windows other than the first workspace window in the created workspace windows of the terminal's operating system, it is specifically used for: Get all created top-level windows, and find the workspace window among all created top-level windows based on the window class name of the workspace window; For any workspace window found, determine whether the workspace window is a workspace window other than the first workspace window based on the window class name of the desktop icon window.

[0126] As an optional embodiment of this application, the device further includes: The exit module is used to obtain the operating system's desktop window in response to the operation of changing the display mode of the target application to non-wallpaper mode, where the desktop window is the lowest level window in the operating system. Unregister the message hook in the operating system; Set the desktop window as the parent window of the target application; Refresh the terminal's display so that the target application's interface is displayed as a window.

[0127] As an optional embodiment of this application, the determining module is further configured to determine the window of the target application and the desktop window of the operating system when a startup instruction of the target application is received and the display mode of the target application is non-wallpaper mode, wherein the desktop window is the lowest level window of the operating system. Set this desktop window as the management window for the target application's windows; Refresh the terminal's display so that the target application's interface is displayed as a window.

[0128] This application provides an electronic device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of the application processing method. Compared with related technologies, it can achieve the following: it provides two situations in which the application interface of the target application can be displayed as a wallpaper. One situation is when the target application launch command is received and the display mode of the target application is wallpaper mode. The other situation is when the target application has been launched and an operation to change the display mode to wallpaper mode is received. When either of these two situations exists, the application interface of the target application can be displayed as a wallpaper through subsequent operations, and the wallpaper display of the application interface is highly flexible.

[0129] The method finds a target workspace window by searching for any existing workspace window in the terminal's operating system other than the first workspace window. If no other workspace window exists besides the first workspace window, it creates a new workspace window as the target workspace window to ensure successful acquisition of the target workspace window. By setting the target workspace window as the management window of the target application, and based on the operating system's window stacking rules, the application interface is refreshed to display the target application's interface as wallpaper, increasing desktop interactivity and visual effects. Furthermore, this method is based on the hierarchical relationship between windows in the operating system, does not rely on third-party applications, is simple to operate, and is highly efficient at setting the application's interface as wallpaper.

[0130] In one alternative embodiment, an electronic device is provided, such as Figure 14 As shown, Figure 14 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this application.

[0131] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0132] Bus 4002 may include a pathway for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0133] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0134] The memory 4003 is used to store computer programs that execute the embodiments of this application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.

[0135] Among them, electronic devices may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 14 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0136] This application provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program can implement the steps and corresponding content of the aforementioned method embodiments. Compared with the prior art, it provides two scenarios where the application interface of a target application can be displayed as a wallpaper: one is when a launch command for the target application is received and the target application's display mode is wallpaper mode; the other is when the target application is already launched and an operation to change the display mode to wallpaper mode is received. In either of these scenarios, subsequent operations can display the application interface of the target application as a wallpaper, providing high flexibility in wallpapering the application interface.

[0137] The method finds a target workspace window by searching for any existing workspace window in the terminal's operating system other than the first workspace window. If no other workspace window exists besides the first workspace window, it creates a new workspace window as the target workspace window to ensure successful acquisition of the target workspace window. By setting the target workspace window as the management window of the target application, and based on the operating system's window stacking rules, the application interface is refreshed to display the target application's interface as wallpaper, increasing desktop interactivity and visual effects. Furthermore, this method is based on the hierarchical relationship between windows in the operating system, does not rely on third-party applications, is simple to operate, and is highly efficient at setting the application's interface as wallpaper.

[0138] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium, a computer-readable medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0139] This application also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments. Compared with the prior art, it can achieve the following: it provides two scenarios in which the application interface of a target application can be displayed as a wallpaper. One scenario is when a launch command for the target application is received and the display mode of the target application is in wallpaper mode; the other scenario is when the target application is already launched and an operation to change the display mode to wallpaper mode is received. In either of these scenarios, the application interface of the target application can be displayed as a wallpaper through subsequent operations, providing high flexibility in wallpapering the application interface.

[0140] The method finds a target workspace window by searching for any existing workspace window in the terminal's operating system other than the first workspace window. If no other workspace window exists besides the first workspace window, it creates a new workspace window as the target workspace window to ensure successful acquisition of the target workspace window. By setting the target workspace window as the management window of the target application, and based on the operating system's window stacking rules, the application interface is refreshed to display the target application's interface as wallpaper, increasing desktop interactivity and visual effects. Furthermore, this method is based on the hierarchical relationship between windows in the operating system, does not rely on third-party applications, is simple to operate, and is highly efficient at setting the application's interface as wallpaper.

[0141] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the illustrations or text descriptions.

[0142] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0143] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.

Claims

1. A processing method of an application, characterized by, Executed by the terminal, including: When a launch command for a target application is received and the target application is in wallpaper mode, or when a modification command to change the display mode of the target application from non-wallpaper mode to wallpaper mode is received while the target application has been launched, the system searches for workspace windows other than the first workspace window in the workspace windows created by the operating system of the terminal. The first workspace window is the workspace window corresponding to the desktop icon window of the terminal. If any workspace window other than the first workspace window is found, then that workspace window is taken as the target workspace window. If no workspace window other than the first workspace window is found, a new workspace window is created and used as the target workspace window. Determine the window of the target application and set the target workspace window as the management window of the target application window; The terminal's display interface is refreshed so that the target application's interface is displayed as wallpaper.

2. The method of claim 1, wherein, The step of setting the target workspace window as the management window of the target application includes: Set the target workspace window as the parent window of the target application window; or Create a host window, set the target workspace window as the parent window of the host window, and set the host window as the parent window of the target application window; The method further includes: Upon receiving a modification instruction to change the display mode of the target application from wallpaper mode to non-wallpaper mode, the host window is destroyed.

3. The method of claim 2, wherein, The step of setting the target workspace window as the management window of the target application further includes: Record the style and position of the target application's window, and set the style of the target application's window to a preset style; Determine the size of the terminal's display interface, and set the window size of the associated window to the size of the terminal's display interface; The method further includes: Upon receiving a modification instruction to change the display mode of the target application from wallpaper mode to non-wallpaper mode, the style and position of the target application's window are restored to the recorded style and position of the target application's window. When the target workspace window is set as the parent window of the target application window, the associated windows include the target workspace window and the target application window; when the target workspace window is set as the parent window of the host window and the host window is set as the parent window of the target application window, the associated windows include the target workspace window, the target application window, and the host window.

4. The method of claim 1, wherein, The window for determining the target application includes: Get all created top-level windows; If the startup command or the modification command includes a target handle, the window whose window handle is the target handle among all the created top-level windows is identified as the window of the target application, and the target handle is the window handle of the window of the target application. If the target handle is not included in the startup or modification command, the target class name is determined, and the window whose window class name is the target class name among all the created top-level windows is determined as the window of the target application, where the target class name is the window class name of the window of the target application.

5. The method according to any one of claims 1 to 4, characterized in that, The step of setting the target workspace window as the management window of the target application window further includes: Register a message hook in the operating system. The message hook is used to obtain operation information obtained through the desktop icon window and provide the operation information to the window of the target application. The process of refreshing the display interface of the terminal further includes: When operation information obtained through the desktop icon window is obtained through the message hook, the operation information is provided to the window of the target application through the message hook, so that at least one of the desktop icon window and the window of the target application can perform a corresponding operation based on the operation information.

6. The method of claim 1, wherein, The process of searching for workspace windows other than the first workspace window in the operating system's created workspace windows of the terminal includes: Get all created top-level windows, and find the workspace window among all created top-level windows based on the window class name of the workspace window; For any workspace window found, determine whether the workspace window is a workspace window other than the first workspace window based on the window class name of the desktop icon window.

7. The method of claim 5, wherein, The process of refreshing the display interface of the terminal further includes: Receive a modification instruction to change the display mode of the target application from wallpaper mode to non-wallpaper mode; Obtain the desktop window of the operating system, wherein the desktop window is the lowest level window of the operating system; Unregister the message hook in the operating system; Set the desktop window as the parent window of the target application window; The terminal's display interface is refreshed so that the target application's interface is displayed as a window.

8. The method of claim 1, wherein, When a launch command for a target application is received and the target application is in a non-wallpaper mode, the method includes: Identify the target application's window and the operating system's desktop window, wherein the desktop window is the lowest-level window in the operating system; Set the desktop window as the management window for the target application's windows; The terminal's display interface is refreshed so that the target application's interface is displayed as a window.

9. A processing device of an application, characterized by, The device is applied to a terminal and includes: The search module is used to search for workspace windows other than the first workspace window in the workingspace windows created by the terminal's operating system when it receives a launch instruction for the target application and the display mode of the target application is wallpaper mode, or when it receives a modification instruction to change the display mode of the target application from non-wallpaper mode to wallpaper mode after the target application has been launched. The first workspace window is the workspace window corresponding to the desktop icon window of the terminal. The acquisition module is used to, if any workspace window other than the first workspace window is found, take that workspace window as the target workspace window; if no workspace window other than the first workspace window is found, create a new workspace window and take the newly created workspace window as the target workspace window. The determination module is used to determine the window of the target application and set the target workspace window as the management window of the target application window; The display module is used to refresh the display interface of the terminal so that the application interface of the target application in the display interface is displayed as wallpaper.

10. An electronic device comprising a memory, a processor, and a computer program stored on the memory, wherein the computer program, when executed by the processor, is arranged to perform the method of any one of claims 1 to 9. The processor executes the computer program to implement the steps of the method according to any one of claims 1-8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-8.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-8.