Application window locking method and device

By creating a locking layer on the terminal device and moving the application form to the layer, making it a visible but inoperable state, the application form is vulnerable to misoperation and the effect of improving the user experience is achieved.

CN119440319APending Publication Date: 2025-02-14BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310960734.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-01
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

On the desktop of the terminal device, the application form may be misoperated due to its location at the top, which will affect its normal operation, especially in a multi-user environment or when the application is in a test or hang-up state.

Method used

By creating a locking layer, moving the application form to that layer, making it a visible but inoperable state, avoiding misoperation. The method includes creating a locking layer in response to a startup instruction, obtaining the identification of the application form and adding it to the control panel, and moving the application form to the locking layer in response to a locking instruction.

Benefits of technology

It effectively prevents users from misoperating the application form, improves the user experience, and does not affect the viewing of the application form.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440319A_ABST
    Figure CN119440319A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for locking an application window, and relates to the technical field of intelligent office. A specific embodiment of the method comprises the following steps: in response to a monitored starting instruction, creating a locking layer; obtaining an identifier of an application window displayed on an application window layer, and adding the identifier of the application window to a control panel corresponding to the locking layer; and in response to a monitored locking instruction aiming at the identifier of the application window on the control panel, moving the application window to the locking layer for locking, so that the application window is displayed on the locking layer. According to the embodiment, by creating the locking layer and moving the application window to the locking layer, locking of the application window is achieved, the application window is made to be in the visible but inoperable state, misoperation of a user on the application window is effectively avoided, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent office technology, and in particular to a method and device for locking an application window. Background Art

[0002] On a terminal device such as a computer desktop, after a user opens an application, the application window is displayed on the desktop of the terminal device so that the user can view the content of the application window. However, since the application window is located at the top layer of the desktop, there may be misoperations of the application window, affecting normal work, such as accidentally touching the microphone mute switch in the application window of the conference software; or some applications are in testing or on hold, and the application window is touched or misoperated by other users. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method and device for locking an application window, which creates a locking layer and moves the application window to the locking layer to lock the application window, making the application window visible but inoperable, effectively avoiding users' misoperation of the application window and improving the user experience.

[0004] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for locking an application window is provided, comprising:

[0005] In response to monitoring the start instruction, creating a locking layer;

[0006] Acquire an identifier of an application window displayed on the application window layer, and add the identifier of the application window to a control panel corresponding to the locked layer;

[0007] In response to monitoring a lock instruction identified for the application window on the control panel, the application window is moved to the lock layer for locking, so that the application window is displayed on the lock layer.

[0008] Optionally, create a locking layer, including:

[0009] Get the window handle of the system wallpaper layer;

[0010] Obtain the size and position of the system wallpaper layer according to the window handle;

[0011] According to the size and position of the system wallpaper layer, the system wallpaper layer is used as a parent window, a child window corresponding to the parent window is created, and the child window is used as the locked layer.

[0012] Optionally, after the application window is moved to the locking layer for locking, the method further includes:

[0013] In response to monitoring an unlocking instruction for the application window on the control panel, the application window is unlocked from the locking layer, so that the application window is returned to the application window layer.

[0014] Optionally, the control panel further includes a display mode of an application window, and before the application window is moved to the locking layer for locking, the control panel further includes:

[0015] In response to monitoring a selection instruction for the display mode on the control panel, a window size of the application window is determined, so as to display the application window on the locking layer according to the window size of the application window.

[0016] Optionally, the display mode is full-screen display, and determining the window size of the application window includes:

[0017] The size of the locked layer is used as the window size of the application window.

[0018] Optionally, the display mode is multi-screen display, and determining the window size of the application window includes:

[0019] Obtaining the number of application windows corresponding to the multi-screen display;

[0020] The window size of the application window is determined according to the number of application windows and the size of the locking layer.

[0021] Optionally, the method further comprises:

[0022] In response to monitoring a closing instruction of the system wallpaper layer, destroying the locking layer.

[0023] According to another aspect of an embodiment of the present invention, there is provided a device for locking an application window, comprising:

[0024] A creation module, in response to monitoring a start instruction, creates a locking layer;

[0025] An acquisition module, which acquires an identification of an application window displayed on the application window layer, and adds the identification of the application window to a control panel corresponding to the locking layer;

[0026] The locking module, in response to monitoring a locking instruction for the application window on the control panel, moves the application window to the locking layer for locking, so that the application window is displayed on the locking layer.

[0027] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0028] one or more processors;

[0029] a storage device for storing one or more programs,

[0030] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for locking the application window provided by the present invention.

[0031] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method for locking an application window provided by the present invention is implemented.

[0032] An embodiment of the above invention has the following advantages or beneficial effects: the method for locking the application window creates a locking layer after listening to the start command, then obtains the identification of the application window displayed on the application window layer, and adds the identification of the application window to the control panel corresponding to the locking layer; after listening to the locking instruction for the identification of the application window on the control panel, the application window is moved to the locking layer so that the application window is displayed on the locking layer to achieve the locking of the application window. This method creates a locking layer, moves the application window to the locking layer, and locks the application window, so that the application window is in a visible but inoperable state, which can effectively prevent users from misoperating the application window without affecting the viewing of the content of the application window, effectively avoiding problems caused by misoperation and improving user experience.

[0033] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0035] Figure 1 is a schematic diagram of the main process of a method for locking an application window according to an embodiment of the present invention;

[0036] Figure 2 is a schematic diagram of the main process of another method for locking an application window according to an embodiment of the present invention;

[0037] Figure 3 is a schematic diagram of an interface for locking an application window according to an embodiment of the present invention;

[0038] Figure 4 is a schematic diagram of main modules of an apparatus for locking an application window according to an embodiment of the present invention;

[0039] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0040] Figure 6It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0042] Figure 1 FIG. 1 is a schematic diagram of the main process of a method for locking an application window according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0043] Step S101: in response to monitoring a start instruction, creating a lock layer;

[0044] Step S102: obtaining the identifier of the application window displayed on the application window layer, and adding the identifier of the application window to the control panel corresponding to the locked layer;

[0045] Step S103: in response to monitoring a lock instruction for the identification of the application window on the control panel, the application window is moved to the lock layer for locking, so that the application window is displayed on the lock layer.

[0046] In an embodiment of the present invention, the method for locking an application window is used to lock an application window on a terminal device to prevent misoperation of the application window and to display the content of the application window. The application window is a window of an application program for users to view and display content, such as a conference software. The operating system of the terminal device may be one of Windows system, macOS system, iOS system, Android system, etc., for example, Windows system.

[0047] In an embodiment of the present invention, the method for locking an application window can be implemented by an application window locking device, such as a program for implementing the method for locking an application window. The monitored startup instruction is the startup instruction of the program, and after the program is started, a locking layer is created. The startup of the program can be started by the user based on actual needs, or can be based on the startup of the operating system. The locking layer is used to lock the application window, thereby preventing misoperation of the application window.

[0048] In the embodiment of the present invention, Figure 2 As shown, creating a locked layer includes the following steps:

[0049] Step S201: Get the window handle of the system wallpaper layer;

[0050] Step S202: Obtain the size and position of the system wallpaper layer according to the window handle;

[0051] Step S203: according to the size and position of the system wallpaper layer, take the system wallpaper layer as the parent window, create a child window corresponding to the parent window, and take the child window as the locked layer.

[0052] In an embodiment of the present invention, when creating a locking layer, the window handle of the system wallpaper layer, that is, the identifier of the system wallpaper layer, is first obtained, and then the size and position of the system wallpaper layer are obtained based on the window handle, wherein the size of the system wallpaper layer may include the length and width of the system wallpaper layer, and the position of the system wallpaper layer may include the coordinates of any vertex in the system wallpaper layer, such as the coordinates of the lower left vertex. Then, according to the size and position of the system wallpaper layer, a child window of the parent window is created with the system wallpaper layer as the parent window, and the size and position of the obtained child window are the same as the size and position of the parent window, and the child window is used as the locking layer, that is, the size and position of the locking layer are the same as the size and position of the system wallpaper layer. Among them, the child window can be drawn based on the size and position of the system wallpaper layer, that is, the lower left vertex coordinates of the system wallpaper layer are used as the starting point, and the locking layer is drawn according to the length and width of the system wallpaper layer. The size and position of the locking layer are made the same as those of the system wallpaper layer, so that the locking layer can completely cover the wallpaper layer, and misoperation of the application window can be prevented.

[0053] When obtaining the window handle of the system wallpaper layer, you can obtain it by calling the API interface of the operating system. If the operating system is Windows, you can obtain the window handle of the system wallpaper layer by calling the API interface and using the FindWindows function, and then create a locked layer with the system wallpaper layer as the parent window.

[0054] In the embodiment of the present invention, after the sub-window is used as the locked layer, the locked layer is set to be displayed transparently, so as not to affect the normal use of the user, so that the system wallpaper layer can be displayed normally.

[0055] In an embodiment of the present invention, on a terminal device, taking the Windows system as an example, the main working layers of the system include the system wallpaper layer, the desktop icon layer, and the application window layer from the inside to the outside (i.e., the window Z order). Among them, the user can operate the desktop icon layer and the application window layer, but cannot operate the system wallpaper layer. Based on this, with the system wallpaper layer as the parent window, the locking layer created on the system wallpaper layer, the user cannot operate the locking layer, so that the application window in the locking layer cannot be operated by mistake. Among them, the locking layer is located between the system wallpaper layer and the desktop icon layer.

[0056] In the embodiment of the present invention, after the application window is moved to the locking layer for locking, the method further includes: in response to monitoring an unlocking instruction for the application window on the control panel, unlocking the application window from the locking layer so that the application window returns to the application window layer.

[0057] In an embodiment of the present invention, after creating a locking layer, the identifier of the application window displayed on the application window layer is obtained, and then the identifier of the application window is added to the control panel corresponding to the locking layer, and the control panel includes a window identifier list, that is, the identifier of the application window is added to the window identifier list. The window identifier list includes the identifier of each application window, the window size of the application window corresponding to each application window identifier, and the corresponding operation button. The operation button may include a lock button and an unlock button. Clicking the lock button may trigger a lock instruction, and clicking the unlock button may trigger an unlock instruction, so that the application window corresponding to the identifier of the application window in the window identifier list on the control panel can be locked and unlocked.

[0058] In an embodiment of the present invention, on the control panel, after a locking instruction for the identification of an application window is heard, the application window corresponding to the identification of the application window is locked, that is, the application window is moved from the application window layer to the locking layer, so that the application window is displayed on the locking layer. After the application window is locked, that is, when it is displayed on the locking layer, it does not affect the application program and the application window itself, and the application window is in a visible but inoperable state, that is, the user can see the content in the application window, but cannot operate the application window, that is, cannot operate the application window with the mouse, until the user unlocks the application window.

[0059] In the embodiment of the present invention, the identifiers of the application windows in the window identifier list on the control panel may be identifiers of visible application windows, and the identifiers of invisible application windows may not be added to the window identifier list.

[0060] In an embodiment of the present invention, before adding the identification of the application form to the control panel corresponding to the locked layer, it is determined that the application form has an addable identification, or it is determined that the application form does not have a non-addable identification. The addable identification indicates that the identification of the application form can be added to the control panel, and the non-addable identification indicates that the identification of the application form cannot be added to the control panel. For example, one or more application forms can be set to not be added to the locked layer, so that the one or more application forms have a non-addable identification.

[0061] In an embodiment of the present invention, the control panel also includes a display mode of the application window. Before moving the application window to the locking layer for locking, it also includes: in response to monitoring a selection instruction for the display mode on the control panel, determining the window size of the application window, so as to display the application window on the locking layer according to the window size of the application window.

[0062] In an embodiment of the present invention, the control panel also includes a display mode of the application window. Before locking the application window, the display mode of the application window can be selected so that the application window can be displayed according to the display mode. After the display mode is determined, the window size of the application window can be determined, so that the application window can be displayed according to the window size. Among them, the display mode can be full-screen display or multi-screen display, and different display modes correspond to different window sizes of application windows.

[0063] In the embodiment of the present invention, the display mode is full screen display, and determining the window size of the application window includes: using the size of the locked layer as the window size of the application window.

[0064] In an embodiment of the present invention, when the display mode is full screen display, after receiving the selection instruction of full screen display, the window size of the application window is determined according to the display mode of full screen display. When the display mode is full screen, the window size of the application window can be the same as the size of the locked layer, that is, the application window completely covers the locked layer, that is, the locked layer is tiled, that is, the size of the locked layer is used as the size of the application window. When the display mode is full screen, the product of the size of the locked layer and the preset scale factor can also be used as the size of the application window. For example, the preset scale factor can be between 0.8 and 1. When the full screen display is selected, at most one application window can be locked.

[0065] In the embodiment of the present invention, the display mode is multi-screen display, and determining the window size of the application window includes:

[0066] Get the number of application windows corresponding to multi-screen display;

[0067] The window size of the application window is determined according to the number of application windows and the size of the locked layer.

[0068] In an embodiment of the present invention, when the display mode is multi-screen display, the number of application windows to be displayed in the multi-screen display is determined. The multi-screen display is a multi-split screen display, such as a four-split screen display, a nine-split screen display, etc. The number of application windows corresponding to the multi-split screen display is equal to the number of split screens of the multi-split screen display. After determining the number of application windows corresponding to the multi-split screen display, the size of the locked layer is divided according to the number of application windows, and the window size of each application window is determined. Then, each application window is displayed according to its corresponding window size to realize the multi-split screen display of the application window. If the four-split screen display is selected, the size of the locked layer is divided into four parts. If the size of the locked layer is 1960*1080, the size of each split screen after the four-split screen is 980*530, that is, in the four-split screen display mode, four application windows can be locked, and the size of each application window is 980*530. If the nine-split screen display is selected, nine application windows can be locked, and the size of the locked layer is divided into nine parts, and the size of each split screen is determined as the window size of each application window.

[0069] After determining the window size of the application window according to the display mode, after listening to the locking command for the application window on the control panel, the application window is moved from the application window layer to the locking layer to lock the application window, so that the application window is arranged in the locking layer according to the display mode; after listening to the unlocking command for the application window on the control panel, the application window is moved from the locking layer to the application window layer to unlock the application window and restore the application window to a normal state.

[0070] Figure 3 The following is a schematic diagram of an application window locking interface according to an embodiment of the present invention. The interface includes a system wallpaper layer, a desktop icon layer, and an application window layer. A child window is created with the system wallpaper layer as the parent window. The child window is the locking layer. The system wallpaper layer and the locking layer have the same size and position, that is, the system wallpaper layer and the locking layer overlap, and the locking layer is displayed transparently. As shown in (a), application form A on the application form layer is obtained and displayed in the form name list on the control panel; application form A can be locked and unlocked through the control panel. When application form A is locked on the control panel, application form A is moved from the application form layer to the locking layer for locking, so that the application form is displayed on the locking layer, and application form A is in a visible but inoperable state; the display mode of application form A can be selected from the supported modes on the control panel, including four-split screen display, nine-split screen display and full-screen display. If full-screen display is selected as the display mode, a schematic diagram as shown in (b) can be obtained, that is, application form A is tiled on the locking layer; when application form A is unlocked on the control panel, application form A returns to the application form layer, and application form A can be operated.

[0071] In an embodiment of the present invention, the method for locking an application window further includes: in response to monitoring a closing instruction of the system wallpaper layer, destroying the locking layer. Since the locking layer is created with the system wallpaper layer as the parent window, the response between the locking layer and the system wallpaper layer is synchronized, and thus after the system wallpaper layer is closed, the locking layer is destroyed. Alternatively, the locking layer may be destroyed in response to monitoring a closing instruction of a program, and the closing instruction is a closing instruction of a program that implements the method for locking an application window.

[0072] In an embodiment of the present invention, the method for locking an application window further includes: in response to monitoring a movement instruction of the system wallpaper layer, moving the locking layer. That is, the movement between the locking layer and the system wallpaper layer is also synchronized, and the child window moves with the parent window, that is, the child window moves according to the moving direction and moving distance indicated by the moving instruction, and can be moved to the same position as the system wallpaper layer, or the center point of the child window can be at the same position as the center point of the system wallpaper layer.

[0073] The method for locking an application window of an embodiment of the present invention is to create a locking layer after listening to a startup instruction, then obtain the identifier of the application window displayed on the application window layer, and add the identifier of the application window to the control panel corresponding to the locking layer; after listening to the locking instruction for the identifier of the application window on the control panel, move the application window to the locking layer so that the application window is displayed on the locking layer to achieve the locking of the application window. The method creates a locking layer with the system wallpaper layer as the parent window, moves the application window to the locking layer, and locks the application window, so that the application window is visible but not operable, which can effectively prevent users from misoperating the application window, and does not affect the viewing of the content of the application window, effectively avoiding problems caused by misoperation and improving the user experience; the method can arrange multiple application windows on the locking layer according to the display mode of multi-screen display, realize the locking of one or more application windows, and meet the user's viewing needs for multiple application windows.

[0074] like Figure 4 As shown, according to another aspect of an embodiment of the present invention, a device 400 for locking an application window is provided, comprising:

[0075] A creation module 401, in response to monitoring a start instruction, creates a locking layer;

[0076] An acquisition module 402 acquires an identifier of an application window displayed on the application window layer, and adds the identifier of the application window to a control panel corresponding to the locked layer;

[0077] The locking module 403, in response to monitoring a locking instruction for the application window on the control panel, moves the application window to the locking layer for locking, so that the application window is displayed on the locking layer.

[0078] In an embodiment of the present invention, the creation module 401 is further used to: obtain the window handle of the system wallpaper layer; obtain the size and position of the system wallpaper layer according to the window handle; according to the size and position of the system wallpaper layer, take the system wallpaper layer as the parent window, create a child window corresponding to the parent window, and use the child window as the locked layer.

[0079] In an embodiment of the present invention, the locking module 403 is also used to: after moving the application window to the locking layer for locking, in response to monitoring an unlocking instruction for the application window on the control panel, unlock the application window from the locking layer so that the application window returns to the application window layer.

[0080] In an embodiment of the present invention, the control panel also includes a display mode of the application window, and the locking module 403 is also used to: before moving the application window to the locking layer for locking, in response to monitoring a selection instruction for the display mode on the control panel, determine the window size of the application window, so as to display the application window on the locking layer according to the window size of the application window.

[0081] In the embodiment of the present invention, the display mode is full-screen display, and the locking module 403 is further used to: use the size of the locked layer as the window size of the application window.

[0082] In the embodiment of the present invention, the display mode is multi-screen display, and the locking module 403 is further used to: obtain the number of application windows corresponding to the multi-screen display; and determine the window size of the application window according to the number of application windows and the size of the locking layer.

[0083] In the embodiment of the present invention, the creation module 401 is further used to: in response to monitoring a closing instruction of the system wallpaper layer, destroy the locking layer.

[0084] In another aspect of an embodiment of the present invention, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for locking the application window of an embodiment of the present invention.

[0085] According to another aspect of the embodiments of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method for locking an application window according to the embodiments of the present invention is implemented.

[0086] Figure 5 An exemplary system architecture 500 is shown to which the method for applying window locking or the apparatus for applying window locking according to the embodiment of the present invention can be applied.

[0087] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0088] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as conference software, shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0089] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0090] The server 505 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0091] It should be noted that the method for locking an application window provided in the embodiment of the present invention is generally executed by the terminal devices 501 , 502 , 503 , and accordingly, the device for locking an application window is generally disposed in the terminal devices 501 , 502 , 503 .

[0092] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0093] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0094] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0095] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0096] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0097] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0098] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0099] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a creation module, an acquisition module and a locking module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the creation module may also be described as "a module that creates a locking layer in response to monitoring a startup instruction".

[0100] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: in response to listening to a start instruction, creating a locking layer; obtaining the identifier of the application window displayed on the application window layer, and adding the identifier of the application window to the control panel corresponding to the locking layer; in response to listening to a locking instruction for the identifier of the application window on the control panel, moving the application window to the locking layer for locking, so that the application window is displayed on the locking layer.

[0101] According to the technical solution of the embodiment of the present invention, the method for locking the application window, after listening to the start command, creates a locking layer, then obtains the identifier of the application window displayed on the application window layer, and adds the identifier of the application window to the control panel corresponding to the locking layer; after listening to the locking command for the identifier of the application window on the control panel, the application window is moved to the locking layer, so that the application window is displayed on the locking layer, and the application window is locked. The method creates a locking layer with the system wallpaper layer as the parent window, moves the application window to the locking layer, and locks the application window, so that the application window is visible but not operable, which can effectively prevent users from misoperating the application window, and does not affect the viewing of the content of the application window, effectively avoiding problems caused by misoperation, and improving the user experience; the method can arrange multiple application windows on the locking layer according to the display mode of multi-screen display, realize the locking of one or more application windows, and meet the user's viewing needs for multiple application windows.

[0102] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for locking an application window, characterized in that: include: In response to monitoring the start instruction, creating a locking layer; Acquire an identifier of an application window displayed on the application window layer, and add the identifier of the application window to a control panel corresponding to the locked layer; In response to monitoring a lock instruction identified for the application window on the control panel, the application window is moved to the lock layer for locking, so that the application window is displayed on the lock layer.

2. The method according to claim 1, characterized in that Create locked layers, including: Get the window handle of the system wallpaper layer; Obtain the size and position of the system wallpaper layer according to the window handle; According to the size and position of the system wallpaper layer, the system wallpaper layer is used as a parent window, a child window corresponding to the parent window is created, and the child window is used as the locked layer.

3. The method according to claim 1, characterized in that After the application window is moved to the locking layer for locking, the method further includes: In response to monitoring an unlocking instruction for the application window on the control panel, the application window is unlocked from the locking layer, so that the application window is returned to the application window layer.

4. The method according to claim 1, characterized in that: The control panel also includes a display mode of the application window, and before the application window is moved to the locking layer for locking, it also includes: In response to monitoring a selection instruction for the display mode on the control panel, a window size of the application window is determined, so as to display the application window on the locking layer according to the window size of the application window.

5. The method according to claim 4, characterized in that The display mode is full screen display, and determining the window size of the application window includes: The size of the locked layer is used as the window size of the application window.

6. The method according to claim 4, characterized in that The display mode is multi-screen display, and determining the window size of the application window includes: Obtaining the number of application windows corresponding to the multi-screen display; The window size of the application window is determined according to the number of application windows and the size of the locking layer.

7. The method according to claim 2, characterized in that The method further comprises: In response to monitoring a closing instruction of the system wallpaper layer, destroying the locking layer.

8. A device for locking an application window, characterized in that: include: A creation module, in response to monitoring a start instruction, creates a locking layer; An acquisition module, which acquires an identification of an application window displayed on the application window layer, and adds the identification of the application window to a control panel corresponding to the locking layer; The locking module, in response to monitoring a locking instruction for the application window on the control panel, moves the application window to the locking layer for locking, so that the application window is displayed on the locking layer.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.