Form identification method and device, medium and electronic equipment

CN115756602BActive Publication Date: 2026-09-08HANGZHOU NETEASE ZHIQI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211461037.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-17
Publication Date
2026-09-08
Estimated Expiration
2042-11-17

AI Technical Summary

Technical Problem

然而,相关的窗体标识方式仅能适配部分操作系统,且创建的窗体标识在销毁之前窗体属性值通常无法发生变化

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756602B_ABST
    Figure CN115756602B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a window identification method, device, medium and electronic equipment, relating to the technical field of computer. The method comprises: obtaining a system parameter corresponding to a target window; creating an associated window of the target window according to the system parameter; the associated window comprises an associated window identifier; detecting a target window state of the target window; and adjusting a window display state of the associated window and an identifier display state of the associated window identifier according to the target window state, to identify the target window. The window identification scheme of the present disclosure can be adapted to various different types of operating systems, and dynamically adjusts the window display state of the associated window when the target window state changes, which can adapt to the actual use scenario of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this disclosure relate to the field of computer technology, and more specifically, to a form identification method, a form identification device, a computer-readable storage medium, and an electronic device. Background Technology

[0002] This section is intended to provide background or context for the embodiments of this disclosure as set forth in the claims. The description herein is not intended to be a prior art simply because it is included in this section.

[0003] A Forms application is a client application that runs on a user's computer and can display information, request user input, and communicate with remote computers over a network. Users can interact with application forms provided by the operating system. In some form-sharing scenarios, users may need to add form identifiers to application forms to help other users accurately locate the target application form among multiple application forms.

[0004] For example, a user can add a transparent layer on top of a form and draw logos on it. Typically, the common practice for drawing logos is to create a transparent layer of the same size as the desktop or full-screen window, and then draw logos on top of this transparent layer. However, this method of drawing form logos is only compatible with some operating systems, and the form's property values ​​usually cannot be changed until the created form logos are destroyed. Summary of the Invention

[0005] However, the solution of adding a transparent layer to the form and drawing an icon to identify the application form has the problem that some operating systems do not support the above solution, and the solution cannot adapt to the user's actual usage scenario.

[0006] To this end, this disclosure proposes an improved form identification method so that the form identification scheme of this disclosure can be adapted to various types of operating systems, and can dynamically adjust the form display state of associated forms when the state of the target form changes, thereby achieving the effect of adapting to the actual user scenario.

[0007] In this context, embodiments of the present disclosure are intended to provide a form identification method, a form identification device, a computer-readable storage medium, and an electronic device.

[0008] In a first aspect of this disclosure, a window identification method is provided, comprising: obtaining system parameters corresponding to a target window; creating an associated window of the target window based on the system parameters; the associated window including an associated window identifier; detecting the target window state of the target window; and adjusting the window display state of the associated window and the identifier display state of the associated window identifier based on the target window state to identify the target window.

[0009] In one embodiment of this disclosure, creating an associated form of the target form based on the system parameters includes: obtaining the logical call interface of the target form; determining the target call implementation logic matching the target form based on the system parameters and the logical call interface; and creating the associated form based on the target call implementation logic.

[0010] In one embodiment of this disclosure, the logical call interface is generated through the following steps: determining the system parameter set corresponding to the target window; the system parameter set includes system parameters corresponding to multiple different types of operating systems; configuring the call implementation logic of the target window under each of the multiple system parameters; encapsulating the multiple call implementation logics to generate the logical call interface of the target window; the logical call interface is used to determine the target call implementation logic of the associated window based on the system parameters.

[0011] In one embodiment of this disclosure, the invocation implementation logic includes any one or more combinations of window existence detection logic, window display logic, window Z-order acquisition logic, window parameter acquisition logic, and window parameter configuration logic.

[0012] In one embodiment of this disclosure, creating the associated window according to the target call implementation logic includes: obtaining target window information corresponding to the target window; the target window information is obtained based on the window parameter acquisition logic; creating an initial associated window according to the target window information and the target call implementation logic; the target window information includes target window coordinates, target window size, and target window Z-order; receiving an identifier configuration operation for the initial associated window to obtain a corresponding associated window identifier value; and generating the associated window according to the initial associated window and the associated window identifier value.

[0013] In one embodiment of this disclosure, the size and coordinates of the associated window of the associated window are the same as the size and coordinates of the target window of the target window; and the Z-order of the associated window of the associated window is the same as or adjacent to the Z-order of the target window of the target window; the Z-order of the target window is obtained based on the window Z-order acquisition logic.

[0014] In one embodiment of this disclosure, adjusting the window display state of the associated window and the identifier display state of the associated window identifier according to the state of the target window includes: in response to the target window being visible, displaying the associated window and the associated window identifier based on the window display logic and the current display parameters of the target window; in response to the target window being hidden, detecting the window presence state of the target window based on the window presence detection logic, and determining the window display state of the associated window and the identifier display state of the associated window identifier based on the window presence state.

[0015] In one embodiment of this disclosure, displaying the associated window and the associated window identifier based on the window display logic and the current display parameters of the target window includes: obtaining the current display parameters of the target window and determining a parameter update time interval for the current display parameters; updating the associated window parameters of the associated window based on the current display parameters in response to the parameter update time interval being less than a preset time interval; and adjusting the visibility state of the associated window and the visibility state of the associated window identifier according to the associated window parameters.

[0016] In one embodiment of this disclosure, determining the window display state of the associated window and the identifier display state of the associated window identifier based on the window's existence state includes: in response to the window's existence state being unloaded, destroying the associated window and the associated window identifier; in response to the window's existence state being loaded and hidden, configuring both the window display state and the identifier display state to a hidden state.

[0017] In one embodiment of this disclosure, the method further includes: in response to a shared start command of the target window, sharing the target window corresponding to the first operating system to at least one second operating system; displaying the associated window and the associated window identifier according to the target window status; in response to a shared end command of the target window, stopping the detection of the target window status of the target window; and unloading the associated window and the associated window identifier from the first operating system.

[0018] In one embodiment of this disclosure, the method further includes: in response to a size coordinate change instruction of the target window, determining updated target window information of the target window; and adjusting the associated window coordinates and / or associated window size of the associated window according to the window parameter configuration logic and the updated target window information.

[0019] In one embodiment of this disclosure, the method further includes: in response to the form Z-order adjustment instruction of the associated form, adjusting the associated form Z-order of the associated form to below the target form Z-order of the target form based on the form parameter configuration logic.

[0020] In a second aspect of this disclosure, a window identification device is provided, comprising: a system parameter determination module for obtaining system parameters corresponding to a target window; an associated window creation module for creating an associated window of the target window based on the system parameters; the associated window including an associated window identifier; a window state detection module for detecting the target window state of the target window; and a window identification module for adjusting the window display state of the associated window and the identifier display state of the associated window identifier based on the target window state to identify the target window.

[0021] In one embodiment of this disclosure, the associated form creation module includes an associated form creation unit, configured to: obtain the logical call interface of the target form; determine the target call implementation logic matching the target form based on the system parameters and the logical call interface; and create the associated form according to the target call implementation logic.

[0022] In one embodiment of this disclosure, the window identification device includes a logic interface generation module, configured to: determine a set of system parameters corresponding to the target window; the set of system parameters includes system parameters corresponding to multiple different types of operating systems; configure the calling implementation logic of the target window under each of the multiple system parameters; encapsulate the multiple calling implementation logics to generate a logic calling interface for the target window; the logic calling interface is used to determine the target calling implementation logic of the associated window based on the system parameters.

[0023] In one embodiment of this disclosure, the associated window creation unit includes an associated window creation subunit, configured to: obtain target window information corresponding to the target window; obtain the target window information based on the window parameter acquisition logic; create an initial associated window according to the target window information and the target call implementation logic; the target window information includes target window coordinates, target window size, and target window Z-order; receive an identifier configuration operation for the initial associated window to obtain a corresponding associated window identifier value; and generate the associated window according to the initial associated window and the associated window identifier value.

[0024] In one embodiment of this disclosure, the associated window creation subunit is configured to perform: configuring the associated window size, associated window coordinates, and associated window Z-order of the associated window, wherein the associated window size and associated window coordinates of the associated window are the same as the target window size and target window coordinates of the target window; and the associated window Z-order of the associated window is the same as or adjacent to the target window Z-order of the target window; wherein the target window Z-order is obtained based on the window Z-order acquisition logic.

[0025] In one embodiment of this disclosure, the window identification module includes a window display unit, configured to: in response to the target window being in a visible state, display the associated window and the associated window identifier based on the window display logic and the current display parameters of the target window; in response to the target window being in a hidden state, detect the window existence state of the target window based on the window existence detection logic, and determine the window display state of the associated window and the identifier display state of the associated window identifier based on the window existence state.

[0026] In one embodiment of this disclosure, the window display unit includes a first display subunit, configured to: acquire the current display parameters of the target window, determine the parameter update time interval of the current display parameters; in response to the parameter update time interval being less than a preset time interval, update the associated window parameters of the associated window based on the current display parameters; and adjust the visibility state of the associated window and the visibility state of the associated window identifier according to the associated window parameters.

[0027] In one embodiment of this disclosure, the window display unit includes a second display subunit, configured to: destroy the associated window and the associated window identifier in response to the window existence state being an unloaded state; and configure both the window display state and the identifier display state to a hidden state in response to the window existence state being a loaded hidden state.

[0028] In one embodiment of this disclosure, the window identification device further includes a window sharing module, configured to: in response to a sharing start command of the target window, share the target window corresponding to the first operating system to at least one second operating system; display the associated window and the associated window identifier according to the target window status; in response to a sharing end command of the target window, stop detecting the target window status of the target window; and unload the associated window and the associated window identifier from the first operating system.

[0029] In one embodiment of this disclosure, the window identification device further includes a coordinate size adjustment module, configured to: determine the updated target window information of the target window in response to the size coordinate change instruction of the target window; and adjust the associated window coordinates and / or associated window size of the associated window according to the window parameter configuration logic and the updated target window information.

[0030] In one embodiment of this disclosure, the window identification device further includes a window Z-order adjustment module, configured to: in response to the window Z-order adjustment instruction of the associated window, adjust the associated window Z-order of the associated window to below the target window Z-order of the target window based on the window parameter configuration logic.

[0031] In a third aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the window identification method as described above.

[0032] In a fourth aspect of this disclosure, an electronic device is provided, comprising: a processor; and a memory storing computer-readable instructions that, when executed by the processor, implement the window identification method as described above.

[0033] According to the technical solution of this disclosure, on the one hand, a related window is created based on the system parameters of the target window, so that the created related window can be adapted to various types of operating systems. On the other hand, when a change in the state of the target window is detected, the window display state and the icon display state of the related window can be dynamically adjusted according to the state of the target window to adapt to the user's actual usage scenario. Attached Figure Description

[0034] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which:

[0035] Figure 1 A schematic block diagram illustrating the system architecture of an exemplary application scenario according to some embodiments of this disclosure is shown.

[0036] Figure 2 A schematic flowchart of a form identification method according to some embodiments of the present disclosure is shown;

[0037] Figure 3 A schematic flowchart illustrating the creation and identification of an associated form according to some embodiments of the present disclosure is shown.

[0038] Figure 4 A schematic diagram illustrating the selection of a target window and the creation of an associated window corresponding to the target window according to some embodiments of the present disclosure is shown.

[0039] Figure 5 A schematic diagram illustrating the identification of associated windows according to some embodiments of the present disclosure is shown;

[0040] Figure 6 A schematic diagram illustrating the adjustment of the display state and display identifier of an associated window according to some embodiments of the present disclosure is shown.

[0041] Figure 7 A schematic block diagram of a window identification device according to some embodiments of the present disclosure is shown;

[0042] Figure 8 A schematic diagram of a storage medium according to an example embodiment of the present disclosure is shown; and

[0043] Figure 9 A block diagram of an electronic device according to an example embodiment of the invention is shown schematically.

[0044] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts. Detailed Implementation

[0045] The principles and spirit of this disclosure will now be described with reference to several exemplary embodiments. It should be understood that these embodiments are given merely to enable those skilled in the art to better understand and implement this disclosure, and are not intended to limit the scope of this disclosure in any way. Rather, these embodiments are provided to make this disclosure more thorough and complete, and to fully convey the scope of this disclosure to those skilled in the art.

[0046] Those skilled in the art will recognize that embodiments of this disclosure can be implemented as a system, apparatus, device, method, or computer program product. Therefore, this disclosure can be specifically implemented in the following forms: entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0047] According to embodiments of this disclosure, a window identification method, a window identification device, a medium, and an electronic device are proposed.

[0048] In this article, it is important to understand that the terms used, such as application window, can refer to an application window in the operating system or the desktop. Furthermore, the number of any elements in the accompanying drawings is for illustrative purposes only and not as a limitation, and any naming is for distinction only and has no limiting meaning.

[0049] The principles and spirit of this disclosure will be explained in detail below with reference to several representative embodiments. Invention Overview

[0051] In client applications, application windows are typically provided to facilitate user interaction. In some window-sharing scenarios, users may need to add window identifiers to the application windows to help other users accurately locate the target application window among multiple application windows.

[0052] For example, a user can add a transparent layer on top of a window and draw logos on it. Typically, the common practice for drawing logos is to create a transparent layer of the same size as the desktop or full-screen window, and then draw logos on this transparent layer.

[0053] However, the relevant form identifier schemes are only compatible with certain operating systems. For example, in the Windows family, only some Windows versions currently support this scheme; macOS and other systems do not support it. For applications that need to be cross-platform, separate development is required for unsupported systems, resulting in additional costs. Furthermore, in operating systems that do support form identifiers, the parameters are relatively fixed; identifier colors and styles cannot be customized, lacking customization capabilities.

[0054] In addition, in operating systems that support this solution, the desktop is usually identified by adding a transparent layer on top of the window. Even when identifying a window, it is for a full-screen window (similar to the desktop). This method is relatively fixed and cannot adapt to the user's actual usage scenarios, such as adjusting the desktop resolution or moving the window, and cannot well meet the needs of various usage environments.

[0055] Based on the above, the basic idea of ​​this disclosure is to obtain the system parameters corresponding to the target window; create an associated window based on the system parameters; the associated window contains an associated window identifier; detect the target window state; and adjust the window display state of the associated window and the identifier display state of the associated window based on the target window state to identify the target window. This window identification scheme can adapt to various operating systems and can dynamically adjust the window display state of the associated window when the target window state changes, achieving an adaptive effect to the user's actual usage scenario.

[0056] After introducing the basic principles of this disclosure, various non-limiting embodiments of this disclosure will be described in detail below.

[0057] Application Scenarios Overview

[0058] First refer to Figure 1 , Figure 1 A schematic block diagram of a system architecture for an exemplary application scenario of a window identification method and apparatus according to embodiments of the present disclosure is shown.

[0059] like Figure 1 As shown, system architecture 100 may include one or more of terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables. Terminal devices 101, 102, and 103 may be various electronic devices with displays, including but not limited to desktop computers, laptops, smartphones, and tablets. It should be understood that... Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included. For example, server 105 could be a server cluster composed of multiple servers.

[0060] The window identification method provided in this embodiment is generally executed by server 105, and correspondingly, the window identification device is generally set in server 105. However, those skilled in the art will readily understand that the window identification method provided in this embodiment can also be executed by terminal devices 101, 102, and 103, and correspondingly, the window identification device can also be set in terminal devices 101, 102, and 103. This exemplary embodiment does not impose any special limitations on this. For example, in one exemplary embodiment, an employee can configure the window parameters of the associated window through the target window displayed in terminal devices 101, 102, and 103, upload the associated window parameters to server 105, and the server can create associated windows and associated window identifiers according to the associated window parameters using the window identification method provided in this embodiment. The server then transmits the created associated windows and associated window identifiers to terminal devices 101, 102, and 103 so that terminal devices 101, 102, and 103 can display the created associated windows and associated window identifiers to the user.

[0061] It should be understood that, Figure 1 The application scenario shown is merely one example in which embodiments of this disclosure can be implemented. The scope of application of the embodiments of this disclosure is not limited to this application scenario in any way.

[0062] Exemplary methods

[0063] The following is combined with Figure 1 Application scenarios, refer to Figure 2This document describes a form identification method according to exemplary embodiments of the present disclosure. It should be noted that the above application scenarios are shown only to facilitate understanding of the spirit and principles of the present disclosure, and the embodiments of the present disclosure are not limited in any way. Rather, the embodiments of the present disclosure can be applied to any applicable scenario.

[0064] This disclosure first provides a method for identifying a form. The subject executing this method can be a terminal device or a server. This disclosure does not make any special limitations on this. In this example embodiment, the method is executed by a server as an example for illustration.

[0065] Reference Figure 2 As shown, the form identification method may include the following steps S210 to S240:

[0066] Step S210: Obtain the system parameters corresponding to the target window.

[0067] In some example embodiments of this disclosure, the target window may be an application window existing in the operating system display interface. System parameters may be relevant parameters of the operating system corresponding to the target window.

[0068] The target display interface provided by the operating system can display one or more application windows. In this embodiment, we will take a certain application window (i.e., the target window) in the target display interface as an example. For the target window in the target display interface, we can first obtain the system parameters corresponding to the target window. For example, the system parameters may include the specific type and version number of the operating system on which the target window is located.

[0069] Step S220: Create a related form for the target form based on system parameters; the related form contains a related form identifier.

[0070] In some example embodiments of this disclosure, the associated form can be a newly created form used to identify the target form. The associated form identifier can be a symbolic mark used to identify the associated form.

[0071] After obtaining the system parameters, the system logic can be generated by calling the relevant forms that match the system parameters. The determined calling logic then creates an associated form corresponding to the target form. For example, an associated form can be a form with the same form position coordinates, form size, etc., as the target form. Furthermore, the associated form can be displayed in the target display interface using a specific display state. After creating the associated form of the target form, an associated form identifier can be generated. For example, the associated form identifier can use lines of specific thickness and border colors to identify the generated associated form.

[0072] Step S230: Detect the state of the target window.

[0073] In some example embodiments of this disclosure, the target window state can be the current state of the target window, including the current window position, current window size, and whether the current window still exists.

[0074] After generating the associated form and associated form identifier, the target form's state can be detected, such as whether the target form's position has moved, whether the target form's size has changed, and whether the target form has been destroyed, etc.

[0075] Step S240: Adjust the window display state of the associated window and the identifier display state of the associated window according to the state of the target window to identify the target window.

[0076] In some example embodiments of this disclosure, the window display state can be the specific display state of the associated window on the target interface. The identifier display state can be the specific state of the display identifier used to identify the associated window.

[0077] When the target window's state is detected, the display states of associated windows and their identifiers can be adjusted accordingly. For example, when the target window moves from position A to position B on the target display interface, the positions of associated windows on the target display interface can be simultaneously adjusted from position A to position B. Similarly, when the target window's size changes, the sizes of associated windows can be adjusted synchronously.

[0078] Since the associated window can be a display window with a certain degree of transparency, the associated window's identifier can move and change synchronously with the associated window. Through the above adjustment operations, the display state of the associated window and the target window can be kept relatively consistent, so that the target window can be identified based on the synchronously adjusted associated window identifier.

[0079] The window identification method provided in this example implementation has two aspects. First, it creates associated windows for the target window based on the system parameters of the target window, enabling the created associated windows to adapt to various operating systems. Second, when a change in the state of the target window is detected, the window display state and identifier display state of the associated windows can be dynamically adjusted according to the target window state to adapt to the user's actual usage scenario.

[0080] The steps described above in this example implementation will now be explained in more detail.

[0081] In one embodiment of this disclosure, step S220, creating an associated form of the target form based on system parameters, includes: obtaining the logical call interface of the target form; determining the target call implementation logic that matches the target form based on the system parameters and the logical call interface; and creating an associated form based on the target call implementation logic.

[0082] The logic call interface can be an interactive interface used to invoke the target implementation logic for creating the target form. The target implementation logic can be the specific implementation logic that needs to be invoked during the creation of the target form. For example, when creating the target form, the implementation logic for creating the form needs to be invoked; when adjusting the form's position coordinates and size, the logic for obtaining form parameters and the logic for configuring form parameters need to be invoked, and so on.

[0083] refer to Figure 3 , Figure 3 A schematic flowchart illustrating the creation and identification of an associated form according to some embodiments of the present disclosure is shown. In step S301, a form is selected. Specifically, refer to... Figure 4 , Figure 4 This diagram schematically illustrates the selection of a target window and the creation of a corresponding associated window according to some embodiments of the present disclosure. From Figure 4 As can be seen, the display interface can include one or more applications 410 and application forms 420, etc. Before creating the associated form, a specific content can be selected from the display interface as the target form. For example, a shortcut to application 410 or application form 420 itself can be selected as the target form. Figure 4 The user will use application form 420 as the target form.

[0084] Before identifying the form, the target form can be determined first. In step S302, the associated form is created. The creation process of the associated form can be performed through the following steps: Before creating the associated form of the target form, the logic call interface used to generate the form can be obtained first. The target implementation logic for form generation can be called and executed through the logic call interface. After obtaining the system parameters of the target form, the target call implementation logic matching the target form can be determined based on the system parameters through the logic call interface. The target call implementation logic may include form initialization call logic, form parameter acquisition logic, and form parameter configuration logic, etc.

[0085] Based on the obtained target call implementation logic, an associated form corresponding to the target form can be generated. Since the associated form can contain a corresponding associated form identifier, the target form can be identified based on the associated form identifier of the associated form.

[0086] In one embodiment of this disclosure, the logical call interface is generated through the following steps: determining the system parameter set corresponding to the target window; the system parameter set includes system parameters corresponding to multiple different types of operating systems; configuring the call implementation logic of the target window under each operating system based on the multiple system parameters; encapsulating the multiple call implementation logics to generate the logical call interface of the target window; the logical call interface is used to determine the target call implementation logic of the associated window based on the system parameters.

[0087] The system parameter set can be a collection of coefficient parameters corresponding to various types of operation coefficients adapted to the target form. The invocation implementation logic can be the relevant implementation logic used to create the associated forms corresponding to the target form. The encapsulation process can be the process of encapsulating multiple different invocation implementation logics to form a unified logic invocation interface.

[0088] Because there are many types of operating systems, to ensure that the associated windows of the created target window can be used across operating systems, the system parameters of the operating systems that the target window can adapt to should be determined first. For example, the target window can be classified into various operating systems, such as Windows, UNIX, Linux, macOS, and embedded operating systems (e.g., Symbian OS). Furthermore, the same type of operating system can be divided into multiple different system versions; for example, Windows can include Windows 7, Windows 8, and Windows 10, among others.

[0089] After identifying multiple operating system types, the corresponding system parameters for each type can be determined. For example, system parameters can be represented by the specific version number of the operating system. After determining these system parameters, the calling logic for the target window can be configured for each different operating system. For example, the calling logic for the target window under different operating systems may include window existence detection logic, window display logic, window Z-order acquisition logic, window parameter acquisition logic, and window parameter configuration logic, etc.

[0090] After determining the calling implementation logic of the target form under various operating systems, the same calling implementation logic under different operating systems can be encapsulated. For example, the form existence detection logic, form display logic, form Z-order acquisition logic, form parameter acquisition logic, and form parameter configuration logic under various operating systems can be uniformly encapsulated to form the logic calling interfaces corresponding to the various different implementation logics of the target form; then, the logic calling interfaces of all different implementation logics are encapsulated a second time to form a unified logic calling interface.

[0091] By encapsulating the call implementation logic, the target form can achieve uniformity in calling logic methods. In addition, by further encapsulating these operating system-related system application programming interfaces (APIs), the target form can use the APIs after secondary encapsulation of the APIs of various operating systems to make logical method calls throughout the entire specific implementation process from identification to completion. This solves the problem of cross-operating system form identification and makes the target form applicable to different operating systems.

[0092] For example, this disclosure provides a unified logic invocation method for a target window across different operating systems. Specifically, the invocation implementation logic includes any one or more combinations of window existence detection logic, window display logic, window Z-order acquisition logic, window parameter acquisition logic, and window parameter configuration logic.

[0093] The logic includes the following components: Window Existence Detection Logic (which checks if the target window currently exists); Window Display Logic (which determines the specific display state of the target window within the operating system); Window Z-Order Acquisition Logic (which determines the Z-order of a window within the operating system's display interface); Window Parameter Acquisition Logic (which retrieves the target window's position coordinates and size); and Window Parameter Configuration Logic (which configures the target window's position coordinates and size).

[0094] In the target window identification scheme, window existence detection logic can be configured to detect the existence of the window before window identification, thereby enabling subsequent operations. The window existence detection logic is specifically represented as: "bool isWindow(uint32_t winId)const;"; where "winId" can be the window handle (HWND) in Windows operating systems and the window number (kCGWindowNumber) in macOS systems.

[0095] If the target window is not currently displayed in the interface, there are two possibilities: either the target window has been closed but still exists in the background, or the target window is currently minimized. Specifically, the call implementation logic provides a solution for window display logic. One solution is to determine whether the window is minimized, expressed as: "bool isMinimized(uint32_t winId)const;"; where "winId" can be the window handle (HWND) in Windows and the window number (kCGWindowNumber) in macOS.

[0096] Another approach is to determine whether a window is hidden. The specific logic for determining whether a window is hidden is: "bool isHided(uint32_t winId)const;" where winId can be the window handle (HWND) in Windows and the window number (kCGWindowNumber) in macOS.

[0097] The Z-order of the target window in the display interface can be obtained through the window Z-order acquisition logic, which is specifically represented as "void setWindowZOrder(uint32_twinId1,uint32_t winId2)". Here, setting the window Z-order can represent the Z-order of window 1 (winId1) relative to window 2 (winId2). winId1 and winId2 can be window handles (HWND) under the Windows operating system, and can be window numbers (kCGWindowNumber) under the macOS system.

[0098] The position coordinates and size of the target window on the display interface can be obtained through the window parameter retrieval logic, specifically represented as "void getWindowRect(uint32_t winId,int&x,int&y,int&width,int&height);". Here, winId can be the window handle (HWND) in Windows and the window number (kCGWindowNumber) in macOS; x and y represent the position coordinates of the lower left corner of the window; and width and height represent the width and height of the window, respectively.

[0099] In addition, users can configure the target window's position coordinates and size on the display interface themselves, through window parameter configuration logic, specifically expressed as "void setWindowRect(uint32_t winId,int x,int y,int width,int height);"; where winId can be the window handle (HWND) in Windows operating system and the window number (kCGWindowNumber) in macOS system; x and y can represent the position coordinates of the lower left corner of the window; width and height can represent the width and height of the window respectively.

[0100] By pre-configuring various call implementation logics for the target form and encapsulating these logics in a unified manner, a unified call interface can be exposed to the caller. Subsequently, the caller can directly call and execute various implementation schemes of the target form through the unified call interface.

[0101] In one embodiment of this disclosure, creating an associated window based on the target call implementation logic includes: obtaining target window information corresponding to the target window; obtaining the target window information based on window parameter acquisition logic; creating an initial associated window based on the target window information and the target call implementation logic; the target window information includes target window coordinates, target window size, and target window Z-order; receiving an identifier configuration operation for the initial associated window to obtain the corresponding associated window identifier value; and generating an associated window based on the initial associated window and the associated window identifier value.

[0102] The target window information can be specific parameter information of the target window, such as its position coordinates, size, and Z-order. The initial associated window can be a window created based on the target window information and the target call implementation logic, associated with the target window. The target window coordinates can be the position coordinates of the target window on the display interface. The target window size can be the specific dimensions of the target window on the display interface, such as its length and width. The target window Z-order can be the Z-order of the target window on the display interface. The identifier configuration operation can be the specific operation for configuring the window identifier of the associated window. The associated window identifier value can be the specific value of the associated window identifier, which can include information such as the associated window identifier's color, size, shape, and display position.

[0103] Upon receiving a related form creation instruction, a related form corresponding to the target form can be created based on the instruction. Before creating the related form, the target form information can be obtained based on the form parameter retrieval logic. This target form information may include the target form's display position coordinates in the display interface, its size, Z-order, and other display parameters. After obtaining the target form information, the target call implementation logic corresponding to the creation of the related form can be retrieved. For example, before creating the related form, the associated form parameter information and the Z-order of the related form can be configured. The corresponding target call implementation logic can be determined based on the form implementation scheme to be called.

[0104] After obtaining the target form information and the target call implementation logic, an initial associated form can be created based on the target form information and the target call implementation logic. The position coordinates, form size, and form Z-order of the initial associated form can be the same as the target form. Furthermore, the initial associated form does not contain an associated form identifier.

[0105] Continue to refer to Figure 3 In step S303, a custom identifier is drawn. To identify the target window, after creating the initial associated window, an associated window identifier can be added to the initial associated window. By configuring the identifier of the initial associated window, the window identifier value of the initial associated window can be configured according to the window parameter value of the target window. For example, the color, border line, or other shape of the associated window identifier value can be customized, and its position can also be customized, such as drawing green line frames on the four sides of the window.

[0106] refer to Figure 5 , Figure 5 A schematic diagram illustrating the identification of associated windows according to some embodiments of the present disclosure is shown. When a target window is determined, associated windows can be drawn based on the target window. Figure 5 The associated window can be a transparent window 510, and corresponding values ​​can be configured for the associated window's identifier. For example, the border of the associated window can be configured to a line with a specific thickness or color. An associated window corresponding to the target window is generated based on the initial associated window and its identifier value, thus identifying the target window through the generated associated window.

[0107] In one embodiment of this disclosure, the size and coordinates of the associated window of the associated window are the same as the size and coordinates of the target window of the target window; and the Z-order of the associated window of the associated window is the same as or adjacent to the Z-order of the target window of the target window; the Z-order of the target window is obtained based on the window Z-order acquisition logic.

[0108] Among them, the size of the associated form can be the dimensions of the associated form. The coordinates of the associated form can be the position coordinates of the associated form. The Z-order of the associated form can be the Z-order of the associated form in the display interface.

[0109] When creating a linked form, you can first configure parameters such as the linked form's size, coordinates, and Z-order. For example, you can configure the linked form's size and coordinates to be the same as the target form's size and coordinates. The linked form's Z-order can be configured to be the same as or adjacent to the target form's Z-order. For instance, when the linked form's Z-order is adjacent to the target form's Z-order, the linked form's Z-order is above the target form's Z-order. This means that in the display interface, the linked form's display layer remains above the target form's display layer, allowing the target form to be identified based on the generated linked form. Additionally, when the Z-order of the associated form is the same as that of the target form, the associated form and the target form can be tiled and displayed in the display interface. In order to identify the target form using the associated form, when determining the parameter values ​​of the associated form, the display position of the border of the associated form can be determined based on the position coordinates of the target form, and the display size of the border of the associated form can be determined based on the size of the target form, so as to identify the target form in the display interface based on the associated form identification value.

[0110] Additionally, to identify the target window, the transparency of the associated window can be configured. For example, a transparent window can be created as the associated window, or the transparency value of the associated window can be configured to a specific value to suit the user's browsing needs. Configuring the relevant window parameters of the associated window based on the target window's window parameter values ​​allows the created associated window to better adapt to the target window.

[0111] In one embodiment of this disclosure, adjusting the window display state of an associated window and the identifier display state of an associated window based on the state of the target window includes: in response to the target window being visible, displaying the associated window and the associated window identifier based on window display logic and the current display parameters of the target window; in response to the target window being hidden, detecting the window presence state of the target window based on window presence detection logic, and determining the window display state of the associated window and the identifier display state of the associated window based on the window presence state.

[0112] The target window state can be defined as the specific state in which the target window currently exists or is visible in the display interface. The visible state refers to whether the target window is displayed in the target interface. The current display parameters can be the specific parameters of the target window displayed in the display interface, which may include the target window's position coordinates and size. The hidden state refers to the state in which the target window still exists but is not displayed in the display interface. The window existence state refers to the state in which the target window exists in the operating system.

[0113] Continue to refer to Figure 3 In step S304, the existence of the window is detected. During the process of identifying the target window using associated windows, in some cases, the target window may be closed by the user due to their needs, at which point the target window will not exist. Therefore, during the process of identifying the target window using associated windows, the state of the target window can be detected in real time to determine whether the target window still exists on the display interface. For example, the current state of the target window can be detected by calling the isWindow() function to determine whether the target window still exists on the display interface. This detection can be triggered by a timer or a separate thread. The triggering interval can be configured according to actual needs, such as setting it to 50 milliseconds, or configuring it to 10 milliseconds, 30 milliseconds, etc., to achieve a smaller delay. Specifically, the target window state can include the state where the target window is unloaded, the state where the target window is hidden, and the state where the target window is visible, etc.

[0114] If the target window is detected to be currently visible, its current display parameters in the display interface can be obtained. Based on the obtained current display parameters and the window display logic, the associated window and its identifier are displayed in the display interface to identify the target window based on the associated window identifier.

[0115] Continue to refer to Figure 3 In step S305, it is detected whether the window is hidden, and the detection result is obtained. If the target window is not currently displayed in the interface, the window existence detection logic can be called to further detect the window existence status of the target window, and determine whether the target window is in an unloaded state or a hidden state. An unloaded state means that the target window has been removed from the current interface, and a hidden state means that the target window still exists in the background system, but is not displayed in the target interface. Based on the detected window existence status, the window display status of the associated windows and the display status of the associated window identifier are determined to keep the display status of the associated windows and the associated window identifier synchronized with the display status of the target window.

[0116] In one embodiment of this disclosure, displaying associated windows and associated window identifiers based on window display logic and the current display parameters of the target window includes: obtaining the current display parameters of the target window and determining the parameter update time interval of the current display parameters; updating the associated window parameters of the associated window based on the current display parameters in response to the parameter update time interval being less than a preset time interval; and adjusting the visibility state of the associated window and the visibility state of the associated window identifier according to the associated window parameters.

[0117] The parameter update time interval can be the time difference between the current displayed parameters of the target window and the most recent update time. Associated window parameters can be the specific parameters of the associated window, including its position coordinates and size. The visibility state of the associated window refers to whether it is visible in the display interface. The visibility state of the associated window identifier refers to whether its identifier is visible in the display interface.

[0118] Continue to refer to Figure 3 In step S306, the associated window is displayed. If the target window is still displayed on the display interface, in step S307, it is detected whether the window size and position have changed. For example, by obtaining the current display parameters of the target window, the parameter update time interval of the current display parameters is determined. For the target window, in order to facilitate obtaining the parameter update time interval of the current display parameters, the system can configure a timer for the current display parameters of the window after each parameter update to record the time interval between the last parameter update and the current time. After obtaining the parameter update time interval, the parameter update time interval can be compared with the preset time interval. Based on the comparison result, it is determined whether the current display parameter is the most recently updated display parameter. For example, if the parameter update time interval is 10 milliseconds and the preset time interval is 50 milliseconds, then the current display parameter is considered to be the latest display parameter of the target window.

[0119] To ensure that the currently displayed parameters are always up-to-date, the system can pre-configure a preset time interval. Every preset time interval, the system updates the parameter update time corresponding to the current display parameters of the target window, guaranteeing that the system obtains the latest current display parameters. If the parameter update time interval is less than the preset time interval, the system updates the parameters of the associated windows based on the current display parameters; and adjusts the visibility state of the associated windows and their identifiers according to the updated parameters, ensuring synchronized identification of the target window based on the associated windows and their identifiers.

[0120] In one embodiment of this disclosure, in response to a shared start command for the target window, the target window corresponding to the first operating system is shared to at least one second operating system; the associated window and associated window identifier are displayed according to the target window status; in response to a shared end command for the target window, the detection of the target window status of the target window is stopped; and the associated window and associated window identifier are unloaded from the first operating system.

[0121] The sharing start command can be a start command that shares the target window with other users. The first operating system can be the operating system that created the target window. The second operating system can be the operating system of the other users to whom the target window is shared. The sharing end command can be a command that terminates the operation of sharing the target window with other users.

[0122] In some application scenarios, User 1 can share a target window (e.g., window 1) displayed on its own client 1 to one or more other users' client 2 via window sharing. User 1 runs a first operating system, while the second operating system on User 2 can be the same as or different from the first operating system. Upon receiving a sharing command for the target window, the user responds by sharing the target window displayed on the first operating system to the second operating system. When sharing the target window to the second operating system, the associated window and its identifier can be displayed on the second operating system's display interface based on the target window's state.

[0123] Furthermore, if user 1 ends the window sharing operation for the target window, then in response to the target window sharing end command, the detection of the target window state is stopped, the associated window and associated window identifier displayed in the first operating system's display interface are unloaded, and the shared window is removed from the second operating system's display interface.

[0124] In some form-sharing scenarios, to ensure the sharer (User 1) clearly knows which form is being shared—for example, in online meeting systems or online teaching—when sharing a desktop remotely with others, specific forms on the desktop need to be identified. Similarly, when sharing content from software, the software form needs to be identified. If the sharer moves the software, the identifier should also move accordingly. Through this process, shared forms can be identified in real time, allowing the sharer to easily understand the content of the form they are sharing.

[0125] In one embodiment of this disclosure, in response to a size coordinate change instruction of the target window, the updated target window information of the target window is determined; and the associated window coordinates and / or associated window size of the associated window are adjusted according to the window parameter configuration logic and the updated target window information.

[0126] Among them, the size coordinate change instruction can be an instruction triggered when the size coordinates of the target form change. The update target form information can be the specific form information corresponding to the updated target form information.

[0127] Continue to refer to Figure 3 In step S308, if a change in the size and position of the window is detected, the size and position of the associated window are adjusted. When the target window is in a visible state on the display interface, changes in its position coordinates, size, and other information can be detected in real time. If changes occur, a corresponding size coordinate change instruction is generated. Responding to the target window's size coordinate change instruction, the target window's information can be updated. For example, the size and position coordinates of the target window can be obtained by calling the getWindowRect() function and compared with the previously obtained data to determine whether the target window's size and position have changed.

[0128] If a change is detected in the target window, the updated target window information can be obtained. This information is then used to adjust the coordinates and size of associated windows based on the updated target window information, by calling the window parameter configuration logic. For example, the size and position of associated windows can be adjusted to match the target window by calling the `setWindowRect()` function. (Reference) Figure 6 , Figure 6 This diagram schematically illustrates the adjustment of the display state and display identifier of an associated window according to some embodiments of the present disclosure. From Figure 6 As can be seen, during the window labeling process, the target window 610's original position coordinates and size are adjusted to match those of the target window 620. Simultaneously, the position coordinates and sizes of the associated windows and their labels also change. At this point, the associated windows, displayed in a transparent state, are superimposed on the target window, achieving the effect of labeling the target window without affecting its own appearance.

[0129] Furthermore, in other form-sharing scenarios, user-drawn form identifiers can be configured to be displayed on the secondary operating system's screen. Users can use associated form identifiers to mark specific content within a shared form. For example, when a sharer wants to emphasize a particular part of the content, they can draw a corresponding content selection identifier based on the associated form. The system can then synchronize the acquired associated form identifiers to the secondary operating system. At this point, the newly drawn identifiers will be displayed on the secondary operating system's screen, allowing the content recipient to quickly identify the key content corresponding to the form identifier.

[0130] In one embodiment of this disclosure, in response to the window Z-order adjustment instruction of the associated window, the associated window Z-order of the associated window is adjusted to be below the target window Z-order of the target window based on the window parameter configuration logic.

[0131] Among them, the form Z-order adjustment command can be an operation command to adjust the Z-order of the associated form in the display interface.

[0132] Continue to refer to Figure 3 In step S309, the Z-order of the associated window is adjusted. In the window identification scheme, the Z-order of the associated window in the display interface can also be adjusted. When the user triggers the Z-order adjustment operation of the associated window, a corresponding Z-order adjustment command will be generated. In response to the Z-order adjustment command of the associated window, pre-configured window parameter configuration logic can be invoked. Based on the window parameter configuration logic, the Z-order of the associated window is adjusted to be below the Z-order of the target window. For example, during the window identification process, if the Z-order of the associated window is currently above the Z-order of the target window, the Z-order of the associated window can be adjusted to be consistent with the target window.

[0133] Additionally, the Z-order of the aforementioned windows can be adjusted as needed. For example, if a user wants to hide the associated window's identifier displayed in the interface, they can call the `setWindowZOrder()` function to adjust the associated window's Z-order below that of the target window. This means moving the associated window down one layer from its current display layer, placing it below the target window's layer. Since the associated window's identifier value is the same size as the target window, the associated window will be covered by the target window, and the user will not be able to see it in the interface. This process satisfies the user's need to change the Z-order of associated windows in the display interface.

[0134] In one embodiment of this disclosure, determining the window display state of an associated window and the identifier display state of an associated window identifier based on the window's existence state includes: in response to the window's existence state being unloaded, destroying the associated window and the associated window identifier; in response to the window's existence state being loaded and hidden, configuring both the window display state and the identifier display state to a hidden state.

[0135] The "unloaded state" refers to whether the target form has been destroyed in the target system. The "loaded-hidden state" refers to the target form still existing in the target system but not displayed in the interface. The "hidden state" refers to the target form not being displayed in the interface.

[0136] Regarding the existence state of the target window, if the target window still exists in the background system, it is possible to further detect whether the target window is hidden, including hidden, minimized, or other invisible states. To detect whether the target window is hidden, functions such as isHided() and isMinimized() can be called.

[0137] If the target window is in an unloaded state, then in response to the target window being in an unloaded state, the associated window and associated window identifier corresponding to the target window are destroyed. That is, if the target window does not exist, the created associated window that exists in a transparent state is destroyed, and the associated window identifier displayed on the display interface is removed.

[0138] Continue to refer to Figure 3 In step S310, the associated window is hidden. In response to the window's state being loaded and hidden, both the window display state and the identifier display state of the associated window can be configured to be hidden. Through this processing method, when the target window is hidden in the display interface, both the associated window and its identifier are hidden in the display interface.

[0139] Furthermore, the form labeling scheme can also determine whether to continue monitoring the target form's state based on actual needs, i.e., whether the user needs to stop labeling the form. (Continue to refer to...) Figure 3 In step S311, it is determined whether to continue detecting the window status. If detection continues, the window detection operation can continue; in step S312, the associated window is destroyed. If detection does not continue, the associated window and its identifier are destroyed to end the window identification operation.

[0140] In summary, the window identification method disclosed herein obtains the system parameters corresponding to the target window; creates an associated window based on the system parameters; the associated window contains an associated window identifier; detects the target window's state; and adjusts the window display state of the associated window and the identifier display state of the associated window based on the target window's state to identify the target window. On one hand, by creating an associated window based on the target window's system parameters, the created associated window can adapt to various operating systems. On the other hand, when a change in the target window's state is detected, the window display state and identifier display state of the associated window can be dynamically adjusted based on the target window's state to adapt to the user's actual usage scenario. Furthermore, synchronously updating the associated window and associated window identifier based on changes in the target window's state makes the window identification scheme more applicable to various complex application environments.

[0141] Exemplary device

[0142] After introducing the methods of exemplary embodiments of this disclosure, the following references are made. Figure 7 The form identification device of the exemplary embodiments of the present disclosure will be described.

[0143] exist Figure 7 In the form, the form identification device 700 may include: a system parameter determination module 710, an associated form creation module 720, a form status detection module 730, and a form identification module 740.

[0144] The system parameter determination module 710 is used to obtain the system parameters corresponding to the target window; the associated window creation module 720 is used to create an associated window of the target window according to the system parameters; the associated window includes an associated window identifier; the window state detection module 730 is used to detect the target window state; and the window identifier module 740 is used to adjust the window display state of the associated window and the identifier display state of the associated window according to the target window state to identify the target window.

[0145] In some embodiments of this disclosure, the associated form creation module 720 includes an associated form creation unit, used for: obtaining the logical call interface of the target form; determining the target call implementation logic that matches the target form based on system parameters and the logical call interface; and creating an associated form according to the target call implementation logic.

[0146] In one embodiment of this disclosure, the window identification device 700 includes a logic interface generation module, used to: determine the system parameter set corresponding to the target window; the system parameter set includes system parameters corresponding to multiple different types of operating systems; configure the calling implementation logic of the target window under each operating system based on the multiple system parameters; encapsulate the multiple calling implementation logics to generate a logic calling interface for the target window; the logic calling interface is used to determine the target calling implementation logic of the associated window based on the system parameters.

[0147] In one embodiment of this disclosure, the associated window creation unit includes an associated window creation subunit, configured to: obtain target window information corresponding to the target window; obtain the target window information based on window parameter acquisition logic; create an initial associated window according to the target window information and the target call implementation logic; the target window information includes target window coordinates, target window size, and target window Z-order; receive an identifier configuration operation for the initial associated window to obtain the corresponding associated window identifier value; and generate an associated window according to the initial associated window and the associated window identifier value.

[0148] In one embodiment of this disclosure, the associated window creation subunit is configured to perform: configuring the associated window size, associated window coordinates, and associated window Z-order of the associated window, wherein the associated window size and associated window coordinates of the associated window are the same as the target window size and target window coordinates of the target window; and the associated window Z-order of the associated window is the same as or adjacent to the target window Z-order of the target window; the target window Z-order is obtained based on the window Z-order acquisition logic.

[0149] In one embodiment of this disclosure, the window identification module 740 includes a window display unit, configured to: in response to the target window being in a visible state, display an associated window and an associated window identifier based on window display logic and the current display parameters of the target window; in response to the target window being in a hidden state, detect the window existence state of the target window based on window existence detection logic, and determine the window display state of the associated window and the identifier display state of the associated window identifier based on the window existence state.

[0150] In one embodiment of this disclosure, the window display unit includes a first display subunit, configured to: obtain the current display parameters of the target window and determine the parameter update time interval of the current display parameters; in response to the parameter update time interval being less than a preset time interval, update the associated window parameters of the associated window based on the current display parameters; and adjust the visibility state of the associated window and the visibility state of the associated window identifier according to the associated window parameters.

[0151] In one embodiment of this disclosure, the window display unit includes a second display subunit, configured to: destroy the associated window and the associated window identifier in response to the window's existence state being an unloaded state; and configure both the window display state and the identifier display state to a hidden state in response to the window's existence state being a loaded / hidden state.

[0152] In one embodiment of this disclosure, the window identification device 700 further includes a window sharing module, configured to: share the target window corresponding to the first operating system to at least one second operating system in response to a sharing start command of the target window; display associated windows and associated window identifiers according to the target window status; stop detecting the target window status in response to a sharing end command of the target window; and unload the associated windows and associated window identifiers from the first operating system.

[0153] In one embodiment of this disclosure, the window identification device 700 further includes a coordinate size adjustment module, configured to: determine the updated target window information of the target window in response to a size coordinate change instruction of the target window; and adjust the associated window coordinates and / or associated window size of the associated window according to the window parameter configuration logic and the updated target window information.

[0154] In one embodiment of this disclosure, the window identification device 700 further includes a window Z-order adjustment module, configured to: in response to a window Z-order adjustment instruction of an associated window, adjust the associated window Z-order of the associated window to below the target window Z-order of the target window based on window parameter configuration logic.

[0155] Since the functional modules of the form identification device in the example embodiments of this disclosure correspond to the steps of the example embodiments of the form identification method described above, for details not disclosed in the device embodiments of this disclosure, please refer to the embodiments of the form identification method described above, which will not be repeated here.

[0156] It should be noted that although several modules or units of the window identification device have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0157] In a third aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the window identification method as described in the first aspect above.

[0158] Exemplary media

[0159] Having introduced the apparatus of exemplary embodiments of the present disclosure, reference will now be made to... Figure 8 The storage medium of an exemplary embodiment of the present disclosure will be described.

[0160] In some embodiments, various aspects of this disclosure may also be implemented as a medium storing program code that, when executed by a device processor, implements the steps in the form identification method according to various exemplary embodiments of this disclosure as described in the "Exemplary Methods" section above.

[0161] For example, when the processor of the device executes the program code, it can achieve the following: Figure 2 In step S210, the system parameters corresponding to the target window are obtained; in step S220, an associated window of the target window is created according to the system parameters; the associated window includes an associated window identifier; in step S230, the target window state of the target window is detected; in step S240, the window display state of the associated window and the identifier display state of the associated window identifier are adjusted according to the target window state to identify the target window.

[0162] refer to Figure 8As shown, a program product 800 for implementing the above-described form identification method or implementing the above-described form identification method according to embodiments of the present disclosure is described. It may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto.

[0163] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may 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 readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable 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 devices, magnetic storage devices, or any suitable combination thereof.

[0164] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium.

[0165] Program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing devices can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN).

[0166] Exemplary computing device

[0167] Having introduced the form identification method, form identification device, and storage medium according to exemplary embodiments of this disclosure, the following references... Figure 9 An electronic device according to an exemplary embodiment of the present disclosure will be described.

[0168] Those skilled in the art will understand that various aspects of this disclosure can be implemented as a system, method, or program product. Therefore, various aspects of this disclosure can be embodied in the following forms: a completely hardware embodiment, a completely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects, collectively referred to herein as a "circuit," "module," or "system."

[0169] In some possible embodiments, the electronic device according to this disclosure may include at least one processing unit and at least one storage unit. The storage unit stores program code that, when executed by the processing unit, causes the processing unit to perform the steps of the form identification method according to various exemplary embodiments of this disclosure described in the "Exemplary Methods" section above. For example, the processing unit may perform actions such as... Figure 2 In step S210, the system parameters corresponding to the target window are obtained; in step S220, an associated window of the target window is created according to the system parameters; the associated window contains an associated window identifier; in step S230, the target window state of the target window is detected; in step S240, the window display state of the associated window and the identifier display state of the associated window identifier are adjusted according to the target window state to identify the target window.

[0170] The following is for reference. Figure 9 To describe an electronic device 900 according to such an embodiment of the present disclosure. Figure 9 The electronic device 900 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0171] like Figure 9 As shown, the electronic device 900 is presented in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: at least one processing unit 910, at least one storage unit 920, a bus 930 connecting different system components (including storage unit 920 and processing unit 910), and a display unit 940.

[0172] The storage unit stores program code that can be executed by the processing unit 910, causing the processing unit 910 to perform the steps described in the "Exemplary Methods" section above, according to various exemplary embodiments of this disclosure.

[0173] Storage unit 920 may include readable media in the form of volatile storage units, such as random access memory (RAM) 921 and / or cache memory 922, and may further include read-only memory (ROM) 923.

[0174] Storage unit 920 may include a program / utility 924 having a set (at least one) program module 925, such program module 925 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0175] Bus 930 can represent one or more of several bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0176] Electronic device 900 can also communicate with one or more external devices 970 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 900, and / or with any device that enables electronic device 900 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 950. Furthermore, electronic device 900 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 960. As shown, network adapter 960 communicates with other modules of electronic device 900 via bus 930. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0177] It should be noted that although several units / modules or sub-units / modules of the window identification device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.

[0178] Furthermore, although the operations of the methods disclosed herein are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0179] While the spirit and principles of this disclosure have been described with reference to several specific embodiments, it should be understood that this disclosure is not limited to the disclosed specific embodiments, and the division of aspects does not imply that features in these aspects cannot be combined for benefit; such division is merely for convenience of expression. This disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims

1. A method for identifying a form, characterized in that, include: Obtain the system parameters corresponding to the target form; Create an associated form for the target form based on the system parameters; The associated form includes an associated form identifier; Detect the state of the target window; Adjust the window display state of the associated window and the identifier display state of the associated window according to the state of the target window to identify the target window; The step of creating the associated form of the target form according to the system parameters includes: Obtain the logical call interface of the target window. The logical call interface is generated by encapsulating the call implementation logic under multiple operating systems. The logical call interface is used to determine the target call implementation logic of the associated window based on the system parameters. Based on the system parameters and the logic call interface, determine the target call implementation logic that matches the target window; The associated form is created based on the target call implementation logic.

2. The window identification method according to claim 1, characterized in that, The logical call interface is generated through the following steps: Determine the system parameter set corresponding to the target window; the system parameter set includes system parameters corresponding to multiple different types of operating systems. Based on the multiple system parameters, configure the calling logic of the target window under each operating system; The logic of multiple calls is encapsulated to generate the logic call interface of the target window.

3. The window identification method according to claim 2, characterized in that, The call implementation logic includes any one or more combinations of the following: form existence detection logic, form display logic, form Z-order acquisition logic, form parameter acquisition logic, and form parameter configuration logic.

4. The window identification method according to claim 1, characterized in that, The step of creating the associated form according to the target call implementation logic includes: Obtain the target window information corresponding to the target window; the target window information is obtained based on the window parameter acquisition logic; An initial associated form is created based on the target form information and the target call implementation logic; the target form information includes the target form coordinates, the target form size, and the target form Z-order. Receive the identifier configuration operation for the initial associated window and obtain the corresponding associated window identifier value; The associated form is generated based on the initial associated form and the associated form identifier value.

5. The window identification method according to claim 4, characterized in that, The dimensions and coordinates of the associated window are the same as those of the target window; the Z-order of the associated window is the same as or adjacent to that of the target window; and the Z-order of the target window is obtained based on the window Z-order acquisition logic.

6. The window identification method according to claim 1, characterized in that, The step of adjusting the window display state of the associated window and the identifier display state of the associated window according to the target window state includes: In response to the target window being visible, based on the window display logic and the current display parameters of the target window, the associated window and its identifier are displayed; In response to the target window being in a hidden state, the window presence state of the target window is detected based on the window presence detection logic, and the window display state of the associated window and the identifier display state of the associated window are determined based on the window presence state.

7. The window identification method according to claim 6, characterized in that, The step of displaying the associated window and its identifier based on the window display logic and the current display parameters of the target window includes: Obtain the current display parameters of the target window and determine the parameter update time interval of the current display parameters; In response to the parameter update time interval being less than a preset time interval, the associated window parameters of the associated window are updated based on the current display parameters; The visibility state of the associated window and the visibility state of the associated window identifier are adjusted according to the associated window parameters.

8. The window identification method according to claim 6, characterized in that, The step of determining the window display state of the associated window and the identifier display state of the associated window based on the window's existence state includes: If the window is in an unloaded state, then the associated window and its identifier are destroyed. In response to the window being in a loaded / hidden state, both the window display state and the identifier display state are configured to be hidden.

9. The window identification method according to claim 1, characterized in that, The method further includes: In response to the shared launch command of the target window, the target window corresponding to the first operating system is shared to at least one second operating system; Display the associated window and its identifier according to the target window's state; In response to the sharing end command of the target window, stop detecting the target window state; Uninstall the associated window and the associated window identifier from the first operating system.

10. The window identification method according to any one of claims 1-9, characterized in that, The method further includes: In response to the size coordinate change command of the target window, determine the updated target window information of the target window; Based on the form parameter configuration logic and the updated target form information, adjust the associated form coordinates and / or the associated form size.

11. The window identification method according to any one of claims 1-9, characterized in that, The method further includes: In response to the form Z-order adjustment command of the associated form, the form Z-order of the associated form is adjusted to be below the target form Z-order of the target form based on the form parameter configuration logic.

12. A window identification device, characterized in that, include: The system parameter determination module is used to obtain the system parameters corresponding to the target window; The associated form creation module is used to create an associated form of the target form based on the system parameters; the associated form includes an associated form identifier; A window state detection module is used to detect the target window state of the target window; A window identification module is used to adjust the window display state of the associated window and the identification display state of the associated window identification according to the state of the target window, so as to identify the target window; The associated form creation module includes an associated form creation unit, used to: obtain the logical call interface of the target form, wherein the logical call interface is generated by encapsulating the call implementation logic under multiple operating systems, and the logical call interface is used to determine the target call implementation logic of the associated form based on the system parameters; Based on the system parameters and the logic call interface, determine the target call implementation logic that matches the target window; The associated form is created based on the target call implementation logic.

13. The window identification device according to claim 12, characterized in that, The window identification device includes a logic interface generation module, used for: Determine the system parameter set corresponding to the target window; the system parameter set includes system parameters corresponding to multiple different types of operating systems. Based on the multiple system parameters, configure the calling logic of the target window under each operating system; The multiple call implementation logics are encapsulated to generate the logical call interface of the target window; The logic call interface is used to determine the target call implementation logic of the associated window based on the system parameters.

14. The window identification device according to claim 12, characterized in that, The associated form creation unit includes an associated form creation sub-unit, used for: Obtain the target window information corresponding to the target window; the target window information is obtained based on the window parameter acquisition logic; An initial associated form is created based on the target form information and the target call implementation logic; the target form information includes the target form coordinates, the target form size, and the target form Z-order. Receive the identifier configuration operation for the initial associated window and obtain the corresponding associated window identifier value; The associated form is generated based on the initial associated form and the associated form identifier value.

15. The window identification device according to claim 14, characterized in that, The associated form creation subunit is configured to perform the following: configuring the associated form size, associated form coordinates, and associated form Z-order of the associated form, wherein the associated form size and associated form coordinates are the same as the target form size and target form coordinates of the target form; and the associated form Z-order of the associated form is the same as or adjacent to the target form Z-order of the target form; the target form Z-order is obtained based on the form Z-order acquisition logic.

16. The window identification device according to claim 12, characterized in that, The form identification module includes a form display unit, used for: In response to the target window being visible, based on the window display logic and the current display parameters of the target window, the associated window and its identifier are displayed; In response to the target window being in a hidden state, the window presence state of the target window is detected based on the window presence detection logic, and the window display state of the associated window and the identifier display state of the associated window are determined based on the window presence state.

17. The window identification device according to claim 16, characterized in that, The window display unit includes a first display subunit, used for: Obtain the current display parameters of the target window and determine the parameter update time interval of the current display parameters; In response to the parameter update time interval being less than a preset time interval, the associated window parameters of the associated window are updated based on the current display parameters; The visibility state of the associated window and the visibility state of the associated window identifier are adjusted according to the associated window parameters.

18. The window identification device according to claim 16, characterized in that, The window display unit includes a second display subunit, used to include: If the window is in an unloaded state, then the associated window and its identifier are destroyed. In response to the window being in a loaded / hidden state, both the window display state and the identifier display state are configured to be hidden.

19. The window identification device according to claim 12, characterized in that, The form identification device also includes a form sharing module, used for: In response to the shared launch command of the target window, the target window corresponding to the first operating system is shared to at least one second operating system; Display the associated window and its identifier according to the target window's state; In response to the sharing end command of the target window, stop detecting the target window state; Uninstall the associated window and the associated window identifier from the first operating system.

20. The window identification device according to any one of claims 12-19, characterized in that, The window labeling device also includes a coordinate size adjustment module, used for: In response to the size coordinate change command of the target window, determine the updated target window information of the target window; Based on the form parameter configuration logic and the updated target form information, adjust the associated form coordinates and / or the associated form size.

21. The window identification device according to any one of claims 12-19, characterized in that, The window identification device also includes a window Z-order adjustment module, used for: In response to the form Z-order adjustment command of the associated form, the form Z-order of the associated form is adjusted to be below the target form Z-order of the target form based on the form parameter configuration logic.

22. An electronic device, characterized in that, include: processor; as well as A memory storing computer-readable instructions that, when executed by the processor, implement the window identification method as described in any one of claims 1 to 11.

23. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the form identification method as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Data processing method and device, electronic equipment and storage medium

    CN113296654A