A response control method, electronic device and computer storage medium

By introducing first and second control states into electronic devices, switching program modules respond to input information, and perform de-occlusion processing in the second control state, the problem of inconvenient operation of single-focus operating systems in multi-task scenarios is solved, and improvements are made Improve the flexibility of information response and user experience.

CN113849094BActive Publication Date: 2024-09-17LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111146081.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-28
Publication Date
2024-09-17
Estimated Expiration
2041-09-28

AI Technical Summary

Technical Problem

The single-focus operating system causes user inconvenience in multi-tasking scenarios, especially when dragging and dropping files and running multiple programs at the same time. It is easy to cause response failure due to window occlusion and input information transfer.

Method used

By introducing the first and second control states into the electronic device, the first and second program modules are respectively controlled to respond to input information from the input device, and the preset function keys are used to switch states to ensure the flexibility and convenience of information response, including in In the second control state, de-occlusion processing is performed to display all areas of the inactive window.

Benefits of technology

It improves the flexibility and convenience of information response, avoids drag failure and program suspension problems caused by window occlusion and input information transfer, and enhances the convenience of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113849094B
    Figure CN113849094B
Patent Text Reader

Abstract

The present application provides a response control method, an electronic device and a computer storage medium. The response control method is applied to an electronic device, and the electronic device runs a first program module and a second program module, the first program module has a first operation window, and the second program module has a second operation window, wherein the first operation window is an active window and the second operation window is an inactive window; the electronic device has a first control state and a second control state; the method includes: in response to the electronic device being in the first control state, controlling the first program module to respond to input information of the first input device; in response to the electronic device being in the second control state, controlling the second program module to respond to input information of the first input device. In this way, for the input signal of the first input device, different program modules are controlled to respond by switching the control state of the electronic device, thereby improving the flexibility and convenience of information response.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a response control method, an electronic device and a computer storage medium. Background Art

[0002] Currently, operating systems are generally single-focus operating systems, and the focus determines which window or control receives keyboard input information. However, in multi-tasking operation scenarios, the single-focus mechanism will bring a lot of inconvenience to users. Summary of the invention

[0003] The technical solution of this application is implemented as follows:

[0004] The embodiment of the present application provides a response control method, which is applied to an electronic device, and the electronic device runs a first program module and a second program module, the first program module has a first operation window, and the second program module has a second operation window, wherein the first operation window is an active window and the second operation window is an inactive window;

[0005] The electronic device has a first control state and a second control state;

[0006] In response to the electronic device being in the first control state, controlling the first program module to respond to input information of the first input device;

[0007] In response to the electronic device being in the second control state, the second program module is controlled to respond to input information of the first input device.

[0008] In some embodiments, the method further comprises:

[0009] When the electronic device is in the first control state or the second control state, the first program module is controlled to continuously respond to input information of the second input device so that the first operation window is always the active window; wherein the second input device is different from the first input device.

[0010] In some embodiments, when the electronic device is in the second control state, the method further includes:

[0011] It is determined whether there is an obstructed area in the second operation window; if there is an obstructed area in the second operation window, de-obstruction processing is performed on the second operation window to display the entire area of ​​the second operation window.

[0012] In some embodiments, the first input device is a mouse, and the input information of the first input device indicates to drag the target file icon in the first operation window; the method further includes:

[0013] Detect whether the preset function key is in an inactivated state; if the preset function key is in an inactivated state, determine that the electronic device is in a second control state to control the target file icon to be dragged into the second operation window; if the preset function key is in an activated state, determine that the electronic device is in a first control state to control the target file icon to return to the first operation window.

[0014] In some embodiments, the first input device is an audio input device, and the input information of the first input device indicates the transmission of voice data to the second program module; the method further includes:

[0015] Detect whether the preset function key is in an inactive state; if the preset function key is in an active state, determine that the electronic device is in a second control state to control the second program module to receive voice data; if the preset function key is in an inactive state, determine that the electronic device is in a first control state to ignore the voice data.

[0016] In some embodiments, the preset function keys include at least one of the following: an Esc function key, a Ctrl function key, an Alt function key, and a Shift function key.

[0017] In some embodiments, performing a de-blocking process on the second operation window includes:

[0018] The second operation window is placed on top; or the second operation window is moved upward until the entire area of ​​the second operation window is displayed.

[0019] In some embodiments, after performing the de-blocking process on the second operation window, the method further includes:

[0020] The transparency of all areas in the second operation window is adjusted to a preset value; or the transparency of the blocked area in the second operation window is adjusted to a preset value.

[0021] In a second aspect, an embodiment of the present application provides an electronic device, the electronic device running a first program module and a second program module, the first program module having a first operation window, the second program module having a second operation window, wherein the first operation window is an active window, and the second operation window is an inactive window; the electronic device has a first control state and a second control state;

[0022] The electronic device comprises a first response unit and a second response unit; wherein,

[0023] A first response unit, configured to control the first program module to respond to input information of the first input device in response to the electronic device being in the first control state;

[0024] The second response unit is configured to control the second program module to respond to the input information of the first input device in response to the electronic device being in the second control state.

[0025] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.

[0026] The embodiment of the present application provides a response control method, an electronic device, and a computer storage medium, which are applied to an electronic device, and the electronic device runs a first program module and a second program module, the first program module has a first operation window, and the second program module has a second operation window, wherein the first operation window is an active window and the second operation window is an inactive window; the electronic device has a first control state and a second control state; the method includes: in response to the electronic device being in the first control state, controlling the first program module to respond to input information of the first input device; in response to the electronic device being in the second control state, controlling the second program module to respond to input information of the first input device. In this way, when the electronic device executes multiple program modules, different program modules are controlled to respond by switching the control state of the electronic device for the input signal of the first input device, thereby improving the flexibility and convenience of information response. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A flow chart of a response control method provided in an embodiment of the present application;

[0028] Figure 2 A schematic diagram of a file dragging scenario provided for related technologies Figure 1 ;

[0029] Figure 3 A schematic diagram of a file dragging scenario provided for related technologies Figure 2 ;

[0030] Figure 4 A schematic diagram of a file dragging scenario provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;

[0033] Figure 7 A schematic diagram of a specific hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0035] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0036] It should be understood that, in order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that, in the embodiments of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented.

[0037] Currently, operating systems are generally single-focus operating systems, and the focus determines which window or control receives keyboard input information. In other words, although the operating system runs multiple programs at the same time, there is still only one focus at the same time, and only the program with the focus responds to the input information of the input device, which causes many inconveniences.

[0038] For example, in the scenario of dragging and dropping files, there are multiple display windows in the computer's operating system at the same time. In the process of dragging and dropping file icons, it is very easy for one window to be covered by another window, causing the drag to fail. For another example, the mobile phone's operating system runs a game program and a WeChat program at the same time. When the user uses a keyboard, mouse, etc. to control the game program, if the user replies to a WeChat message through an audio device such as a microphone, the focus is transferred to the WeChat program, and the WeChat program needs to respond to all input information. In this way, although the keyboard and mouse are not involved in the process of the user replying to the WeChat message, the game program cannot receive new input information from the keyboard / mouse, which causes the game to pause.

[0039] The embodiment of the present application provides a response control method, which is applied to an electronic device, and the electronic device runs a first program module and a second program module, the first program module has a first operation window, the second program module has a second operation window, wherein the first operation window is an active window, and the second operation window is an inactive window; the electronic device has a first control state and a second control state; the method includes: in response to the electronic device being in the first control state, controlling the first program module to respond to input information of a first input device; in response to the electronic device being in the second control state, controlling the second program module to respond to input information of the first input device. In this way, when the electronic device executes multiple program modules, different program modules are controlled to respond by switching the control state of the electronic device for the input signal of the first input device, thereby improving the flexibility and convenience of information response.

[0040] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0041] In one embodiment of the present application, a response control method is provided, which is applied to an electronic device, which runs a first program module and a second program module, the first program module has a first operation window, the second program module has a second operation window, wherein the first operation window is an active window and the second operation window is an inactive window.

[0042] The electronic device has a first control state and a second control state, see Figure 1 , which shows a flow chart of a response control method provided by an embodiment of the present application. Figure 1 As shown, the response control method may include:

[0043] S101: In response to the electronic device being in a first control state, controlling a first program module to respond to input information of a first input device.

[0044] S102: In response to the electronic device being in the second control state, controlling the second program module to respond to input information of the first input device.

[0045] It should be noted that the electronic device may include a mobile phone, a personal computer, a tablet computer, a laptop computer, a smart watch, a vehicle-mounted device, a personal digital assistant (PDA), etc. Here, the active window is the current working window.

[0046] The first input device may be any pre-specified input device, such as a keyboard, a mouse, an audio input device, an image input device, etc. The electronic device has two different control states, which respectively allow the active window (first program module) to respond to input information of the first input device, and allow the inactive window (second program module) to respond to input information of the second input device.

[0047] It should be understood that for an electronic device, there can only be one active window at the same time, but there can be multiple inactive windows at the same time. Therefore, at the same time, the electronic device can include a first program module and multiple second program modules. That is, in the first control state of the electronic device, only the first program module can respond to the input information of the first input device; in the second control state of the electronic device, all the second program modules can respond to the input information of the second input device.

[0048] Furthermore, in some embodiments, the input information of the first input device does not affect the definition of the active window. In other words, the window of the first program module is always the active window. Therefore, the method may further include:

[0049] When the electronic device is in the first control state or the electronic device is in the second control state, the first program module is controlled to continuously respond to input information of the second input device, so that the first operation window is always the active window.

[0050] It should also be noted that the input information of the second input device determines the definition of the active window. Regardless of which control state the electronic device is in, the first program module will respond to the input information of the second input device to maintain the first operating window as the active window. Here, the second input device is different from the first input device.

[0051] It should be noted that the switching between the first control state and the second control state can be performed in a variety of ways, such as hot key switching, selection command switching, etc., which needs to be determined according to the actual application scenario. When using hot keys to switch control states, the preset function keys include a variety of options, such as the Esc function key, the Ctrl function key, the Alt function key, and the Shift function key, etc., and can also be mouse buttons, mouse wheels, etc.

[0052] In a specific embodiment, the response control method is described by taking file dragging as a specific scenario. The first input device is a mouse, and the input information of the first input device indicates to drag the target file icon in the first operation window; the method may also include:

[0053] Detect whether the preset function button is in an inactive state;

[0054] If the preset function button is in an inactive state, determining that the electronic device is in a second control state, so as to control the target file icon to be dragged into the second operation window;

[0055] If the preset function button is in an activated state, it is determined that the electronic device is in a first control state, so as to control the target file icon to return to the first operation window.

[0056] It should be noted that in the file dragging scenario, at least two file windows are involved. At this time, it can be considered that the file window in the active state corresponds to the first program module, and the file window in the inactive state corresponds to the second program module.

[0057] In related art, see Figure 2 , which shows a schematic diagram of a file dragging scenario provided by the related art Figure 1 .like Figure 2 As shown in the figure, in this scenario, there are windows 1 and 2, and you want to move the target file (the circled file) in window 2 to the target folder (the circled folder) in window 1. However, this process may fail to drag and drop due to problems such as window obstruction. Figure 3 , which shows a schematic diagram of a file dragging scenario provided by the related art Figure 2 .like Figure 3 As shown, in this scenario, when the target file icon is selected and dragged, since window 2 is the active window and the target folder in window 1 is blocked by window 2, the target file icon cannot be quickly dragged into the target folder.

[0058] In the implementation of the present application, the electronic device has two response states, using different file windows to respond to the mouse dragging action, thereby solving the above problem. In particular, different response states in the electronic device are switched by preset function keys (or hot keys), thereby avoiding the above problem.

[0059] Specifically, on the one hand, when the user activates the preset function button, the electronic device enters the second control state, and the window corresponding to the second program module (inactive window) responds to the mouse operation. Therefore, even if an inactive window is blocked by the active window, it is still the inactive window that responds to the mouse operation, so that the target file icon can be smoothly dragged into the second operation window; on the other hand, when the user does not activate the preset function button, the electronic device enters the first control state, that is, only the window corresponding to the first program module (active window) responds to the mouse operation, so that the target file icon can be moved to other folders in the first operation window, or the target file icon returns to the original folder in the first operation window (equivalent to canceling the drag).

[0060] In this way, in the file dragging scenario, through the preset function keys, the electronic device can use different file windows to respond to the input operation of the first input device, allowing the user to drag the target file icon to any location, thereby improving the flexibility of information response and user convenience.

[0061] In another specific embodiment, the response control method is described using voice input as a specific scenario. The first input device is an audio input device, and the input information of the first input device indicates that voice data is transmitted to the second program module; the method may also include:

[0062] Detect whether the preset function button is in an inactive state;

[0063] If the preset function key is in an activated state, determining that the electronic device is in a second control state to control the second program module to receive voice data;

[0064] If the preset function key is in an inactive state, it is determined that the electronic device is in a first control state to ignore the voice data.

[0065] It should be noted that, assuming that the first program module is a game and the second program module is WeChat, when the user uses an audio input device to reply to a WeChat message, the operation window corresponding to WeChat becomes the active window, so that the game cannot receive input information input by the mouse / keyboard, etc., causing the game to be suspended, causing inconvenience to the user.

[0066] In the embodiment of the present application, on the one hand, when the preset function key is in an activated state, the electronic device enters the second control state, and the WeChat program receives the voice data of the audio input device, so that the user can reply to the WeChat message, and at the same time the game still normally receives the input information input by the mouse / keyboard, etc., so that the two sides do not affect each other. On the other hand, when the preset function key is in an inactive state, the electronic device enters the first control state, and since the game program cannot process the input voice data, it will ignore the voice data.

[0067] In particular, if the first program module is capable of processing voice data, then in the first control state, the first program module will respond to the voice data.

[0068] Furthermore, in some embodiments, when the electronic device is in the second control state, the method further includes:

[0069] Determine whether there is an obstructed area in the second operation window;

[0070] If there is an obstructed area in the second operation window, the second operation window is unobstructed to display the entire area of ​​the second operation window.

[0071] It should be noted that when the electronic device is in the second control state, the second program module needs to respond to the input information of the first input device, but at this time, the second operation program module corresponding to the second program module is essentially still an inactive window, and the first operation window corresponding to the first program module is the active window. Generally speaking, the active window is in the top state and may block part of the second operation window. In addition, a second operation window may also be blocked by another second operation window.

[0072] Therefore, in the second control state, it is also necessary to determine whether the second operation window currently used to respond to the first input device has an obstructed area, and if the second operation window has an obstructed area, unobstruction processing is performed. In this way, the entire area of ​​the second operation window is in a display state, which is convenient for users to operate.

[0073] In some embodiments, performing a de-blocking process on the second operation window may include:

[0074] The second operation window is placed on top; or

[0075] The second operation window is moved upward until the entire area of ​​the second operation window is displayed.

[0076] It should be noted that if there is an obstructed area in the second operation window, the second operation window may be placed on top, or the second operation window may be moved upward to display all areas of the second operation window.

[0077] In particular, in the related art, the active window is generally in a top-fixed state; in the embodiment of the present application, the active window is decoupled from the top-fixed state to allow a certain inactive window to be in a top-fixed state.

[0078] In the file dragging scenario, such as Figure 3 As shown, in the related art, selecting the target file icon causes window 2 to become the active window, so that window 2 partially covers window 1; see Figure 4 , which shows a schematic diagram of a file dragging scenario provided by an embodiment of the present application. Figure 4 As shown, in an embodiment of the present application, after the target file icon is selected, although window 2 is the active window, the electronic device can be controlled to enter the second control state, using window 1 to respond to the mouse operation, and window 1 is placed on top so that all areas of window 1 can be displayed.

[0079] In some embodiments, after performing the de-blocking process on the second operation window, the method may further include:

[0080] The transparency of all areas in the second operation window is adjusted to a preset value; or the transparency of the blocked area in the second operation window is adjusted to a preset value.

[0081] It should be noted that after the second operation window is placed on top or moved up, the second operation window will block the first operation window or other second operation windows, which will also bring some changes. Therefore, after the second operation window is placed on top or moved up, the transparency value of all areas in the second operation window can be adjusted to a preset value, or the transparency of the blocked area can be adjusted to a preset value, so as to maximize the presentation of information in different windows. Here, the preset value can be set in advance, such as 0.5.

[0082] That is to say, in order to facilitate pre-drag, Figure 4 Window 1 in the example is set to a certain transparency. At this time, window 1 does not completely cover window 2, but rather presents window 1 and the folder in window 2 below window 1 in a certain proportion. The user can operate window 1 through the first input device and can also operate window 2 through the second input device, and can see the contents of windows 1 and 2 at the same time.

[0083] In this way, when the target file icon in window 2 needs to be dragged and dropped into window 1, the window of window 1 can be pinned to the top of the desktop with a certain degree of transparency to avoid dragging failure caused by window obstruction.

[0084] The embodiment of the present application provides a response control method, which is applied to an electronic device, and the electronic device runs a first program module and a second program module, the first program module has a first operation window, the second program module has a second operation window, wherein the first operation window is an active window, and the second operation window is an inactive window; the electronic device has a first control state and a second control state; the method includes: in response to the electronic device being in the first control state, controlling the first program module to respond to input information of the first input device; in response to the electronic device being in the second control state, controlling the second program module to respond to input information of the first input device. In this way, when the electronic device executes multiple program modules, different program modules are controlled to respond by switching the control state of the electronic device for the input signal of the first input device, thereby improving the flexibility and convenience of information response.

[0085] In another embodiment of the present application, see Figure 5, which shows a schematic diagram of the composition structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 runs a first program module and a second program module, the first program module has a first operation window, the second program module has a second operation window, wherein the first operation window is an active window, and the second operation window is an inactive window; the electronic device has a first control state and a second control state;

[0086] The electronic device 20 includes a first response unit 201 and a second response unit 202; wherein,

[0087] The first response unit 201 is configured to control the first program module to respond to input information of the first input device in response to the electronic device being in the first control state;

[0088] The second response unit 202 is configured to control the second program module to respond to the input information of the first input device in response to the electronic device being in the second control state.

[0089] In some embodiments, Figure 6 As shown, the electronic device 20 also includes a third response unit 203, which is configured to control the first program module to continuously respond to input information of the second input device when the electronic device is in the first control state or the electronic device is in the second control state, so that the first operation window is always the active window; wherein the second input device is different from the first input device.

[0090] In some embodiments, when the electronic device is in the second control state, the second response unit 202 is configured to determine whether there is an obstructed area in the second operation window; if there is an obstructed area in the second operation window, the second operation window is de-obstructed to display the entire area of ​​the second operation window.

[0091] In some embodiments, Figure 6 As shown, the electronic device 20 also includes a determination unit 204, which is configured such that the first input device is a mouse, and the input information of the first input device indicates that the target file icon in the first operation window is dragged and dropped; the judgment unit 204 is configured to detect whether the preset function key is in an inactivated state; if the preset function key is in an inactivated state, it is determined that the electronic device is in a second control state to control the target file icon to be dragged into the second operation window; if the preset function key is in an activated state, it is determined that the electronic device is in a first control state to control the target file icon to return to the first operation window.

[0092] In some embodiments, the first input device is an audio input device, and the input information of the first input device indicates the transmission of voice data to the second program module; the determination unit 204 is configured to detect whether the preset function key is in an inactivated state; if the preset function key is in an activated state, it is determined that the electronic device is in a second control state to control the second program module to receive voice data; if the preset function key is in an inactivated state, it is determined that the electronic device is in a first control state to ignore the voice data.

[0093] In some embodiments, the preset function keys include at least one of the following: an Esc function key, a Ctrl function key, an Alt function key, and a Shift function key.

[0094] In some embodiments, the second response unit 202 is further configured to place the second operation window on top; or move the second operation window upward until the entire area of ​​the second operation window is displayed.

[0095] In some embodiments, the second response unit 202 is further configured to adjust the transparency of all areas in the second operation window to a preset value after de-occluding the second operation window; or adjust the transparency of the occluded area in the second operation window to a preset value.

[0096] It can be understood that in this embodiment, a "unit" can be a part of a circuit, a part of a processor, a part of a program or software, etc., and of course it can also be a module, or it can be non-modular. Moreover, the components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional module.

[0097] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a service device, or a network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0098] Therefore, this embodiment provides a computer storage medium, which stores a computer program. When the computer program is executed by at least one processor, the steps of the response control method in any one of the aforementioned embodiments are implemented.

[0099] Based on the above-mentioned composition of an electronic device 20 and a computer storage medium, see Figure 7 , which shows a specific hardware structure diagram of an electronic device 20 provided in an embodiment of the present application. Figure 7 As shown, it may include: a communication interface 301, a memory 302 and a processor 303; each component is coupled together through a bus system 304. It is understood that the bus system 304 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 304 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 7 Various buses are labeled as bus system 304. Among them, the communication interface 301 is used for receiving and sending signals in the process of sending and receiving information between other external network elements;

[0100] Memory 302, used to store computer programs that can be run on processor 303;

[0101] The processor 303 is configured to execute, when running the computer program:

[0102] In response to the electronic device being in the first control state, controlling the first program module to respond to input information of the first input device;

[0103] In response to the electronic device being in the second control state, the second program module is controlled to respond to input information of the first input device.

[0104] It can be understood that the memory 302 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory 302 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0105] The processor 303 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 303. The above processor 303 may be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 302, and the processor 303 reads the information in the memory 302 and completes the steps of the above method in combination with its hardware.

[0106] It is understood that the embodiments described in the present application can be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions of the present application or a combination thereof.

[0107] For software implementation, the technology of the present application can be implemented by a module (e.g., a process, a function, etc.) that performs the functions of the present application. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0108] Optionally, as another embodiment, the processor 303 is further configured to execute the steps of the method in any one of the aforementioned embodiments when running the computer program.

[0109] The above are only preferred embodiments of the present application and are not intended to limit the protection scope of the present application.

[0110] It should be noted that, in this application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0111] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0112] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0113] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0114] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0115] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A response control method is applied to an electronic device, wherein the electronic device runs a first program module and a second program module, the first program module has a first operation window, and the second program module has a second operation window, wherein: The first operation window is an active window, and the second operation window is an inactive window; The electronic device has a first control state and a second control state; the method comprises: In response to the electronic device being in a first control state, controlling the first program module to respond to input information of a first input device; In response to the electronic device being in a second control state, controlling the second program module to respond to input information of the first input device; In both the first control state and the second control state, the second operation window is an inactive window.

2. The response control method according to claim 1, further comprising: When the electronic device is in a first control state or in a second control state, the first program module is controlled to continuously respond to input information of a second input device so that the first operation window is always the active window; wherein the second input device is different from the first input device.

3. The response control method according to claim 1, wherein when the electronic device is in the second control state, the method further comprises: Determine whether the second operation window has an obstructed area; If there is an obstructed area in the second operation window, de-obstruction processing is performed on the second operation window to display the entire area of ​​the second operation window.

4. The response control method according to claim 1, wherein the first input device is a mouse, and the input information of the first input device indicates to drag and drop the target file icon in the first operation window; the method further comprises: Detect whether the preset function button is in an inactive state; If the preset function button is in an inactive state, determining that the electronic device is in a second control state, so as to control the target file icon to be dragged into the second operation window; If the preset function button is in an activated state, it is determined that the electronic device is in a first control state, so as to control the target file icon to return to the first operation window.

5. The response control method according to claim 1, wherein the first input device is an audio input device, and the input information of the first input device indicates the transmission of voice data to the second program module; The method further comprises: Detect whether the preset function button is in an inactive state; If the preset function button is in an activated state, determining that the electronic device is in a second control state to control the second program module to receive the voice data; If the preset function button is in an inactive state, it is determined that the electronic device is in a first control state to ignore the voice data.

6. According to the response control method of claim 4 or 5, the preset function keys include at least one of the following: an Esc function key, a Ctrl function key, an Alt function key, and a Shift function key.

7. The response control method according to claim 3, wherein the de-blocking process is performed on the second operation window, comprising: placing the second operation window on top; or The second operation window is moved upward until the entire area of ​​the second operation window is displayed.

8. The response control method according to claim 3, after performing the de-blocking process on the second operation window, the method further comprises: Adjusting the transparency of all areas in the second operation window to a preset value; Alternatively, the transparency of the blocked area in the second operating window is adjusted to the preset value.

9. An electronic device, the electronic device running a first program module and a second program module, the first program module having a first operation window, the second program module having a second operation window, wherein: The first operation window is an active window, and the second operation window is an inactive window; the electronic device has a first control state and a second control state; The electronic device comprises a first response unit and a second response unit; wherein, The first response unit is configured to control the first program module to respond to input information of a first input device in response to the electronic device being in a first control state; The second response unit is configured to control the second program module to respond to input information of the first input device in response to the electronic device being in a second control state; in the first control state and the second control state, the second operation window is an inactive window.

10. A computer storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of any one of the methods of claims 1 to 8.