CN111580717B - Control method and device - Google Patents

Control method and device Download PDF

Info

Publication number
CN111580717B
CN111580717B CN202010362152.1A CN202010362152A CN111580717B CN 111580717 B CN111580717 B CN 111580717B CN 202010362152 A CN202010362152 A CN 202010362152A CN 111580717 B CN111580717 B CN 111580717B
Authority
CN
China
Prior art keywords
display unit
application process
target
target application
window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010362152.1A
Other languages
Chinese (zh)
Other versions
CN111580717A (en
Inventor
单震生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010362152.1A priority Critical patent/CN111580717B/en
Publication of CN111580717A publication Critical patent/CN111580717A/en
Application granted granted Critical
Publication of CN111580717B publication Critical patent/CN111580717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The method outputs prompt information of the position of the target application process to prompt the display position of the target application process under the condition that the target application process is determined to be at least partially displayed on an extended display unit of the electronic equipment based on window position information, and/or generates at least one switching control, so that a corresponding window of the target application process is conveniently switched to a corresponding display unit to be displayed, the display unit can be ensured to be switched in time, the influence on the operation of a personal computer is reduced, and the operation efficiency is improved.

Description

Control method and device
Technical Field
The present disclosure relates to display technologies, and in particular, to a control method and apparatus.
Background
During the use of the personal computer, the single display may not meet the display requirement, and in order to meet the display requirement, the projection mode of the personal computer display may be set to the extended mode, and the extended display shares the display pressure of the personal computer display.
Of course, in the extended mode, especially when the extended display is in a screen-off or power-off state, the display window position of the required application process cannot be known or determined, which leads to low operation efficiency.
Disclosure of Invention
The application provides the following technical scheme:
one aspect of the present application provides a control method, including:
a control method, comprising:
obtaining window position information of at least one application process of the electronic equipment;
under the condition that the target application process is determined to be at least partially displayed on the expansion display unit of the electronic equipment based on the window position information, outputting prompt information of the position of the target application process, and/or generating at least one switching control;
the switching control is at least used for switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment.
The obtaining of the window position information of at least one application process of the electronic device includes:
under the condition that the electronic equipment is determined to enter the expansion mode, acquiring a process ID of at least one application process of the electronic equipment;
under the condition that only a main window handle of the application process is obtained based on the process ID, determining window position information of each application process based on a display unit identifier corresponding to the main window handle; or the like, or, alternatively,
and under the condition that the main window handle and the sub-window handle of the application process are obtained based on the process ID, determining the main window position information and the sub-window position information of each application process based on the display unit identifications respectively corresponding to the main window handle and the sub-window handle.
Wherein, still include: determining a target application process based at least on the input satisfying the condition;
the determining a target application process based on at least the input satisfying the condition comprises:
obtaining at least one first input acting on a task bar of the electronic equipment, and determining an application icon determined by the first input as the target application process; or the like, or, alternatively,
obtaining at least one second input acting on a task view of the electronic equipment, and determining the target application process at least based on an application window acted by the second input; or the like, or, alternatively,
obtaining at least one third input acting on the application process of the electronic equipment, and determining the application process acted by the third input as the target application process; or the like, or, alternatively,
obtaining at least one fourth input acting on a desktop application of the electronic equipment, and determining an application process created based on the fourth input acting on a target application icon in the desktop application as the target application process.
Wherein determining that the target application process is at least partially displayed on the extended display unit of the electronic device comprises:
determining that the target application process is at least partially displayed on an extension display unit of the electronic equipment under the condition that the target application process only has a main window handle and the main window handle at least corresponds to an extension display unit identifier; or the like, or, alternatively,
and under the condition that any one of the main window handle and the sub window handle of the target application process at least corresponds to the extension display unit identifier, determining that the target application process is at least partially displayed on the extension display unit of the electronic equipment.
The method for generating the switching control comprises the following steps of outputting prompt information of the position of the target application process, and/or generating at least one switching control, wherein the prompt information comprises the following steps:
based on the input of the determined target application process, displaying a thumbnail of the target application process so as to output the prompt information on the thumbnail, and/or generating at least one switching control; or the like, or, alternatively,
outputting the prompt information at a target display unit determined from a display unit of the electronic equipment, and/or generating at least one switching control; or the like, or, alternatively,
outputting the prompt information at a target display unit determined from an extended display unit of the electronic equipment, and/or generating at least one switching control; or the like, or, alternatively,
under the condition that the thumbnail of the target application process is not displayed on the determined target display unit, respectively outputting the prompt information and generating at least one switching control on the thumbnail and the target display unit; or the like, or, alternatively,
and under the condition that the thumbnail of the target application process is displayed on the determined target display unit, outputting the prompt information and/or generating at least one switching control in the thumbnail and/or other display areas except the thumbnail in the target display unit.
Wherein displaying a thumbnail of a target application process based on an input identifying the target application process comprises:
displaying the thumbnail on the main display unit in a first manner or displaying the thumbnail on the auxiliary display unit in a second manner based on the input in a case where the electronic device itself has at least two display units and a main display unit or an auxiliary display unit among them is determined as the target display unit; or the like, or, alternatively,
in the case that the electronic device has at least two display units and a main display unit or an auxiliary display unit is determined as the target display unit, displaying thumbnails of the at least two target application processes on the main display unit and the auxiliary display unit respectively in a third mode or displaying thumbnails of the at least two target application processes on the auxiliary display unit respectively in a fourth mode based on at least two inputs for determining the target application processes; or the like, or, alternatively,
and in the case that the electronic equipment is connected with at least two extended display units and a target extended display unit in which a corresponding window of a target application process is not displayed is determined as the target display unit, displaying the thumbnail on the target extended display unit in a fifth mode and/or displaying the thumbnail on a display unit of the electronic equipment based on the input in a sixth mode.
Wherein outputting the prompt information and/or generating at least one switching control comprises:
obtaining position information of a target object, outputting the prompt information on a target display unit and/or a thumbnail corresponding to the position information and/or generating at least one switching control; or the like, or, alternatively,
under the condition that the input of the target application process is unique, synchronously or asynchronously outputting the prompt information on the target display unit and/or the thumbnail and generating a switching control; or the like, or, alternatively,
under the condition that the input of the target application process is determined not to be unique, synchronously or asynchronously outputting the prompt information on the target display unit and the thumbnail or respectively generating the switching control; or the like, or, alternatively,
and generating the switching control at the target display unit and/or the thumbnail based on the input of the determined target application process, wherein the switching control displays prompt information of the position of the window corresponding to the target application process.
Wherein switching the corresponding window of the target application process to a target extended display unit of the electronic device or a display unit of the electronic device comprises:
switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment based on at least operation acting on the at least one switching control; or the like, or, alternatively,
the method comprises the steps of obtaining state information of display equipment where a window corresponding to a target application process is located, and switching the window corresponding to the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment under the condition that the state information meets a preset condition.
Wherein, switching the corresponding window of the target application process to a target extension display unit of the electronic device or a display unit of the electronic device comprises:
under the condition that the target expansion display unit is determined as the target display unit, obtaining current running window information of the target expansion display unit, and switching a corresponding window of the target application process to the target expansion display unit according to the running window information; or the like, or a combination thereof,
under the condition that one of a plurality of display units of the electronic equipment is determined as a target display unit, obtaining current display parameters of other display units of the electronic equipment so as to switch a corresponding window of the target application process to the other display units of the electronic equipment based on the display parameters; or the like, or, alternatively,
under the condition of simultaneously obtaining switching instructions of the corresponding windows of at least two target application processes, displaying the corresponding windows of the at least two target application processes on one display unit meeting the display parameter condition or respectively displaying the corresponding windows of the at least two target application processes on at least two display units meeting the display parameter condition based on the obtained display parameters of the display units of the electronic equipment.
Another aspect of the present application provides a control apparatus including:
the window position information acquisition module is used for acquiring window position information of at least one application process of the electronic equipment;
the prompting and switching module is used for outputting the prompting information of the position of the target application process and/or generating at least one switching control under the condition that the target application process is determined to be at least partially displayed on the expansion display unit of the electronic equipment based on the window position information;
the switching control is at least used for switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment.
A third aspect of the present application provides an electronic device comprising:
a memory for storing at least one set of instructions;
a processor for calling and executing the instruction set in the memory, and executing the control method according to any one of the above items by executing the instruction set.
The fourth aspect of the present application also provides a storage medium having stored thereon a computer program, which is executed by a processor, implementing the steps of the control method according to any one of the above.
Compared with the prior art, the beneficial effect of this application is:
in the application, under the condition that the target application process is determined to be at least partially displayed on the extended display unit of the electronic device based on the window position information, the prompt information of the position of the target application process is output to prompt the display position of the target application process, and/or at least one switching control is generated, so that the corresponding window of the target application process is conveniently switched to the corresponding display unit to be displayed, the display unit can be ensured to be switched timely, the influence on the operation of the personal computer is reduced, and the operation efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of embodiment 1 of a control method provided in the present application;
fig. 2 is a schematic flow chart of embodiment 2 of a control method provided in the present application;
FIG. 3 is a schematic diagram of an implementation scenario of a control method provided in the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart of a control method provided in embodiment 1 of the present application is illustrated, where the method may be applied to an electronic device, and the present application does not limit a product type of the electronic device, and as shown in fig. 1, the method may include, but is not limited to, the following steps:
step S101, obtaining window position information of at least one application process of the electronic equipment.
In this embodiment, the window position information may be understood as: at least information for determining a display unit on which to display the application process.
The process of obtaining window position information of at least one application process of the electronic device may include, but is not limited to:
s1011, under the condition that the electronic equipment is determined to enter the expansion mode, acquiring a process ID of at least one application process of the electronic equipment.
The extended mode may be understood as: a mode of extending a display range of an electronic device. In the extended mode, the electronic device may display different or the same application processes on at least one display unit of the electronic device itself and at least one extended display unit, respectively. For example, a web page is displayed on the display unit of one electronic device itself, and a document editing page is displayed on another extended display unit; or, a first document editing sub-page is displayed on a display unit of the electronic equipment, and a second document editing sub-page is displayed on another extended display unit, wherein the first document editing sub-page and the second document editing sub-page are pages which are displayed by dividing a complete page of the same document editing process on different display units, and the first document editing sub-page and the second document editing sub-page do not have mutually overlapped parts.
Wherein, the electronic device may be determined to enter the extended mode by, but not limited to:
when the display card interface of the electronic equipment is detected to be connected with a matched data line (such as an HDMI connecting line or a DP connecting line), determining that the electronic equipment enters an expansion mode;
or, when the display mode of the electronic equipment is set to the expansion mode, determining that the electronic equipment enters the expansion mode.
In this embodiment, the process ID of at least one application process of the electronic device may be obtained in a process enumeration manner. Specifically, the process ID of at least one application process on the taskbar may be obtained by enumerating the processes on the taskbar. And the obtained process ID of at least one application process on the task bar can be stored. Under the condition of saving the process ID of at least one application process, the process ID can be directly searched in the saved process ID when the process ID is required to be used subsequently, and the obtaining efficiency of the process ID is improved.
S1012, obtaining a window handle of each application process based on the process ID of at least one application process, and determining window position information of each application process based on the display unit identification corresponding to the window handle.
The display unit identification can be understood as: and the mark represents the identity of the display unit. The display unit identification may be, but is not limited to: a display handle. The display handles of each display unit are different, and one display unit can be uniquely determined by each display handle.
Based on the process ID of at least one application process, the window handle of each application process can be searched, and the window handle of each application process can be obtained. And may save the window handle for each application process. Under the condition of saving the window handle of each application process, when the window handle is required to be used subsequently, the window handle can be directly searched in the saved window handle, and the obtaining efficiency of the window handle is improved.
Each application process includes at least a main window, and of course, the main window may include sub-windows. The main window and the sub-window may be on the same display unit, or certainly, they may not be on the same display unit. For example, after opening a sub-window in a main window in the main display unit and moving the sub-window only into the extended display unit, the main window is in the main display unit and the sub-window is in the extended display unit. In a case where each application process only includes a main window, obtaining a window handle of each application process based on a process ID of at least one application process, and determining window position information of each application process based on a display unit identifier corresponding to the window handle, may include:
and under the condition that only the main window handle of the application process is obtained based on the process ID, determining the window position information of each application process based on the display unit identification corresponding to the main window handle.
Determining window position information of each application process based on the display unit identifier corresponding to the main window handle may include:
and determining the information of the display position of each application process in the display unit corresponding to the display unit identifier based on the main window handle, and taking the information of the display position as the window position information of each application process.
In addition, corresponding to a case where each application process includes a main window and a sub-window, obtaining a window handle of each application process based on a process ID of at least one application process to determine window position information of each application process based on a display unit identifier corresponding to the window handle may include:
and under the condition that the main window handle and the sub-window handle of the application process are obtained based on the process ID, determining the main window position information of each application process based on the display unit identifier corresponding to the main window handle, and determining the sub-window position information of each application process based on the display unit identifier corresponding to the sub-window handle.
It should be noted that the display unit identifier corresponding to the main window handle may be the same as or different from the display unit identifier corresponding to the sub-window handle. And under the condition that the display unit identifier corresponding to the main window handle is the same as the display unit identifier corresponding to the sub-window handle, indicating that the main window corresponding to the main window handle and the sub-window corresponding to the sub-window handle are in the same display unit. And under the condition that the display unit identifier corresponding to the main window handle is different from the display unit identifier corresponding to the sub-window handle, indicating that the word windows corresponding to the main window handle and the sub-window handle are in different display units.
Step S102, under the condition that at least part of the target application process is determined to be displayed on an expansion display unit of the electronic equipment based on the window position information, outputting prompt information of the position of the target application process, and/or generating at least one switching control;
the switching control is at least used for switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment.
In this embodiment, after the window corresponding to the target application process is switched to the target extension display unit of the electronic device or the display unit of the electronic device, the output prompt information of the position where the target application process is located may be cleared, and/or at least one switching control may be used, thereby avoiding causing a misoperation.
Of course, after the window corresponding to the target application process is switched to the target extension display unit of the electronic device, the stored process ID and the window handle of the target application process may also be cleared, so as to save the storage space of the electronic device.
The target application process may be understood as: the selected application process in the at least one application process of the electronic equipment.
The extended display unit of the electronic device can be understood as follows: and a display unit different from the main display unit set by the electronic device. The display unit different from the main display unit set by the electronic device may be a display unit of the electronic device itself and/or a display unit externally connected to the electronic device. The display unit externally connected with the electronic equipment is different from the display unit of the electronic equipment.
The main display unit set by the electronic device has a function different from other display units of the electronic device, for example, the main display unit set by the electronic device has a display function and a function of operating a corresponding control, and the other display units of the electronic device only have the display function. The main display unit set by the electronic device can be, but is not limited to: the display unit of the electronic equipment or the display unit externally connected with the electronic equipment.
Corresponding to the step S101 of obtaining a related introduction of window position information of at least one application process of the electronic device, a process of determining, based on the window position information, that a target application process is at least partially displayed on an extended display unit of the electronic device may include:
under the condition that the target application process only has a main window handle and the main window handle at least corresponds to the extension display unit identifier, determining that the target application process is at least partially displayed on an extension display unit of the electronic equipment;
or the like, or, alternatively,
and under the condition that any one of the main window handle and the sub-window handle of the target application process at least corresponds to the extension display unit identifier, determining that the target application process is at least partially displayed on the extension display unit of the electronic equipment.
The extended display unit identifier may be understood as: and the mark of a display unit externally connected with the electronic equipment.
Of course, in a case that the display unit externally connected to the electronic device is set as the main display unit of the electronic device, the process of determining that the target application process is at least partially displayed on the extended display unit of the electronic device based on the window position information corresponding to the process of obtaining the related description of the window position information of the at least one application process of the electronic device in step S101 may include:
under the condition that the target application process only has a main window handle and the main window handle at least corresponds to the extension display unit identifier, determining that the target application process is at least partially displayed on the extension display unit of the electronic equipment;
or the like, or, alternatively,
under the condition that any one of the main window handle and the sub window handle of the target application process at least corresponds to the extension display unit identifier, determining that at least part of the target application process is displayed on the extension display unit of the electronic equipment;
or the like, or, alternatively,
determining that the target application process is at least partially displayed on an extended display unit of the electronic equipment under the condition that the target application process only has a main window handle which at least corresponds to the identifier of the display unit of the electronic equipment;
or the like, or, alternatively,
and under the condition that any one of the main window handle and the sub window handle of the target application process at least corresponds to the display unit identification of the electronic equipment, determining that the target application process is at least partially displayed on the extended display unit of the electronic equipment.
In this embodiment, the position of the prompt information of the position where the target application process is located and the position of the at least one switching control generated are not limited. For example, the prompt information of the position of the target application process can be output in a main display unit set by the electronic device, and/or at least one switching control is generated; and/or outputting prompt information of the position of the target application process in other display units except the main display unit of the electronic equipment, and/or generating at least one switching control.
And outputting prompt information of the position of the target application process, and prompting the position of the target application process. In this embodiment, the prompt information of the location of the target application process may be set based on a condition that at least a part of the target application process is displayed on the extended display unit of the electronic device, for example, if a part of the target application process is displayed on the extended display unit of the electronic device and another part is displayed on the display unit of the electronic device, the prompt information of the location of the target application process may be set as: the target application process part is displayed on the expansion display unit; or, if the target application process is all displayed on the extended display unit of the electronic device, the prompt information of the position where the target application process is located may be set as: and the target application process is displayed on the extended display unit in a whole manner.
And generating a switching control, and switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment based on the switching control.
Wherein, the target expansion display unit can be understood as: an extended display unit is selected from among extended display units of the electronic device. In the case where the target extended display unit is set as the main display unit of the electronic apparatus, the display unit of the electronic apparatus itself may be the extended display unit of the main display unit.
Outputting prompt information of the position of the target application process, and/or generating a switching control, which can improve the operation efficiency of the electronic device, and particularly, under the condition that the target application process is located in an extended display unit of the electronic device but the extended display unit of the electronic device is not displayed, indicating corresponding operation by prompting the position of the target application process, for example, maintaining the extended display unit of the electronic device or the electronic device exiting an extended mode; and/or generating a switching control to ensure that the corresponding window of the target application process can be switched to a display unit of the electronic equipment or other extended display units based on the switching control for displaying.
In this embodiment, switching the window corresponding to the target application process to the target extended display unit of the electronic device or the display unit of the electronic device may include:
and switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment based on at least operation acting on at least one switching control.
Wherein, the operation acting on at least one switching control can be understood as: and manually acting on the operation of at least one switching control.
Or, switching the corresponding window of the target application process to a target extended display unit of the electronic device or a display unit of the electronic device may include:
and acquiring state information of the display equipment where the window corresponding to the target application process is located, and switching the window corresponding to the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment under the condition that the state information meets a preset condition.
The display device may be, but is not limited to, a display screen.
Obtaining the state information of the display device where the corresponding window of the target application process is located may include, but is not limited to: and detecting the state of the display equipment where the window corresponding to the target application process is located to obtain a detection result, and obtaining the state information of the display equipment where the window corresponding to the target application process is located based on the detection result.
Detecting the state of the display device where the corresponding window of the target application process is located may include: and detecting whether the display equipment where the corresponding window of the target application process is located is in a screen-off state or a power-off state or a low-power state.
Correspondingly, the state information of the display device where the window corresponding to the target application process is located, which is obtained based on the detection result, includes: the information of the state of the information screen or the information of the power-off state or the information of the low-power state. Based on the method, whether the state information meets the preset condition or not is detected, and under the condition that the state information meets the preset condition, the corresponding window of the target application process is switched to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment.
Detecting whether the state information satisfies a preset condition may include:
detecting whether the duration of the screen-off state meets a set screen-off duration threshold or not based on the screen-off state information;
or, based on the power-off state information, detecting whether the duration of the power-off state meets a set power-off duration threshold;
or, based on the low-power state information, detecting whether the duration of the low-power state meets a set low-power duration threshold, and/or whether the remaining power of the display device is within a set power threshold range.
Detecting the state of the display device where the corresponding window of the target application process is located may further include:
and detecting the network quality state or the position state of the display equipment where the corresponding window of the target application process is located when the display equipment is in wireless screen projection.
When the network quality of the display device during wireless screen projection is determined to be lower than a set network quality threshold value based on the network quality state of the display device during wireless screen projection, or when the position of the display device is determined not to be within a set area range based on the position state of the display device, the corresponding window of the target application process is switched to a target expansion display unit of the electronic device or a display unit of the electronic device.
In this embodiment, switching the window corresponding to the target application process to the target extension display unit of the electronic device may include:
and under the condition that the target expansion display unit is determined as the target display unit, obtaining the current running window information of the target expansion display unit so as to switch the corresponding window of the target application process to the target expansion display unit according to the running window information.
The current operating window information of the target extended display unit can be understood as follows: information of the currently running window of the target extension display unit, such as window handle, window display area, or screen resolution.
Switching the corresponding window of the target application process to the target extended display unit according to the running window information may include, but is not limited to:
determining the area of a corresponding window of a target application process, which is used by a target expansion display unit, according to the running window information;
and switching the corresponding window of the target application process to the area of the corresponding window of the target application process, which is used for displaying the target application process, of the target expansion display unit.
In this embodiment, by obtaining the current running window information of the target extended display unit, and switching the corresponding window of the target application process to the target extended display unit according to the running window information, it can be ensured that the influence on the running window of the target extended display unit is reduced while the corresponding window of the target application process is switched to the target extended display unit.
Of course, switching the corresponding window of the target application process to the target extension display unit of the electronic device may also include:
and switching the corresponding window of the target application process to a set area of a target extension display unit of the electronic equipment.
The setting area may be, but is not limited to: and the corresponding window of the target application process corresponds to the corresponding area when the target extension display unit is displayed in the middle.
And switching the corresponding window of the target application process to a set area of a target expansion display unit of the electronic equipment, so that the switching process can be simplified, and the switching efficiency can be improved.
Switching the corresponding window of the target application process to the display unit of the electronic device itself may include:
in the case that one of the plurality of display units of the electronic device itself is determined as the target display unit, current display parameters of the other display units of the electronic device itself are obtained, so that the corresponding window of the target application process is switched to the other display units of the electronic device itself based on the display parameters.
Display parameters, which may include, but are not limited to: and any one or more of information such as operating window information, display size and display state.
Switching the corresponding window of the target application process to other display units of the electronic device itself based on the display parameters may include, but is not limited to:
selecting a display unit for displaying a corresponding window of the target application process from other display units of the electronic equipment based on the display parameters, and determining an area of the selected display unit for displaying the corresponding window of the target application process;
and switching the corresponding window of the target application process to the selected area of the display unit for displaying the corresponding window of the target application process.
In this embodiment, by obtaining current display parameters of other display units of the electronic device itself, the window corresponding to the target application process is switched to the other display units of the electronic device itself based on the display parameters, so that the influence on the other display units of the electronic device itself is reduced while the window corresponding to the target application process is switched to the other display units of the electronic device itself is ensured.
Of course, the specific implementation process of switching the corresponding window of the target application process to the display unit of the electronic device itself is not limited to the above manner, and may also include:
selecting at least one display unit from other display units of the electronic equipment;
and switching the corresponding window of the target application process to the selected setting area of the display unit.
The setting area may be, but is not limited to: and the corresponding window of the target application process corresponds to the area when the selected display unit of the electronic equipment is displayed in the middle.
And switching the corresponding window of the target application process to the set area of the display unit of the selected electronic equipment of the electronic equipment, so that the switching process can be simplified, and the switching efficiency can be improved.
In addition, switching the window corresponding to the target application process to the display unit of the electronic device itself may also include:
under the condition of simultaneously obtaining switching instructions of the windows corresponding to the at least two target application processes, obtaining current display parameters of other display units of the electronic equipment, and displaying the windows corresponding to the at least two target application processes on one display unit meeting the display parameter conditions or respectively displaying the windows on the at least two display units meeting the display parameter conditions based on the obtained display parameters of the display units of the electronic equipment.
The process of displaying the corresponding windows of the at least two target application processes on one display unit meeting the display parameter condition based on the obtained display parameters of the display unit of the electronic device itself, or displaying the corresponding windows of the at least two target application processes on the at least two display units meeting the display parameter condition respectively, may refer to the above process of switching the corresponding windows of the target application processes to other display units of the electronic device itself based on the display parameters, and is not described herein again.
In this embodiment, the windows corresponding to the at least two target application processes are displayed on one display unit meeting the display parameter condition based on the obtained display parameters of the display unit of the electronic device itself, or are respectively displayed on the at least two display units meeting the display parameter condition, so that the windows corresponding to the at least two target application processes are switched to the corresponding display units, and the influence on the display unit of the electronic device itself can be reduced based on the switching of the display parameters of the display unit of the electronic device itself.
It should be noted that, in the case that it is determined that the target application process is not displayed on the extended display unit of the electronic device based on the window position information, the prompt information of the position where the target application process is located is not output, and at least one switching control is not generated.
In the application, under the condition that the target application process is determined to be at least partially displayed on the extended display unit of the electronic device based on the window position information, the prompt information of the position of the target application process is output to prompt the display position of the target application process, and/or at least one switching control is generated, so that the corresponding window of the target application process is conveniently switched to the corresponding display unit to be displayed, the display unit can be timely switched under the condition that the display problem occurs, the influence on the operation of the personal computer is reduced, and the operation efficiency is improved.
As another alternative embodiment of the present application, referring to fig. 2, a flowchart of an embodiment 2 of a control method provided by the present application is shown, where this embodiment is mainly an extension of the control method described in the above embodiment 1, and as shown in fig. 2, the method may include, but is not limited to, the following steps:
step S201, obtaining window position information of at least one application process of the electronic device.
The detailed process of step S201 can be referred to the related description of step S101 in embodiment 1, and is not described herein again.
Step S202, determining a target application process based on at least input meeting the condition.
Determining the target application process based at least on the input satisfying the condition may be understood as: and determining a target application process from at least one application process of the electronic equipment based on at least the input meeting the condition.
The specific implementation process of the target application process is determined at least based on the input meeting the condition, and may be any one of the following implementation processes:
s2021, at least one first input acting on a task bar of the electronic device is obtained, and an application icon determined by the first input is determined as a target application process.
And when the first input determines a certain application icon in the taskbar of the electronic equipment, determining the application icon determined by the first input as a target application process. Specifically, the application process corresponding to the application icon determined based on the first input may be determined as the target application process.
When the first input acts on the application icon in the laminated state of the taskbar of the electronic device, a plurality of application processes corresponding to the application icon in the laminated state can be determined to be target application processes respectively.
S2022, obtaining at least one second input acting on the task view of the electronic device, and determining the target application process at least based on the application window acted by the second input.
The task view can display an application window of at least one application process of the electronic device, when the application window of the at least one application process of the electronic device is displayed in the task view, if a second input acts on the task view, the at least one second input acting on the task view of the electronic device can be obtained, and the target application process is determined at least based on the application window acted by the second input. Specifically, the application process to which the application window based on the second input action belongs may be determined as the target application process.
S2023, obtaining at least one third input acting on the application process of the electronic device, and determining the application process acted by the third input as a target application process.
In this embodiment, the target application process may be determined by directly acting on the application process of the electronic device. Specifically, at least one third input acting on the application process of the electronic device may be obtained, and the application process acted by the third input may be determined as the target application process.
The electronic equipment supports application processes which act on the electronic equipment based on the task manager. Accordingly, the third input may act on an application process of the electronic device in the task manager.
Of course, the present embodiment is not limited to the application process acting on the electronic device based on the task manager. Application processes may also be active on the electronic device based on any manner of application processes that are distinct from the taskbar or the task view, but are capable of acting on the electronic device.
S2024, obtaining at least one fourth input acting on the desktop application of the electronic device, and determining the application process created based on the fourth input acting on the target application icon in the desktop application as the target application process.
At least one application icon is included in a desktop application of the electronic device, and an application process can be created based on input acting on the application icon.
And when at least one fourth input acting on the target application icon in the desktop application exists, obtaining at least one fourth input acting on the desktop application of the electronic equipment, and determining an application process created based on different fourth inputs acting on the target application icon in the desktop application as the target application process.
Wherein, the first input, the second input, the third input and the fourth input introduced above can be, but are not limited to: mouse input, keyboard input, voice input, gesture input, or input that combines eye tracking and gaze location. Wherein the mouse input may be determined based on the mouse cursor coordinate position. The keyboard input may be determined based on a keyboard focus position.
Step S203, outputting prompt information of the position of the target application process and/or generating at least one switching control under the condition that the target application process is determined to be at least partially displayed on an expansion display unit of the electronic equipment based on the window position information;
the switching control is at least used for switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment.
The specific implementation process of outputting the prompt information of the position of the target application process and/or generating at least one switching control may be any one of the following implementation processes:
s2031, displaying a thumbnail of the target application process based on the input of the determined target application process, so as to output prompt information on the thumbnail, and/or generating at least one switching control.
Displaying a thumbnail of the target application process based on the input of the determined target application process can be understood as: and displaying the thumbnail of the target application process based on the input of the target application process determined by the target application icon in the task bar of the electronic equipment.
When the application icon in the stacked state acting on the taskbar of the electronic device is input, the application processes corresponding to the application icon in the stacked state can be determined to be target application processes respectively, and the thumbnails of the target application processes are displayed based on the input. In the case of displaying thumbnails of multiple target application processes, one thumbnail can be selected from the thumbnails of the multiple target application processes as a target thumbnail, prompt information can be output on the target thumbnail, and/or at least one switching control can be generated.
Outputting a prompt on the thumbnail and/or generating at least one switching control, which may include but is not limited to:
and outputting prompt information on the toolbar of the thumbnail and/or generating at least one switching control. In the case where it is determined that the target application processes are all displayed on the extended display unit of the electronic device based on the window position information, as shown in fig. 3, based on an input to determine the target application processes, thumbnails of the target application processes are displayed, a prompt message "i display on the extended display unit" is output on a toolbar of the thumbnails, and a toggle control named "back to home screen" is generated.
In this embodiment, the output of the prompt information on the thumbnail and the generation of the at least one switching control may not be affected by each other. Of course, it may also be arranged to output the prompt information based on generating at least one switching control. For example, when an input acts on a switching control, the prompt message is output on the thumbnail. If no input is applied to a switching control, no prompt information is output on the thumbnail.
In this embodiment, a trigger condition for switching the corresponding window of the target application process to the target extended display unit of the electronic device or the display unit of the electronic device itself by the switching control may also be set. Specifically, when the thumbnail of the target application process is displayed based on the input of the determined target application process, the switching control is triggered to switch the corresponding window of the target application process to the target extended display unit of the electronic device or the display unit of the electronic device. Or when the input acting on the switching control is acquired, triggering the switching control to switch the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment.
In this embodiment, the output of the prompt information on the thumbnail may be implemented based on microsoft DWM (Desktop Window Manager) programming, and/or at least one switching control may be generated.
In this embodiment, when determining that the target display unit outputs the prompt information from the display unit of the electronic device and/or generating at least one switching control, the method may not be limited to displaying a thumbnail of the target application process on the target display unit based on an input of determining the target application process, and other embodiments may be any of the following:
s20311, in a case where the electronic apparatus itself has at least two display units and a main display unit or an auxiliary display unit among them is determined as a target display unit, displaying a thumbnail image on the main display unit in a first manner or displaying a thumbnail image on the auxiliary display unit in a second manner based on an input.
Displaying the thumbnail images in the main display unit in a first manner or in the auxiliary display unit in a second manner based on the input may include, but is not limited to: displaying a thumbnail on the main display unit in a first mode or displaying the thumbnail on the auxiliary display unit in a second mode based on a first input, wherein the first input is an input of an application icon acting on a task bar of the electronic device, and the application icon determined based on the first input is an application icon of a target application process.
The first mode and the second mode can be set according to requirements, for example, the first mode and the second mode can be set according to requirements of display color, screen resolution, display size, display refresh rate, dynamic display and the like.
In this embodiment, the first mode and the second mode may be the same mode, but of course, they may be different modes.
S20312, in the case that the electronic device has at least two display units and the main display unit or the auxiliary display unit is determined as the target display unit, displaying thumbnails of at least two target application processes on the main display unit and the auxiliary display unit respectively in a third mode based on at least two inputs for determining the target application processes; or, displaying the thumbnails of at least two target application processes on the auxiliary display unit in a fourth mode respectively; or, thumbnails of at least two target application processes are respectively displayed on the main display unit in a seventh manner.
The third mode, the seventh mode and the fourth mode can be set as required, for example, the setting can be performed according to the requirements of display color, screen resolution, display size, display refresh rate, dynamic display and the like.
In this embodiment, the third, seventh and fourth aspects may be the same, but of course, they may be different.
The thumbnails of the at least two target application processes are respectively displayed on the main display unit in the third mode, and the thumbnails of the at least two target application processes are respectively displayed on the auxiliary display unit in the third mode, so that a user can conveniently check the thumbnails of the plurality of target application processes in the plurality of display units, the user can conveniently perform corresponding operation, and the operation efficiency of the electronic equipment is improved.
S20313, in a case where the electronic device connects at least two extended display units and determines a target extended display unit in which a corresponding window of a target application process is not displayed as the target display unit, displaying a thumbnail on the target extended display unit in a fifth manner based on the input, and displaying the thumbnail on a display unit of the electronic device itself in a sixth manner; or, displaying the thumbnail on the target extended display unit in a fifth manner based on the input; or, the thumbnail is displayed on the display unit of the electronic apparatus itself in a sixth manner based on the input.
The fifth mode and the sixth mode can be set as required, for example, the setting can be performed according to the requirements of display color, screen resolution, display size, display refresh rate, dynamic display, and the like.
In the present embodiment, the fifth aspect and the sixth aspect may be the same, but of course, may be different.
The thumbnail is displayed on the target expansion display unit in the fifth mode based on the input, and the thumbnail is displayed on the display unit of the electronic device in the sixth mode, so that a user can conveniently view the thumbnail of one target application process in a plurality of display units, the user can conveniently perform corresponding operation, and the operation efficiency of the electronic device is improved.
S20314, under the condition that the electronic device is connected with at least two extension display units and a target extension display unit of a corresponding window of which the target application process is not displayed is determined as a target display unit, based on at least two inputs of the determined target application process, thumbnails of at least two target application processes are respectively displayed on the target extension display unit in a fifth mode, and thumbnails of at least two target application processes are respectively displayed on a display unit of the electronic device in a sixth mode; or, based on the at least two inputs of the determined target application process, displaying thumbnails of the at least two target application processes on the target extension display unit in a fifth manner; or, based on the at least two inputs of the determined target application process, displaying thumbnails of the at least two target application processes on a display unit of the electronic device itself in a sixth manner.
Similarly, based on the determination of the at least two inputs of the target application process, the thumbnails of the at least two target application processes are respectively displayed on the target extension display unit in a fifth mode, and the thumbnails of the at least two target application processes are respectively displayed on the display unit of the electronic device in a sixth mode, so that a user can conveniently view the thumbnails of the plurality of target application processes in the plurality of display units, the user can conveniently perform corresponding operations, and the operation efficiency of the electronic device is improved.
In this embodiment, the display position of the thumbnail of the target application process is not limited to the determined target display unit, and the flexibility of displaying the thumbnail of the target application process can be improved.
S2032, outputting prompt information on the target display unit determined from the display unit of the electronic device itself, and/or generating at least one switching control.
In this embodiment, one display unit that can normally display may be selected from the display units of the electronic device itself, and determined as the target display unit. Based on the information, the prompt information is output at the target display unit, and/or at least one switching control is generated.
S2033, outputting the prompt information in the target display unit determined from the expansion display unit of the electronic equipment, and/or generating at least one switching control.
The target display unit determined from the extended display unit of the electronic device may be understood as: and the target display unit is determined from a display unit externally connected with the electronic equipment. Specifically, a display unit capable of displaying normally can be selected from display units externally connected to the electronic device as a target display unit. Based on the information, the prompt information is output at the target display unit, and/or at least one switching control is generated.
And S2034, when the thumbnail of the target application process is not displayed on the determined target display unit, respectively outputting the prompt information and generating at least one switching control on the thumbnail and the target display unit.
In the case that the determined target display unit is the main display unit, the target display unit can support corresponding operations besides displaying information, and the non-target display unit can only support displaying information. In this case, if the thumbnail of the target application process is not displayed on the specified target display unit, the presentation information is output on the thumbnail, and at least one switching control is generated on the target display unit. Through the implementation mode, the prompt information can be output normally, and the switching control can be used normally.
S2035, when the thumbnail of the target application process is displayed on the determined target display unit, outputting prompting information and/or generating at least one switching control in the thumbnail and/or other display areas except the thumbnail in the target display unit.
In the case that the determined target display unit is the main display unit, the target display unit can support corresponding operations besides displaying information, and the non-target display unit can only support displaying information. In this case, if the thumbnail of the target application process is displayed on the determined target display unit, the prompt information is output in the thumbnail and/or in other display areas except for the thumbnail in the target display unit and/or at least one switching control is generated, so that the prompt information can be ensured to be normally output, and the switching control can be normally used.
S2036, displaying a separately set process window list on a target display unit determined from the display unit of the electronic device itself, and outputting prompt information corresponding to the target application process in the process window list based on an input of the determined target application process, and/or generating at least one switching control.
The list of individually set process windows can be understood as: the separately set processes are obtained by recording the application processes at least partially displayed on the extended display unit of the electronic device by monitoring whether there are application processes at least partially displayed on the extended display unit of the electronic device.
The process window list supports the synchronous switching of a plurality of target application processes to corresponding display units. Specifically, a plurality of target application processes in the process window list may be determined based on a plurality of inputs, and after the plurality of target application processes are determined, corresponding windows of the plurality of target application processes may be synchronously switched to corresponding display units based on the switching control.
In this embodiment, the implementation process of outputting the prompt information and/or generating at least one switching control in the above steps S2031 to S2035 may be, but is not limited to, any of the following implementation processes:
s20321, obtaining the position information of the target object, outputting prompt information on a target display unit and/or a thumbnail corresponding to the position information and/or generating at least one switching control;
obtaining location information of the target object may include, but is not limited to:
acquiring geographical position information of an area where a target object is located;
and/or determining a target object tracking area based on an object tracking or sight tracking technology, and taking the target object tracking area as the position information of the target object.
Corresponding to the manner of obtaining the geographic position information of the area where the target object is located, outputting prompt information and/or generating at least one switching control on a target display unit and/or a thumbnail corresponding to the position information may include: and determining the corresponding target display unit and/or the thumbnail to output prompt information and/or generating at least one switching control based on the geographical position information of the region where the target object is located and the geographical position information of the display unit of the electronic equipment. For example, the target display unit closest to the target object and/or the thumbnail output prompt information may be determined and/or at least one switching control may be generated based on the relative positional relationship of the target object and the display unit of the electronic device.
In correspondence with determining a relative position of a target object based on object tracking or gaze tracking techniques, outputting a prompt message and/or generating at least one toggle control at a corresponding target display unit and/or thumbnail may include: and selecting a target display unit and/or a thumbnail meeting the set conditions based on the relative position of the target object determined by the object tracking or sight tracking technology, and outputting prompt information and/or generating at least one switching control at the target display unit and/or the thumbnail meeting the set conditions.
The setting conditions may include, but are not limited to: the closest or most suitable distance to the line of sight of the target object or the target object itself.
In this embodiment, the position information of the target object is obtained, the prompt information is output on the target display unit and/or the thumbnail corresponding to the position information, and/or at least one switching control is generated, so that a user can conveniently view the prompt information or operate the switching control in real time.
S20322, under the condition that the input of the target application process is determined to be unique, synchronously or asynchronously outputting prompt information on the target display unit and the thumbnail and generating a switching control; or, synchronously or asynchronously outputting prompt information on the target display unit and generating a switching control; or synchronously or asynchronously outputting the prompt message on the thumbnail and generating a switching control.
Under the condition that the input of the target application process is determined to be unique, the target application process is shown only in a certain display unit possibly, and in order to ensure that the target application process is reliably viewed or operated, at least the output of prompt information and the generation of a switching control are required to be ensured.
Wherein, outputting the prompt message and generating a switching control may include: synchronously or asynchronously outputting prompt information on the target display unit and the thumbnail and generating a switching control; or, synchronously or asynchronously outputting prompt information on the target display unit and generating a switching control; or synchronously or asynchronously outputting the prompt message on the thumbnail and generating a switching control.
Synchronously or asynchronously outputting the prompt message and generating a switching control, which can be understood as follows: outputting prompt information and generating a switching control at the same time; or respectively outputting the prompt information and generating a switching control at different time.
S20323, under the condition that the input of the target application process is determined not to be unique, synchronously or asynchronously outputting prompt information between the target display unit and the thumbnail, or synchronously or asynchronously respectively generating a switching control between the target display unit and the thumbnail.
Under the condition that the input of the target application process is determined not to be unique, the target application process is shown to be displayed in a plurality of display units possibly, and the number of display units supporting the target application process to be viewed or operated is large. Specifically, the prompt information may be synchronously or asynchronously output on the target display unit and the thumbnail, or the switching control may be respectively generated synchronously or asynchronously on the target display unit and the thumbnail.
Under the condition that the input of the target application process is determined not to be unique, prompt information is synchronously or asynchronously output between the target display unit and the thumbnail, or switching controls are respectively generated synchronously or asynchronously between the target display unit and the thumbnail, so that the requirements for viewing the prompt information or operating the switching controls can be met, and meanwhile, the resources of the electronic equipment are saved.
S20324, based on the input of the determined target application process, generating a switching control on the target display unit and/or the thumbnail, wherein the switching control displays prompt information of the position of the window corresponding to the target application process.
In this embodiment, based on the input of the determined target application process, a switching control is generated on the target display unit and/or the thumbnail, and the switching control displays the prompt information of the position of the window corresponding to the target application process.
Of course, based on the input of the determined target application process, prompt information may also be output on the target display unit and/or the thumbnail, if the human eye sight cannot be detected within the preset time period, a switching control is generated, and the prompt information of the position of the window corresponding to the target application process is output based on the switching control.
Under the condition that the input of the target application process is determined to be unique, prompt information is synchronously or asynchronously output on the target display unit and/or the thumbnail, a switching control is generated, and if the human eye sight line cannot be detected within a preset time period, the prompt information is processed to the switching control, so that the prompt information of the position of the corresponding window of the target application process is displayed based on the switching control.
Under the condition that the input of the target application process is determined not to be unique, prompt information can be output synchronously or asynchronously through the target display unit and the thumbnail, if the human eye sight cannot be detected within a preset time period, a switching control is generated, and the prompt information is output based on the switching control; or, synchronously or asynchronously generating a switching control between the target display unit and the thumbnail and outputting prompt information based on the switching control.
In the application, under the condition that the target application process is determined to be at least partially displayed on the extended display unit of the electronic device based on the window position information, the prompt information of the position of the target application process is output to prompt the display position of the target application process, and/or at least one switching control is generated, so that the corresponding window of the target application process is conveniently switched to the corresponding display unit to be displayed, the display unit can be timely switched under the condition that the display problem occurs, the influence on the operation of the personal computer is reduced, and the operation efficiency is improved.
And moreover, the target application process is determined in multiple modes, and the flexibility and the efficiency of determining the target application process are improved.
Next, a control device provided in the present application will be described, and the control device described below and the control method described above may be referred to in correspondence with each other.
The control device may include: the device comprises a window position information obtaining module and a prompting and switching module.
The window position information obtaining module can be used for obtaining window position information of at least one application process of the electronic equipment;
the prompting and switching module can be used for outputting the prompting information of the position of the target application process and/or generating at least one switching control under the condition that the target application process is determined to be at least partially displayed on the expansion display unit of the electronic equipment based on the window position information;
the switching control is at least used for switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment.
In this embodiment, the window position information obtaining module may be specifically configured to:
under the condition that the electronic equipment is determined to enter the expansion mode, acquiring a process ID of at least one application process of the electronic equipment;
determining window position information of each application process based on a display unit identifier corresponding to a main window handle under the condition that only the main window handle of the application process is obtained based on the process ID; or the like, or a combination thereof,
and under the condition that the main window handle and the sub-window handle of the application process are obtained based on the process ID, determining the main window position information and the sub-window position information of each application process based on the display unit identifications respectively corresponding to the main window handle and the sub-window handle.
In this embodiment, the process of the prompt and switch module determining that the target application process is at least partially displayed on the extended display unit of the electronic device may include:
under the condition that the target application process only has a main window handle and the main window handle at least corresponds to the extension display unit identifier, determining that the target application process is at least partially displayed on an extension display unit of the electronic equipment; or the like, or a combination thereof,
and under the condition that any one of the main window handle and the sub-window handle of the target application process at least corresponds to the extension display unit identifier, determining that the target application process is at least partially displayed on the extension display unit of the electronic equipment.
In this embodiment, the prompting and switching module outputs the prompting information of the position of the target application process, and/or generates at least one switching control, which may include:
based on the input of the determined target application process, displaying a thumbnail of the target application process so as to output prompt information on the thumbnail, and/or generating at least one switching control; or the like, or, alternatively,
outputting prompt information at a target display unit determined from a display unit of the electronic equipment, and/or generating at least one switching control; or the like, or, alternatively,
outputting prompt information at a target display unit determined from an extended display unit of the electronic equipment, and/or generating at least one switching control; or the like, or, alternatively,
under the condition that the thumbnail of the target application process is not displayed on the determined target display unit, respectively outputting prompt information and generating at least one switching control on the thumbnail and the target display unit; or the like, or, alternatively,
and in the case that the thumbnail of the target application process is displayed on the determined target display unit, outputting the prompt information and/or generating at least one switching control in the thumbnail and/or other display areas except the thumbnail in the target display unit.
In this embodiment, the process of displaying the thumbnail of the target application process by the prompt and switch module based on the input of the target application process may include:
displaying a thumbnail on the main display unit in a first manner or displaying the thumbnail on the auxiliary display unit in a second manner based on the input in a case where the electronic device itself has at least two display units and a main display unit or an auxiliary display unit among them is determined as a target display unit; or the like, or a combination thereof,
in the case that the electronic device has at least two display units and a main display unit or an auxiliary display unit is determined as a target display unit, thumbnails of the at least two target application processes are respectively displayed on the main display unit and the auxiliary display unit in a third mode or thumbnails of the at least two target application processes are respectively displayed on the auxiliary display unit in a fourth mode based on at least two inputs for determining the target application processes; or the like, or, alternatively,
and in the case that the electronic equipment is connected with at least two extended display units and a target extended display unit in which a corresponding window of a target application process is not displayed is determined as the target display unit, displaying the thumbnail on the target extended display unit in a fifth mode and/or displaying the thumbnail on a display unit of the electronic equipment based on an input in a sixth mode.
In this embodiment, the process of outputting the prompt information and/or generating at least one switching control by the prompt and switching module may include:
obtaining the position information of the target object, outputting prompt information on a target display unit and/or a thumbnail corresponding to the position information and/or generating at least one switching control; or the like, or, alternatively,
under the condition that the input of the target application process is determined to be unique, synchronously or asynchronously outputting the prompt information on the target display unit and/or the thumbnail and generating a switching control; or the like, or, alternatively,
under the condition that the input of the target application process is determined not to be unique, synchronously or asynchronously outputting prompt information or respectively generating a switching control at the target display unit and the thumbnail; or the like, or, alternatively,
and generating a switching control at the target display unit and/or the thumbnail based on the input of the determined target application process, wherein the switching control displays prompt information of the position of the corresponding window of the target application process.
In this embodiment, the process of the prompting and switching module to switch the window corresponding to the target application process to the target extension display unit of the electronic device or the display unit of the electronic device may include:
switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment based on at least operation acting on at least one switching control; or the like, or, alternatively,
and acquiring state information of the display equipment where the window corresponding to the target application process is located, and switching the window corresponding to the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment under the condition that the state information meets a preset condition.
In this embodiment, the process of the prompting and switching module switching the window corresponding to the target application process to the target extension display unit of the electronic device or the display unit of the electronic device may include:
under the condition that the target expansion display unit is determined as the target display unit, current running window information of the target expansion display unit is obtained, and a corresponding window of a target application process is switched to the target expansion display unit according to the running window information; or the like, or, alternatively,
under the condition that one of a plurality of display units of the electronic equipment is determined as a target display unit, obtaining current display parameters of other display units of the electronic equipment so as to switch a corresponding window of a target application process to the other display units of the electronic equipment based on the display parameters; or the like, or, alternatively,
under the condition of simultaneously obtaining switching instructions of corresponding windows of at least two target application processes, displaying the corresponding windows of the at least two target application processes on one display unit meeting the display parameter condition or respectively displaying the corresponding windows of the at least two target application processes on at least two display units meeting the display parameter condition based on the obtained display parameters of the display units of the electronic equipment.
In this embodiment, the control device may further include: a target application process determination module to:
a target application process is determined based at least on the input satisfying the condition.
Wherein determining the target application process based on at least the input satisfying the condition may include:
obtaining at least one first input acting on a task bar of the electronic equipment, and determining an application icon determined by the first input as a target application process; or the like, or, alternatively,
obtaining at least one second input acting on a task view of the electronic equipment, and determining a target application process at least based on an application window acted by the second input; or the like, or, alternatively,
obtaining at least one third input acting on the application process of the electronic equipment, and determining the application process acted by the third input as a target application process; or the like, or, alternatively,
the method comprises the steps of obtaining at least one fourth input acting on a desktop application of the electronic equipment, and determining an application process created based on the fourth input acting on a target application icon in the desktop application as a target application process.
Corresponding to the embodiment of the control method provided by the application, the application also provides an embodiment of the electronic equipment applying the control method.
As shown in fig. 4, which is a schematic structural diagram of embodiment 1 of an electronic device provided in the present application, the electronic device may include the following structures:
a memory 100 and a processor 200.
A memory 100 for storing at least one set of instructions;
a processor 200, configured to call and execute the instruction set in the memory 100, and execute the control method as described in any one of the above method embodiments 1-2 by executing the instruction set.
Corresponding to the above embodiment of the control method provided by the present application, the present application further provides an embodiment of a storage medium.
In this embodiment, the storage medium stores a computer program implementing the control method as described in method embodiment 1 or 2, which is executed by a processor implementing the steps of the control method as described in embodiment 1 or 2.
It should be noted that each embodiment is mainly described as a difference from the other embodiments, and the same and similar parts between the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations as the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The above detailed description is provided for a control method and apparatus provided by the present application, and the principle and the implementation of the present application are explained by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A control method, comprising:
obtaining window position information of at least one application process of the electronic equipment;
under the condition that the target application process is determined to be at least partially displayed on the expansion display unit of the electronic equipment based on the window position information, outputting prompt information of the position of the target application process, and/or generating at least one switching control;
the switching control is at least used for switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment.
2. The method of claim 1, wherein obtaining window position information of at least one application process of the electronic device comprises:
under the condition that the electronic equipment is determined to enter the expansion mode, acquiring a process ID of at least one application process of the electronic equipment; the expansion mode is a mode for expanding the display range of the electronic equipment;
under the condition that only a main window handle of the application process is obtained based on the process ID, determining window position information of each application process based on a display unit identifier corresponding to the main window handle; or the like, or, alternatively,
and under the condition that the main window handle and the sub-window handle of the application process are obtained based on the process ID, determining the main window position information and the sub-window position information of each application process based on the display unit identifications respectively corresponding to the main window handle and the sub-window handle.
3. The method of claim 1 or 2, further comprising: determining a target application process based at least on the input satisfying the condition;
the determining a target application process based on at least the input satisfying the condition comprises:
obtaining at least one first input acting on a task bar of the electronic equipment, and determining an application icon determined by the first input as the target application process; or the like, or, alternatively,
obtaining at least one second input acting on a task view of the electronic equipment, and determining the target application process at least based on an application window acted by the second input; or the like, or, alternatively,
obtaining at least one third input acting on the application process of the electronic equipment, and determining the application process acted by the third input as the target application process; or the like, or, alternatively,
obtaining at least one fourth input acting on a desktop application of the electronic equipment, and determining an application process created based on the fourth input acting on a target application icon in the desktop application as the target application process.
4. The method of claim 2, wherein determining that a target application process is at least partially displayed on an extended display unit of the electronic device comprises:
determining that the target application process is at least partially displayed on an extension display unit of the electronic equipment under the condition that the target application process only has a main window handle and the main window handle at least corresponds to an extension display unit identifier; or the like, or, alternatively,
and under the condition that any one of the main window handle and the sub window handle of the target application process at least corresponds to the extension display unit identifier, determining that the target application process is at least partially displayed on the extension display unit of the electronic equipment.
5. The method of claim 1, 2 or 4, wherein outputting a prompt for a location of the target application process and/or generating at least one switching control comprises:
based on the input of the determined target application process, displaying a thumbnail of the target application process so as to output the prompt information on the thumbnail, and/or generating at least one switching control; or the like, or, alternatively,
outputting the prompt information at a target display unit determined from a display unit of the electronic equipment, and/or generating at least one switching control; or the like, or, alternatively,
outputting the prompt information at a target display unit determined from an extended display unit of the electronic equipment, and/or generating at least one switching control; or the like, or, alternatively,
under the condition that the thumbnail of the target application process is not displayed on the determined target display unit, respectively outputting the prompt information and generating at least one switching control on the thumbnail and the target display unit; or the like, or, alternatively,
and under the condition that the thumbnail of the target application process is displayed on the determined target display unit, outputting the prompt information and/or generating at least one switching control in the thumbnail and/or other display areas except the thumbnail in the target display unit.
6. The method of claim 5, wherein displaying a thumbnail of the target application process based on the input determining the target application process comprises:
displaying the thumbnail on the main display unit in a first manner or displaying the thumbnail on the auxiliary display unit in a second manner based on the input in a case where the electronic device itself has at least two display units and a main display unit or an auxiliary display unit among them is determined as the target display unit; or the like, or, alternatively,
in the case that the electronic device has at least two display units per se and a main display unit or an auxiliary display unit is determined as the target display unit, thumbnails of at least two target application processes are respectively displayed on the main display unit and the auxiliary display unit in a third mode or thumbnails of the at least two target application processes are respectively displayed on the auxiliary display unit in a fourth mode based on at least two inputs for determining the target application processes; or the like, or, alternatively,
and in the case that the electronic equipment is connected with at least two extended display units and a target extended display unit in which a corresponding window of a target application process is not displayed is determined as the target display unit, displaying the thumbnail on the target extended display unit in a fifth mode and/or displaying the thumbnail on a display unit of the electronic equipment based on the input in a sixth mode.
7. The method of claim 5, wherein outputting the prompt information and/or generating at least one switching control comprises:
obtaining position information of a target object, outputting the prompt information on a target display unit and/or a thumbnail corresponding to the position information and/or generating at least one switching control; or the like, or, alternatively,
under the condition that the input of the target application process is determined to be unique, synchronously or asynchronously outputting the prompt information on the target display unit and/or the thumbnail and generating a switching control; or the like, or, alternatively,
under the condition that the input of the target application process is determined not to be unique, synchronously or asynchronously outputting the prompt information on the target display unit and the thumbnail or respectively generating the switching control; or the like, or, alternatively,
and generating the switching control at the target display unit and/or the thumbnail based on the input of the determined target application process, wherein the switching control displays prompt information of the position of a window corresponding to the target application process.
8. The method of claim 1, wherein switching the corresponding window of the target application process to a target extended display unit of the electronic device or a display unit of the electronic device comprises:
switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment based on at least operation acting on the at least one switching control; or the like, or, alternatively,
the method comprises the steps of obtaining state information of display equipment where a window corresponding to a target application process is located, and switching the window corresponding to the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment under the condition that the state information meets a preset condition.
9. The method of claim 1 or 8, wherein switching the corresponding window of the target application process to a target extended display unit of the electronic device or a display unit of the electronic device comprises:
under the condition that the target expansion display unit is determined as the target display unit, obtaining current running window information of the target expansion display unit, and switching a corresponding window of the target application process to the target expansion display unit according to the running window information; or the like, or, alternatively,
under the condition that one of a plurality of display units of the electronic equipment is determined as a target display unit, obtaining current display parameters of other display units of the electronic equipment so as to switch a corresponding window of the target application process to the other display units of the electronic equipment based on the display parameters; or the like, or, alternatively,
under the condition of simultaneously obtaining switching instructions of the corresponding windows of at least two target application processes, displaying the corresponding windows of the at least two target application processes on one display unit meeting the display parameter condition or respectively displaying the corresponding windows of the at least two target application processes on at least two display units meeting the display parameter condition based on the obtained display parameters of the display units of the electronic equipment.
10. A control device, comprising:
the window position information acquisition module is used for acquiring window position information of at least one application process of the electronic equipment;
the prompting and switching module is used for outputting the prompting information of the position of the target application process and/or generating at least one switching control under the condition that the target application process is determined to be at least partially displayed on the expansion display unit of the electronic equipment based on the window position information;
the switching control is at least used for switching the corresponding window of the target application process to a target expansion display unit of the electronic equipment or a display unit of the electronic equipment.
CN202010362152.1A 2020-04-30 2020-04-30 Control method and device Active CN111580717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010362152.1A CN111580717B (en) 2020-04-30 2020-04-30 Control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010362152.1A CN111580717B (en) 2020-04-30 2020-04-30 Control method and device

Publications (2)

Publication Number Publication Date
CN111580717A CN111580717A (en) 2020-08-25
CN111580717B true CN111580717B (en) 2022-05-31

Family

ID=72123007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010362152.1A Active CN111580717B (en) 2020-04-30 2020-04-30 Control method and device

Country Status (1)

Country Link
CN (1) CN111580717B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1619638A (en) * 2003-10-30 2005-05-25 日本电气株式会社 Communication terminal device
JP2010039862A (en) * 2008-07-11 2010-02-18 Sony Corp Information processing apparatus, information processing method, information processing system, and program
CN108762604A (en) * 2018-03-30 2018-11-06 联想(北京)有限公司 A kind of display methods, device and electronic equipment
CN109284078A (en) * 2018-10-16 2019-01-29 维沃移动通信有限公司 A kind of control method and mobile terminal of double-sided screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1619638A (en) * 2003-10-30 2005-05-25 日本电气株式会社 Communication terminal device
JP2010039862A (en) * 2008-07-11 2010-02-18 Sony Corp Information processing apparatus, information processing method, information processing system, and program
CN108762604A (en) * 2018-03-30 2018-11-06 联想(北京)有限公司 A kind of display methods, device and electronic equipment
CN109284078A (en) * 2018-10-16 2019-01-29 维沃移动通信有限公司 A kind of control method and mobile terminal of double-sided screen

Also Published As

Publication number Publication date
CN111580717A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
EP2416309B1 (en) Image display device, image display system, and image display method
US20140063071A1 (en) Applying enhancements to visual content
CN108829371B (en) Interface control method and device, storage medium and electronic equipment
EP3304287A1 (en) Assist layer with automated extraction
US7598941B2 (en) Pointer for a large display
EP2449456B1 (en) Vector-based magnified pointer
CN107391914B (en) Parameter display method, device and equipment
KR20230002939A (en) Display method, device and electronic device of message detail page
CN105723314A (en) Two step content selection
CN114063845A (en) Display method, display device and electronic equipment
CN111580717B (en) Control method and device
EP3699731A1 (en) Method and device for calling input method, and server and terminal
CN103365968A (en) Webpage content magnification method and webpage content magnifier
Hutchings et al. mudibo: Multiple dialog boxes for multiple monitors
US9519497B1 (en) Managing visual updates
CN112433723B (en) Personalized list development method and device
CN113867580B (en) Display control method and device for pointer in window, equipment and storage medium
CN109739397B (en) Method and device for displaying search results
KR20100031784A (en) Method for printing a captured screen of web pages
CN109032549A (en) Display methods and electronic equipment
CN113840165B (en) Screen recording method, device, equipment and medium
US20240220179A1 (en) Control method, apparatus, and electronic device
CN116095234A (en) Image generation method, device, electronic equipment and storage medium
CN114780067A (en) Identification adding method and device
CN117971058A (en) Digital board calling method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant