A method and device for forcibly closing an application

By implementing the method of forcibly closing applications in the system monitor, the problem of cumbersome task manager process and the user's inability to intuitively determine the target application is solved, and a simple and intuitive application forced closing operation is achieved, improving the user experience.

CN114880034BActive Publication Date: 2025-06-27UNIONTECH SOFTWARE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210426985.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-21
Publication Date
2025-06-27
Estimated Expiration
2042-04-21

AI Technical Summary

Technical Problem

In the prior art, the process of forcing the application to be closed through a task manager is cumbersome, and the user cannot intuitively determine the target application interface, resulting in poor user experience.

Method used

Implement the method of forcibly closing the application in the system monitor. By responding to the triggering of the forced closing of the application program interface, display the open application window on the desktop, obtain the application window where the mouse cursor is located, use it as the target application, and force close the target application according to the obtained PID.

Benefits of technology

The process of forcibly closing applications is easier. Users can directly select target applications on the desktop, allowing users to determine target applications more intuitively and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114880034B_ABST
    Figure CN114880034B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses a method and device for forcibly closing an application program. To solve the problems that the process of forcibly closing an application program is cumbersome and it is impossible to intuitively determine the target application program, the method includes: responding to an operation by the user to trigger the application program forced closing interface, displaying the opened application program windows on the desktop, obtaining the application program window where the mouse cursor is located, taking the application program to which the obtained application program window belongs as the target application program, obtaining the PID of the target application program, and forcibly closing the target application program according to the obtained PID. It can be seen that, compared with the method of the task manager, the method for forcibly closing an application program of the present invention has a simpler implementation process, and the target application program can be directly selected from the application programs displayed on the desktop, enabling the user to more intuitively determine the target application program and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a method, a device, a computing device, and a readable storage medium for forcibly closing an application program. Background Art

[0002] With the rapid development of Internet technology and the continuous increase of people's demands, application programs for various demands have been developed. Moreover, in order to meet the needs of work, life, etc., multiple application programs are often opened in a computing device, and the opening of an application program is presented in the form of a window. Therefore, multiple application programs are opened in the computing device. Due to the limitation of the resources of the computing device, when multiple application programs are opened, abnormal situations such as application program freeze and lag are likely to occur. At this time, the window cannot be closed through the normal close button.

[0003] Currently, an application program is forcibly closed mostly through the task manager. Specifically: start the task manager, enter the task manager interface, select the target application program in the task manager and trigger the right mouse button, a menu bar will pop up, and select the end task menu item to forcibly close the frozen or lagging application program. However, forcibly closing an application program through the task manager has a cumbersome process, and only the icons, version numbers, and resource monitoring data (including CPU utilization rate, occupied physical memory, total disk utilization rate, etc.) of the opened application programs are displayed in the task manager. For users, it is impossible to intuitively determine the target application program interface, and the user experience is poor.

[0004] Therefore, it is desirable to provide a simple method for forcibly closing an application program to solve the problems that the process of forcibly closing an application program through the task manager is cumbersome and the user cannot intuitively determine the target application program interface. Summary of the Invention

[0005] To this end, embodiments of the present invention provide a method and a device for forcibly closing an application program, in an attempt to solve or at least alleviate the problems mentioned above.

[0006] According to one aspect of the embodiments of the present invention, a method for forcibly closing an application program is provided, which is executed in a system monitor. The method includes: responding to an operation that triggers an interface for forcibly closing an application program, and displaying the opened application program windows on the desktop; obtaining the application program window where the mouse cursor is located, and taking the application program to which the obtained application program window belongs as the target application program; obtaining the PID of the target application program; and forcibly closing the target application program according to the obtained PID.

[0007] Optionally, the method for forcibly closing an application provided by the present invention further includes the steps of: determining the size of the display area of the target application window on the desktop according to the coordinates of the target application window; creating a window of the same size as the target application window with a preset color and a preset transparency; covering the newly created window on the target application window to indicate that the target application is selected.

[0008] Optionally, the method for forcibly closing an application provided by the present invention further includes the step of: when it is detected that the mouse cursor moves outside the display area of the target application, deleting the window covering the target application.

[0009] Optionally, the method for forcibly closing an application provided by the present invention further includes the step of: popping up a prompt box on the target application to prompt the user to select the application that needs to be forcibly closed.

[0010] Optionally, the step of forcibly closing the target application according to the obtained PID includes: responding to the operation of the user clicking the mouse on the covering window, popping up a dialog box, and the dialog box includes a forced termination interface; responding to the operation of clicking the forced termination interface, determining the process of the target application according to the obtained PID; deleting the process of the target application through a delete instruction.

[0011] Optionally, the method for forcibly closing an application provided by the present invention further includes the step of: responding to the operation of triggering the right mouse button in the graphical user interface of the system monitor, popping up a menu bar, and the menu bar includes a forced termination application interface.

[0012] Optionally, the step of obtaining the application window where the mouse cursor is located and taking the application to which the obtained application window belongs as the target application includes: obtaining the coordinates of the display area of the application windows displayed on the desktop; monitoring the coordinates of the mouse cursor; determining the position area of each application window displayed on the desktop according to the coordinates of the display area of each application window; when it is detected that the coordinates of the mouse cursor are within the position area of any application window on the desktop, taking the application to which the application window where the mouse cursor is located belongs as the target application.

[0013] Optionally, the display area coordinates of any application include four endpoint coordinates, and any endpoint coordinate includes a Z coordinate. The step of taking the application to which the application window where the mouse cursor is located belongs as the target application includes: determining whether there are overlapping application windows at the position where the mouse cursor is located. If so, taking the application to which the application window with the largest Z coordinate among the overlapping multiple application windows belongs as the target application.

[0014] According to another aspect of the embodiments of the present invention, there is provided a device for forcibly closing an application, including: a display module, adapted to respond to an operation of triggering an interface for forcibly closing an application, and display opened application windows on the desktop; an acquisition module, adapted to acquire the application window where the mouse cursor is located, take the application to which the acquired application window belongs as the target application, and adapted to acquire the PID of the target application; a module for forcibly closing an application, adapted to forcibly close the target application according to the acquired PID.

[0015] According to yet another aspect of the present invention, there is provided a computing device, including: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for performing the method as described above.

[0016] According to another aspect of the present invention, there is provided a readable storage medium storing program instructions, which, when read and executed by a computing device, cause the computing device to execute the method as described above.

[0017] In the solution for forcibly closing an application according to the embodiments of the present invention, in response to a user's operation of triggering an interface for forcibly closing an application, opened application windows are displayed on the desktop, the application window where the mouse cursor is located is acquired, the application to which the acquired application window belongs is taken as the target application, the PID of the target application is acquired, and the target application is forcibly closed according to the acquired PID. It can be seen that, compared with the method of the task manager, the method for forcibly closing an application of the present invention has a simpler implementation process, and the target application can be directly selected from the applications displayed on the desktop, enabling the user to more intuitively determine the target application and improving the user experience.

[0018] The above description is only an overview of the technical solutions of the embodiments of the present invention. In order to be able to understand the technical means of the embodiments of the present invention more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the following specifically describes the specific embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] To achieve the above and related purposes, certain illustrative aspects are described herein in connection with the following description and drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalent aspects are intended to fall within the scope of the claimed subject matter. By reading the following detailed description in conjunction with the drawings, the above and other purposes, features and advantages of the present disclosure will become more apparent. Throughout the present disclosure, like reference numerals generally refer to like parts or elements.

[0020] Figure 1 FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present invention;

[0021] Figure 2 FIG. 2 shows a flowchart of a method 200 for force - closing an application according to an embodiment of the present invention;

[0022] Figure 3 FIG. 3 shows a schematic diagram of a part of the graphical user interface of a system monitor after a pop - up menu bar according to an embodiment of the present invention;

[0023] Figure 4 FIG. 4 shows a schematic diagram of a desktop displaying open application windows according to an embodiment of the present invention;

[0024] Figure 5 FIG. 5 shows a schematic diagram of the working process of obtaining the application window where the mouse cursor is located and using the application corresponding to the window as the target application according to an embodiment of the present invention;

[0025] Figure 6 FIG. 6 shows a schematic diagram of a desktop with a selected state added to the target application and a pop - up prompt box according to an embodiment of the present invention;

[0026] Figure 7 FIG. 7 shows a schematic diagram of a desktop with a pop - up dialog box according to an embodiment of the present invention; and

[0027] Figure 8 FIG. 8 shows a block diagram of a structure of a device 800 for force - closing an application according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0028] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully conveyed to those skilled in the art.

[0029] To solve the problems of the cumbersome process and the inability to intuitively determine the target application in the existing method for force - closing an application, the present invention provides a method for force - closing an application, which can be implemented as a plugin and integrated in a system monitor 150 installed in a computing device 100.

[0030] The system monitor is used to monitor the resource occupancy status data of the opened applications, such as the physical memory rate occupied by the active processes, the total processor utilization rate of all cores, etc. The system monitor 150 also records the process ID (abbreviated as pid) of each application.

[0031] The above-described computing device 100 can be implemented as a server, such as an application server, a Web server, etc.; it can also be implemented as a desktop computer, a laptop computer, a processor chip, a tablet computer, etc., but is not limited thereto. Figure 1 A block diagram of the physical components (i.e., hardware) of the illustrated computing device 100 is shown. In a basic configuration, the computing device 100 includes at least one processing unit 102 and a system memory 104. According to one aspect, depending on the configuration and type of the computing device, the system memory 104 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories. According to one aspect, the system memory 104 includes an operating system 105 and a system monitor 150, and the system monitor 150 integrates a plug-in for the function of forcibly closing an application program provided by the present invention.

[0032] According to one aspect, the operating system 105, for example, is suitable for controlling the operation of the computing device 100. In addition, the examples are practiced in conjunction with a graphics library, other operating systems, or any other application programs, and are not limited to any particular application or system. In Figure 1 the basic configuration is shown by those components within the dashed line 108. According to one aspect, the computing device 100 has additional features or functions. For example, according to one aspect, the computing device 100 includes additional data storage devices (removable and / or non-removable), such as magnetic disks, optical disks, or magnetic tapes. Such additional storage is Figure 1 shown by a removable storage device 109 and a non-removable storage device 110.

[0033] As stated above, according to one aspect, a plurality of program modules and data files are stored in the system memory 104. When executed on the processing unit 102, the system monitor 150 performs processes that include, but are not limited to, one or more of the stages of the method 200 shown in Figure 2 . According to one aspect, the type of application program is not limited. For example, application programs also include: email and contact applications, word processing applications, spreadsheet applications, database applications, slide show applications, painting or computer-aided applications, web browser applications, etc.

[0034] According to one aspect, the examples can be practiced in a circuit including discrete electronic components, a package or integrated electronic chip containing logic gates, a circuit using a microprocessor, or on a single chip containing electronic components or a microprocessor. For example, it can be via where in Figure 1Each or many of the components shown in [the figure] can be practiced as an example by a system-on-chip (SOC) integrated on a single integrated circuit. According to one aspect, such an SOC device may include one or more processing units, graphics units, communication units, system virtualization units, and various application functions, all of which are integrated (or "burned") onto a chip substrate as a single integrated circuit. When operating via an SOC, the functions described herein can be operated via dedicated logic integrated with other components of computing device 100 on a single integrated circuit (chip). Embodiments of the present invention can also be practiced using other technologies capable of performing logical operations (such as AND, OR, and NOT), including but not limited to mechanical, optical, fluidic, and quantum technologies. Additionally, embodiments of the present invention can be practiced within a general-purpose computer or in any other circuit or system.

[0035] According to one aspect, computing device 100 may also have one or more input devices 112, such as a keyboard, mouse, pen, voice input device, touch input device, etc. An output device 114, such as a display, speaker, printer, etc., may also be included. The foregoing devices are examples and other devices may also be used. Computing device 100 may include one or more communication connections 116 that allow communication with other computing devices 118. Examples of suitable communication connections 116 include but are not limited to: RF transmitter, receiver, and / or transceiver circuits; Universal Serial Bus (USB), parallel, and / or serial ports.

[0036] As used herein, the term computer-readable medium includes computer storage media. Computer storage media may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, or program modules). System memory 104, removable storage device 109, and non-removable storage device 110 are all examples of computer storage media (i.e., memory storage). Computer storage media may include random access memory (RAM), read-only memory (ROM), electrically erasable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article that can be used to store information and can be accessed by computer device 100. According to one aspect, any such computer storage media may be part of computing device 100. Computer storage media does not include carrier waves or other propagated data signals.

[0037] According to one aspect, a communication medium is implemented by computer-readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transmission mechanism), and includes any information delivery medium. According to one aspect, the term "modulated data signal" describes a signal having one or more sets of characteristics or a signal that has been altered in a manner that encodes information in the signal. By way of example and not limitation, communication media include wired media such as a wired network or a direct wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.

[0038] Figure 2 FIG. 4 shows a flowchart of a method 200 for forcefully closing an application according to an embodiment of the present invention. The method 200 is adapted to be executed in a system monitor 150 of a computing device 100, and the method 200 includes steps S210 to S280.

[0039] First, start the system monitor 150 installed in the computing device 100, enter the user interface of the system monitor 150, and in response to the user's operation of triggering the right mouse button at any position in the user interface, execute step S210 to pop up a menu bar. A partial content of the graphical user interface of the system monitor after the menu bar is popped up is as Figure 3 shown. The menu bar 3-1 includes an interface 3-1-1 for forcefully closing an application.

[0040] When it is detected that the user triggers the interface 3-1-1 for forcefully closing an application, in response to this operation, execute step S220 to minimize the graphical user interface of the system monitor. And continue to execute step S230 to display the opened application windows on the desktop. The opened application windows can be one or more. Of course, the present invention does not limit the number of opened applications. For example, Figure 4 FIG. 14 shows a schematic diagram of a desktop with an opened application window in addition to the system monitor.

[0041] After displaying the opened application windows on the desktop, execute step S240 to obtain the application where the mouse cursor is located, and use the application to which the obtained application window belongs as the target application.

[0042] Figure 5 FIG. 21 shows a schematic diagram of the working process of obtaining the application window where the mouse cursor is located and using the application to which the window belongs as the target application according to an embodiment of the present invention. As Figure 5 shown, the working process of obtaining the application window where the mouse cursor is located and using the application to which the window belongs as the target application includes steps S510 to S560.

[0043] First, execute step S510 to obtain the coordinates of the display area of the application window displayed on the desktop, and determine the display areas of the respective application programs based on the obtained display area coordinates. It should be noted that the display area coordinates of any application window include the coordinates of four endpoints, and any endpoint coordinate includes an X coordinate, a Y coordinate, and a Z coordinate.

[0044] After obtaining the coordinates of the four endpoints of the display area of the opened application window, execute step S520 to monitor the coordinates of the mouse cursor. When the coordinates of the mouse cursor are within the display area of any application window on the desktop, execute step S530 to determine whether there is an overlapping window for the application window where the mouse cursor is located.

[0045] If there is an overlapping window for the application window where the mouse cursor is located, continue to execute step S540 to determine the application window with the largest Z coordinate among the multiple overlapping application windows, and use the application to which the determined application window belongs as the target application. If there is no overlapping window for the application where the mouse cursor is located, continue to execute step S550, and use the application to which the application window where the mouse cursor is located belongs as the target application.

[0046] The target application can be determined through the above steps S510 to S550. The target application here can be understood as the application that the user selects and needs to be forcibly closed.

[0047] It should be noted that in the present invention, as long as the opened application window is displayed on the desktop, regardless of whether the display area occupied by the application program on the desktop is large or small, as long as the mouse cursor is within the display area of the application window, the application to which the window belongs can be used as the target application, that is, regardless of whether the display area occupied by the application window on the desktop is large or small, as long as the mouse cursor is within the display area of the application window, the application to which the window belongs can be forcibly closed.

[0048] When multiple application programs are opened, multiple application windows will be displayed on the desktop, which will cause visual interference to the user in determining the target application. To facilitate the user in determining the target application, after determining the target application, execute step S250 to add a selected state to the target application window, and at the same time, pop up a prompt box for prompting the user to select the application that needs to be forcibly closed on the target application. Similarly, taking Figure 4 the example of opening an application other than the system monitor, that is, only one application window is displayed on the desktop. Then, the application window 6-1 with the selected state added and the displayed prompt box 6-2 are as Figure 6 shown ( Figure 6 the color is not shown).

[0049] The selected state is a way to mark the target application, which can be set according to the actual application scenario, and the present invention does not limit this. In one embodiment, the implementation of step S250 is as follows: Determine the size of the display area of the target application on the desktop according to the four endpoint coordinates of the target application window, create a window with the same size as the target application window in a preset color and preset transparency, and cover the newly created window on the target application window to add a selection state to the target application. The color and transparency of the covering window can be set according to the actual application scenario, and the present invention does not limit this. For example, the window color is red and the transparency is 70, Figure 6 (The color is not shown) shows the application window covering the window, and the covering window is red with a transparency of 70.

[0050] Of course, covering a window on the target application window, in addition to marking the target application so that the user can more intuitively determine the target application, since a new window is covered on the original window, any operation of the user on the covering window will not perform the corresponding action on the original window, so that when performing some specific operations on the covering window later, there will be no response on the original window.

[0051] Under the prompt of the prompt box, the user clicks the left mouse button on the covering window, and the system controller responds to the above operation and executes step S260 to pop up a dialog box. Similarly, taking Figure 4 showing that in addition to the system monitor, opening an application window as an example, the schematic diagram of the desktop where the dialog box pops up is as shown in Figure 7 shown. The dialog box includes a forced termination interface 7-1, a cancellation interface 7-2, and a prompt message 7-3 (There is a risk of data loss when forcibly terminating the application. Are you sure you want to end the selected application?). The user is reminded of the risk of forcibly terminating the application through the prompt message.

[0052] At this time, in response to the user's operation of clicking the forced termination interface, step S270 is executed to determine the process of the target application according to the obtained PID. After determining the process of the target application, step S280 is continued to be executed to delete the process of the target application. The method of deleting the process of the target application can be selected according to the actual application scenario, and the present invention does not limit this. In some embodiments, the process of the target application can be deleted through a deletion instruction. For example, the deletion instruction can be kill(pid, SIGKILL).

[0053] If the user clicks the cancellation interface 7-2 in the dialog box, in response to the user's operation of clicking the cancellation interface, step S240 is continued to be executed to obtain the application where the mouse cursor is located, and the application to which the obtained application window belongs is used as the target application.

[0054] In one embodiment, if the user needs to cancel the selected application, before the operation of clicking the left mouse button within the display area where the target application window is located, it is only necessary to move the mouse cursor outside the display area of the target application window. When the system controller detects this operation, the window covering the target application is deleted. At this time, the selected window is cancelled, and then steps S240 to 280 can be continued to determine the target application and force it to close.

[0055] Thus, the forced closing of the target application is achieved. Whenever it is necessary to force close an application, steps S210 to S280 need to be executed.

[0056] Figure 8 FIG. 8 shows a structural block diagram of a device 800 for forcibly closing an application according to an embodiment of the present invention. The device 800 for forcibly closing an application includes a display module 810, an acquisition module 820, and a forced application closing module 830 that are sequentially coupled.

[0057] The display module 810 is adapted to respond to an operation of triggering an interface for forcibly closing an application and display the opened application windows on the desktop.

[0058] The acquisition module 820 is adapted to acquire the application window where the mouse cursor is located, use the application to which the acquired application window belongs as the target application, and is adapted to acquire the PID of the target application.

[0059] The forced application closing module 830 is adapted to forcibly close the target application according to the acquired PID.

[0060] It should be noted that the working principle of the device 800 for forcibly closing an application is similar to that of the method 200 for forcibly closing an application described above. For the relevant parts, reference can be made to the description of the method 200 for forcibly closing an application above, and details will not be repeated here.

[0061] As can be seen from the above, the method for forcibly closing an application provided by the present invention, according to the solution for forcibly closing an application according to an embodiment of the present invention, responds to an operation of the user triggering an interface for forcibly closing an application, displays the opened application windows on the desktop, acquires the application window where the mouse cursor is located, uses the application to which the acquired application window belongs as the target application, acquires the PID of the target application, and forcibly closes the target application according to the acquired PID. It can be seen that compared with the method of the task manager, the method for forcibly closing an application of the present invention has a simpler implementation process, and the target application can be directly selected from the applications displayed on the desktop, enabling the user to more intuitively determine the target application and improving the user experience.

[0062] Moreover, in the present invention, a selected state is added to the selected application program, so as to facilitate the user to more intuitively determine the selected application program.

[0063] The various technologies described herein can be implemented in combination with hardware or software, or a combination thereof. Thus, the method and device of the present invention, or certain aspects or parts of the method and device of the present invention, may take the form of program code (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium. When the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.

[0064] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a processor-readable storage medium (including volatile and non-volatile memories and / or storage elements), at least one input device, and at least one output device. Among them, the memory is configured to store the program code; the processor is configured to execute the method for forcibly closing the application program of the present invention according to the instructions in the program code stored in the memory.

[0065] By way of example and not limitation, the readable medium includes a readable storage medium and a communication medium. The readable storage medium stores information such as computer-readable instructions, data structures, program modules, or other data. The communication medium generally embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and includes any information delivery medium. A combination of any of the above is also included within the scope of the readable medium.

[0066] In the specification provided herein, the algorithms and displays are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the examples of the present invention. Based on the above description, the structure required to construct such a system is obvious. In addition, the present invention is not directed to any particular programming language. It should be understood that the content of the present invention described herein can be implemented using various programming languages, and the description of the specific language above is for disclosing the best mode of the present invention.

[0067] In the specification provided herein, a large number of specific details are set forth. However, it can be understood that the embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures, and technologies have not been shown in detail so as not to obscure the understanding of this specification.

[0068] Similarly, it should be understood that, for the purpose of streamlining the present disclosure and facilitating the understanding of one or more of the various inventive aspects, in the foregoing description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, the disclosed method should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.

[0069] Those skilled in the art should understand that the modules, units, or components of the devices in the examples disclosed herein may be arranged in the devices as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or further divided into multiple sub-modules.

[0070] Those skilled in the art can understand that the modules in the devices of the embodiments can be adaptively changed and arranged in one or more devices different from this embodiment. The modules, units, or components in the embodiments can be combined into one module, unit, or component, and further can be divided into multiple sub-modules, sub-units, or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, any combination can be adopted to combine all the features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all the processes or units of any method or device so disclosed. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) can be replaced by an alternative feature that provides the same, equivalent, or similar purpose.

[0071] In addition, those skilled in the art can understand that, although some of the embodiments described herein include certain features included in other embodiments rather than other features, the combination of the features of different embodiments means that it is within the scope of the present invention and forms different embodiments.

[0072] In addition, some of the embodiments are described herein as a combination of methods or method elements that can be implemented by a processor of a computer system or by other devices performing the functions. Therefore, a processor having the necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein in the device embodiments are examples of the following devices: the device is used to implement the functions performed by the elements for the purpose of implementing the present invention.

[0073] As used herein, unless otherwise specified, use of the ordinal numbers “first,” “second,” “third,” and so forth to describe a common object merely indicates different instances of like objects and is not intended to imply that the objects so described must be in a given sequence, whether temporally, spatially, in ranking, or in any other manner.

[0074] Although the invention has been described in terms of a limited number of embodiments, those skilled in the art, having the benefit of the foregoing description, will appreciate that other embodiments can be devised within the scope of the invention as herein described. Additionally, it should be noted that the language used in this specification has been principally selected for readability and instructional purposes and not to limit or define the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. For the purposes of the present invention, the disclosure herein is illustrative, and not restrictive, the scope of the invention being defined by the appended claims.

Claims

1. A method for forcibly closing an application, which is executed in a system monitor, and the method includes: After entering the user interface of the system monitor, in response to the user's operation of triggering the right mouse button at any position in the user interface, a menu bar is popped up, and the menu bar includes an interface for forcibly closing the application; In response to the operation of triggering the interface for forcibly closing the application, minimize the graphical user interface of the system monitor, and display the opened application windows on the desktop; Obtain the application window where the mouse cursor is located, and use the application to which the obtained application window belongs as the target application; Obtain the process number of the target application; Forcibly close the target application according to the obtained process number.

2. The method according to claim 1, further including the step of: Determine the size of the display area of the target application window displayed on the desktop according to the coordinates of the target application window; Create a window of the same size as the target application window with a preset color and a preset transparency; Cover the newly created window on the target application window to indicate that the target application is selected.

3. The method according to claim 2, further including the step of: When it is detected that the mouse cursor moves outside the display area of the target application, delete the window covering the target application.

4. The method according to claim 3, further including the step of: Pop up a prompt box on the target application to prompt the user to select the application that needs to be forcibly closed.

5. The method according to claim 3, wherein The step of forcibly closing the target application according to the obtained process number includes: In response to the user's operation of clicking the mouse on the covering window, a dialog box is popped up, and the dialog box includes a forced termination interface; In response to the operation of clicking the forced termination interface, determine the process of the target application according to the obtained process number; Delete the process of the target application through a deletion instruction.

6. The method according to claim 1, wherein The step of obtaining the application window where the mouse cursor is located and using the application to which the obtained application window belongs as the target application includes: Obtain the coordinates of the display area of the application windows displayed on the desktop; Monitor the coordinates of the mouse cursor; According to the coordinates of the display areas of the respective application windows, determine the position areas of the respective application windows displayed on the desktop; When it is detected that the coordinates of the mouse cursor are within the position area of any application window on the desktop, use the application to which the application window where the mouse cursor is located belongs as the target application.

7. The method according to claim 6, wherein The display area coordinates of any one of the applications include the coordinates of four endpoints, and any one of the endpoint coordinates includes a Z coordinate. The step of using the application to which the application window where the mouse cursor is located belongs as the target application includes: Determine whether there are overlapping application windows at the position where the mouse cursor is located. If so, use the application to which the application window with the largest Z coordinate among the overlapping multiple application windows belongs as the target application.

8. An apparatus for forcibly closing an application, including: A display module, adapted to, after entering the user interface of the system monitor, in response to a user's operation of triggering the right mouse button at any position in the user interface, pop up a menu bar, wherein the menu bar includes an interface for forcibly closing an application, and in response to an operation of triggering the interface for forcibly closing the application, minimize the graphical user interface of the system monitor and display the opened application windows on the desktop; An acquisition module, adapted to acquire the application window where the mouse cursor is located, use the application to which the acquired application window belongs as the target application, and be adapted to acquire the process number of the target application; A module for forcibly closing an application, adapted to forcibly close the target application according to the acquired process number.

9. A computing device, comprising: At least one processor; And A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for performing the method according to any one of claims 1 to 7.

10. A readable storage medium storing program instructions, which, when read and executed by a computing device, cause the computing device to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Fast closing method and device of task window of notebook computer

    CN105700879A