CN113093961A - Window switching method, storage medium and related equipment - Google Patents

Window switching method, storage medium and related equipment Download PDF

Info

Publication number
CN113093961A
CN113093961A CN202110411302.8A CN202110411302A CN113093961A CN 113093961 A CN113093961 A CN 113093961A CN 202110411302 A CN202110411302 A CN 202110411302A CN 113093961 A CN113093961 A CN 113093961A
Authority
CN
China
Prior art keywords
window
switching
focus
window switching
windows
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.)
Granted
Application number
CN202110411302.8A
Other languages
Chinese (zh)
Other versions
CN113093961B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202110411302.8A priority Critical patent/CN113093961B/en
Publication of CN113093961A publication Critical patent/CN113093961A/en
Priority to PCT/CN2022/083928 priority patent/WO2022218152A1/en
Application granted granted Critical
Publication of CN113093961B publication Critical patent/CN113093961B/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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application discloses a window switching method, a storage medium and related equipment, and belongs to the technical field of multi-window operation. The method comprises the following steps: displaying a plurality of application windows, wherein one application window in the plurality of application windows is a focus window before window switching, and the window is in a non-full screen display mode; receiving a window switching instruction, wherein the window switching instruction is sent by control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relation between a focus window after window switching and a focus window before window switching; and determining the focus window after window switching according to the focus window before window switching and the window switching instruction. According to the embodiment of the application, free switching among windows of different applications can be achieved.

Description

Window switching method, storage medium and related equipment
Technical Field
The present application relates to the field of multi-window operations, and in particular, to a window switching method, a storage medium, and a related device.
Background
For the single-window full-screen mode, the user can realize focus switching in the window through touch operation or non-touch operation. Here, the non-touch operation is an operation performed by a key such as up, down, left, and right of a control device such as a remote controller, a keyboard, or a trackball. If the current operable window is switched from the window of the application A to the window of the application B, the current operable window needs to be returned to the desktop, and then the window of the application B is found from the desktop program and opened.
However, as the screen of the electronic device becomes larger, the electronic device may simultaneously display windows of a plurality of applications on the screen, i.e., a multi-application window display mode. In the multi-application window display mode, it is impossible to directly switch from the window of application a to the window of application B by a non-touch operation.
Disclosure of Invention
The embodiment of the application provides a window switching method, a storage medium and related equipment, and aims to solve the problem that the current non-touch operation cannot directly switch windows among different applications. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a window switching method, including:
displaying a plurality of application windows, wherein one application window in the plurality of application windows is a focus window before window switching, and the window is in a non-full screen display mode;
receiving a window switching instruction, wherein the window switching instruction is sent by control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relation between a focus window after window switching and a focus window before window switching;
and determining the focus window after window switching according to the focus window before window switching and the window switching instruction.
Optionally, the window switching instruction is used to indicate a positional relationship between the focus window after the window switching and the focus window before the window switching. The determining the focus window after the window switching according to the focus window before the window switching and the window switching instruction may include: determining the direction of a focus window after window switching relative to the focus window before window switching according to the window switching instruction; determining at least one window positioned in the direction as a window to be selected by taking a focus window before window switching as a reference; determining the coordinate difference of the window to be selected and the focus window before window switching in the direction; and determining the focus window after the window switching according to the coordinate difference.
Optionally, the determining the focus window after the window switching according to the coordinate difference includes: and determining a window to be selected corresponding to the coordinate difference meeting the preset condition as a focus window after window switching, wherein the preset condition comprises the minimum coordinate difference.
Optionally, the window switching instruction is used to indicate a display hierarchical relationship between the focus window after window switching and the focus window before window switching. The determining the focus window after the window switching according to the focus window before the window switching and the window switching instruction includes: according to the window switching instruction, determining that the focus window after window switching is the Nth window which is positioned below the display level of the focus window before window switching, wherein N is a positive integer and is less than the number of currently displayed windows; and determining a window corresponding to the Nth display level in a preset window switching sequence as the focus window after window switching by taking the focus window before window switching as a reference, wherein the preset window switching sequence comprises the display levels of a plurality of applied windows.
Optionally, the window switching method may further include: setting a preset window switching sequence according to the following modes:
responding to an opening operation acted on the application, and setting the display hierarchy of the newly created window as a top setting in a preset window switching sequence;
responding to the closing operation acting on the window, and deleting the information of the closed window in a preset window switching sequence;
and responding to the received window switching instruction, and setting the display level of the focus window before window switching as a bottom.
Optionally, the window displaying the plurality of applications may include: windows displaying multiple applications that are not completely coincident.
Optionally, the above-mentioned incompletely overlapped window displaying multiple applications includes: responding to an opening operation acting on a corresponding application, and acquiring a package name of an application program; determining offset information of a corresponding window according to the packet name and the hash function, wherein the offset information comprises an offset of the window relative to the middle display of a screen; and displaying the window of the application according to the offset.
Optionally, the displaying the window of the application according to the offset includes: determining whether the window display overflows the screen or not according to the offset and the window size; and if the window displays the overflow screen, completely displaying the applied window in the screen according to the overflow amount.
Optionally, the window switching method further includes: and responding to the closing operation of the window acting on the application, and saving the display position of the corresponding window so as to display the window of the application according to the display position when the corresponding application is opened again.
Optionally, the window switching method further includes: and after determining the focus window after the window switching, setting the focus window after the window switching on the top.
Optionally, the windows of the plurality of applications include a top-placed window. If the focus window after the window switching is not the top-placed window, the focus window after the top-placed display window switching may include: and displaying the focus window after the window switching at the forefront of the non-top window, wherein the non-top window is a window except the top window in the windows of the plurality of applications.
Optionally, the window switching method further includes: receiving a mode switching instruction, wherein the mode switching instruction is sent by control equipment when mode switching operation acted on the control equipment by a user is detected, the mode switching instruction is used for indicating switching of control modes, the control modes comprise a focus control mode in a window and a focus control mode between windows, and the focus control mode between windows comprises window switching; if the current control mode is the focus control mode within the window, the focus control mode is switched to the focus control mode between the windows, or if the current control mode is the focus control mode between the windows, the focus control mode is switched to the focus control mode within the window.
In a second aspect, an embodiment of the present application provides a window switching apparatus, including:
the display module is used for displaying a plurality of application windows, one of the application windows is a focus window before window switching, and the window is in a non-full screen display mode;
the receiving and sending module is used for receiving a window switching instruction, the window switching instruction is sent by the control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relation between a focus window after window switching and a focus window before window switching;
and the processing module is used for determining the focus window after window switching according to the focus window before window switching and the window switching instruction.
Optionally, the window switching instruction is used to indicate a position relationship between the focus window after window switching and the focus window before window switching. The processing module may be specifically configured to: determining the direction of a focus window after window switching relative to the focus window before window switching according to the window switching instruction; determining at least one window positioned in the direction as a window to be selected by taking a focus window before window switching as a reference; determining the coordinate difference of the window to be selected and the focus window before window switching in the direction; and determining the focus window after the window switching according to the coordinate difference.
Optionally, when the processing module is configured to determine the focus window after the window switching according to the coordinate difference, the processing module is specifically configured to: and determining a window to be selected corresponding to the coordinate difference meeting the preset condition as a focus window after window switching, wherein the preset condition comprises the minimum coordinate difference.
Optionally, the window switching instruction is used to indicate a display hierarchical relationship between the focus window after the window switching and the focus window before the window switching. The processing module may be specifically configured to: according to the window switching instruction, determining that the focus window after window switching is the Nth window which is positioned below the display level of the focus window before window switching, wherein N is a positive integer and is less than the number of currently displayed windows; and determining a window corresponding to the Nth display level in a preset window switching sequence as the focus window after window switching by taking the focus window before window switching as a reference, wherein the preset window switching sequence comprises the display levels of a plurality of applied windows.
Optionally, the processing module may be further configured to: setting a preset window switching sequence according to the following modes:
responding to an opening operation acted on the application, and setting the display hierarchy of the newly created window as a top setting in a preset window switching sequence;
responding to the closing operation acting on the window, and deleting the information of the closed window in a preset window switching sequence;
and responding to the received window switching instruction, and setting the display level of the focus window before window switching as a bottom.
Optionally, when the display module is configured to display windows of a plurality of applications, the display module is specifically configured to: windows displaying multiple applications that are not completely coincident.
Optionally, when the display module displays the windows of the multiple applications in a non-overlapping manner, the display module is specifically configured to: responding to an opening operation acting on a corresponding application, and acquiring a package name of an application program; determining offset information of a corresponding window according to the packet name and the hash function, wherein the offset information comprises an offset of the window relative to the middle display of a screen; and displaying the window of the application according to the offset.
Optionally, when the display module displays the window of the application according to the offset, the display module is specifically configured to: determining whether the window display overflows the screen or not according to the offset and the window size; and if the window displays the overflow screen, completely displaying the applied window in the screen according to the overflow amount.
Optionally, the processing module may be further configured to: and responding to the closing operation of the window acting on the application, and saving the display position of the corresponding window so as to display the window of the application according to the display position when the corresponding application is opened again.
Optionally, the processing module is further configured to: and after the focus window after the window switching is determined, triggering a display module to set the focus window after the window switching on the top.
Optionally, the windows of the plurality of applications comprise a top-placed window. If the focus window after the window switching is not the top placement window, the display module is specifically configured to: and displaying the focus window after the window switching at the forefront of the non-top window, wherein the non-top window is a window except the top window in the windows of the plurality of applications.
Optionally, the transceiver module is further configured to receive a mode switching instruction, where the mode switching instruction is sent by the control device when detecting a mode switching operation performed by a user on the control device, the mode switching instruction is used to instruct switching of the control modes, the control modes include a focus control mode in a window and a focus control mode between windows, and the focus control mode between windows includes window switching. The processing module is further configured to switch to the focus control mode between the windows when the current control mode is the focus control mode between the windows, or switch to the focus control mode between the windows when the current control mode is the focus control mode between the windows.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a sixth aspect, an embodiment of the present application provides a window switching system, which includes the electronic device and the control device as described in the fourth aspect. The control device is used for sending a window switching instruction when detecting window switching operation acted on the control device by a user, and the window switching instruction is used for indicating the relationship between a focus window after window switching and a focus window before window switching.
In the embodiment of the application, a plurality of application windows are displayed, one of the application windows is a focus window before window switching, and the window is in a non-full screen display mode; receiving a window switching instruction, wherein the window switching instruction is sent by control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relation between a focus window after window switching and a focus window before window switching; determining a focus window after window switching according to the focus window before window switching and a window switching instruction; and setting the focus window after the display window is switched. The method can determine the focus window after window switching by receiving a window switching instruction for controlling equipment in a multi-window display mode and combining the relation between the focus window after window switching and the focus window before window switching, which is indicated by the window switching instruction, so that the problem that the window switching of different applications cannot be directly performed by the conventional non-touch operation is solved, and the effect of freely switching between the windows of different applications is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of window switching in single-window full-screen mode;
fig. 2 is a schematic flowchart of a window switching method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a multi-window display effect provided by an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a non-full screen display effect provided by an embodiment of the present application;
fig. 5 is a schematic diagram of a display effect before and after window switching according to an embodiment of the present disclosure;
fig. 6 is a schematic view of another display effect before and after window switching according to an embodiment of the present application;
fig. 7 is a schematic diagram of still another display effect before and after window switching according to an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating a window shift display effect provided in an embodiment of the present application;
FIG. 9 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a window switching apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an intelligent interactive tablet according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all 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.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The hardware part of the intelligent interactive flat panel (interactive white board) is composed of a touch display module, an intelligent processing system (including a controller) and the like, the touch display module is combined together by an integral structural member and is supported by a special software system, wherein the touch display module comprises a display screen, a touch assembly and a backlight assembly, the backlight assembly is used for providing a backlight light source for the display screen, the display screen generally adopts a liquid crystal display device and is used for displaying pictures, the touch assembly is arranged on the display screen or at the front end of the display screen and is used for collecting touch operation data of a user and sending the collected touch operation data to the intelligent processing system for processing.
In actual use, the display screen of the intelligent interactive tablet displays image data, when a user clicks content displayed on the display screen through a touch object such as a finger or a touch pen, for example, clicks a graphical button displayed on the display screen, touch data are collected by a touch component of the intelligent interactive tablet, so that the touch component converts the touch data into coordinate data of a touch point and then sends the coordinate data to the intelligent processing system, or the coordinate data are converted into coordinate data of the touch point by the intelligent processing system, after the coordinate data of the touch point are obtained by the intelligent processing system, corresponding control operation is realized according to a preset program, the display content of the display screen is driven to change, and diversified display and operation effects are realized.
Touch components are distinguished from technical principles and can be divided into five basic categories; a vector pressure sensing technology touch component, a resistance technology touch component, a capacitance technology touch component, an electromagnetic technology touch screen, an infrared technology touch component, and a surface acoustic wave technology touch component. According to the working principle of the touch assembly and the medium for transmitting information, the touch assembly can be divided into four categories: resistive, capacitive, electromagnetic, infrared, and surface acoustic wave.
When a user touches the display screen by a finger or a pen, the touch assembly can acquire data of touch points and send the data to the intelligent processing system, and then different functional applications are realized along with software built in the intelligent processing system, so that touch control of the intelligent processing system is realized.
The "screen" and "large screen" mentioned in the present application refer to display screens of electronic devices such as an intelligent interactive tablet (intelligent television board), an intelligent television, and the like; the intelligent interactive panel displays a certain interface/window, which means that the display screen of the intelligent interactive panel displays the interface/window.
Control devices including, but not limited to, a remote control, a keyboard, a trackball, etc. The control equipment is provided with a communication interface, a processor and keys, wherein the processor is respectively connected with the communication interface and the keys. The control device is connected with the electronic device through the communication interface. The key is used for triggering the processor to generate a related control instruction, for example, after the key is clicked, the processor receives operation data sent by the key and correspondingly generates a window switching instruction according to the operation data. Optionally, the key and the control command have a binding relationship. For example, because the keyboard includes more keys, the in-application focus control can be performed through the four direction keys, i.e., the up, down, left, and right directions, included in the keyboard; in addition, the other four keys are selected for inter-application focus control, that is, focus control in four directions of up, down, left, and right is performed between applications. For another example, because the remote controller includes fewer keys, for example, the remote controller includes four or fewer keys, the remote controller can be bound to the control commands of different functions by distinguishing the duration or strength of pressing the keys by the user.
Touch operation is widely used by devices of an Android (Android) system in the current market, and for non-touch operation, such as operation implemented by control equipment, some operation problems exist. Currently, the non-touch operation is only applicable to a single-window full-screen mode, and the operation inside the application is realized through up/down/left/right/determination keys.
If switching from the window of application a to the window of application B, as shown in fig. 1:
closing or minimizing the window of the application A, and exiting the application A; or pressing a start key (Home key) to return to the desktop;
finding an application B in the applications contained in the desktop;
and opening the application B and displaying a window of the application B.
With the increasing screen size of the electronic device with the android system, the android system with windowed display is provided, and the electronic device with the android system can display a plurality of windows on the screen at the same time, namely, in a multi-window display mode. In the multi-window display mode, it is impossible to directly switch from the window of application a to the window of application B by a non-touch operation.
Based on the above problems, embodiments of the present application provide a window switching method, a storage medium, and a related device, which can implement window switching of a focus between different applications without exiting an application or returning to a desktop.
It should be noted that, for the sake of brevity, this description does not exhaust all alternative embodiments, and it should be understood by those skilled in the art after reading this description that any combination of features may constitute an alternative embodiment as long as the features are not mutually inconsistent.
For example, one technical feature a is described in one embodiment of example 1, and another technical feature b is described in another embodiment of example 1 or example 2. Since the above two technical features are not mutually inconsistent, after reading the present specification, one skilled in the art should be able to conceive that an embodiment having both of these features is also an alternative embodiment, namely a and b.
The features described in the different embodiments, which are not mutually inconsistent, may also be arbitrarily combined to form alternative embodiments.
For example, the technical feature c is described in example 1. This technical feature is not described in examples 2 and 3 for the sake of controlling the space of the present specification. However, after reading the description of the present application, those skilled in the art should understand that the window switching methods provided in embodiments 2 and 3 may also include this technical feature.
Examples 1, 2 and 3 will be described in detail below.
Example 1
The embodiment of the application discloses a window switching method which is applied to electronic equipment such as an intelligent interactive tablet and the like. The following description will take an intelligent interactive tablet as an example.
The window switching method provided in the embodiment of the present application will be described in detail below with reference to fig. 2.
Please refer to fig. 2, which is a flowchart illustrating a window switching method according to an embodiment of the present disclosure. The method comprises the following steps:
s201, displaying a plurality of application windows, wherein one of the application windows is a focus window before window switching, and the window is in a non-full screen display mode.
In practical application, when a user opens an application, the intelligent interaction tablet displays a window corresponding to the application, and an interface of the application is presented in the window. When the number of the applications opened by the user is multiple, the smart interactive tablet displays windows of the multiple applications at the same time, that is, displays multiple windows, as shown in fig. 3.
In the multi-window display mode, the size of the window is smaller than the size of the screen, that is, the window is in the non-full-screen display mode, as shown in fig. 4.
Among the displayed windows of the plurality of applications, only one window of the application is a focus window. The focus window refers to a current operation window, and a user may control the focus window through touch operation and/or non-touch operation, for example, click a close button of the focus window to close the focus window, or click a control in a menu bar of the focus window to implement a corresponding function, and so on.
S202, receiving a window switching instruction, wherein the window switching instruction is sent by the control device when detecting the window switching operation acted on by the user on the control device, and the window switching instruction is used for indicating the relationship between the focus window after window switching and the focus window before window switching.
According to the embodiment of the application, the windows of different applications are switched through non-touch operation, so that a user directly operates the control device, wherein the related description of the control device and the relation between the control device and the intelligent interactive tablet are as described above, and are not described herein again.
Illustratively, the user clicks a direction key of the keyboard, which functions to switch windows; correspondingly, the keyboard responds to the clicking operation of the user, sends a window switching instruction to the intelligent interaction panel and indicates the intelligent interaction panel to switch the windows.
As for the window switching operation, it is understood that, in relation to the function of the button on the control device in different states, for example, as described above, when the function of the direction key is to switch the window, the window switching operation may be specifically an operation of clicking the direction key; or, if the long-press direction key indicates to switch the window, the window switching operation, that is, the long-press direction key operation, and the like, are determined according to the actual situation.
In addition, the function of the window switching instruction is also determined according to actual conditions. For example, the relationship between the focus window after window switching and the focus window before window switching may specifically be: the position relationship between the focus window after window switching and the focus window before window switching, for example, the focus window after window switching is located on the right side of the focus window before window switching; alternatively, the display hierarchical relationship between the focus window after window switching and the focus window before window switching is described, for example, the focus window after window switching is a window to be the focus window after the focus window before window switching.
S203, according to the focus window before window switching and the window switching instruction, determining the focus window after window switching.
Since the window switching instruction indicates the relationship between the focus window after the window is switched and the focus window before the window is switched, and the information of the focus window before the window is switched is known, it can be determined which of the windows of the plurality of applications is the focus window after the window is switched according to the focus window before the window is switched and the window switching instruction, and the specific determination method can refer to the following embodiments.
In the embodiment of the application, a plurality of application windows are displayed, one of the application windows is a focus window before window switching, and the window is in a non-full screen display mode; receiving a window switching instruction, wherein the window switching instruction is sent by control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relation between a focus window after window switching and a focus window before window switching; and determining the focus window after window switching according to the focus window before window switching and the window switching instruction. The method can determine the focus window after window switching by receiving a window switching instruction for controlling equipment in a multi-window display mode and combining the relation between the focus window after window switching and the focus window before window switching, which is indicated by the window switching instruction, so that the problem that the window switching of different applications cannot be directly performed by the conventional non-touch operation is solved, and the effect of freely switching between the windows of different applications is achieved.
In some embodiments, the window switching method may further include: and after determining the focus window after the window switching, setting the focus window after the window switching on the top. In the multi-window display mode, the display hierarchy of different windows is different. The top display means that the window is displayed at the forefront, and the window displayed at the top is not shielded by other windows. Still taking the plurality of windows shown in fig. 3 as an example, referring to fig. 5, after the window is switched, the focus window displayed on the top is changed from the window of application a to the window of application C.
Example 2
In the embodiment of the application, the window switching instruction is used for indicating the position relationship between the focus window after window switching and the focus window before window switching. In this case, the S203 step may further include: determining the direction of a focus window after window switching relative to the focus window before window switching according to the window switching instruction; determining at least one window positioned in the direction as a window to be selected by taking a focus window before window switching as a reference; determining the coordinate difference of the window to be selected and the focus window before window switching in the direction; and determining the focus window after the window switching according to the coordinate difference.
The display area of each window in the screen is stored in the smart interactive tablet, so that the smart interactive tablet can obtain the display areas of the windows of the multiple applications currently displayed from the inside. Further, the smart interactive tablet may determine information such as the size of the window and coordinates or a corner mark of the center point of the window according to the display area of the window.
Still referring to fig. 3, the focus window before window switching is the window of application a, taking the center point coordinate as an example, if the center point coordinate of the window of application a is (X)A,YA) The coordinate of the center point of the window of the application B is (X)B,YB) The coordinate of the center point of the window of the application C is (X)C,YC) And determining that the focus window after window switching is on the right side of the focus window before window switching according to the window switching instruction, wherein the to-be-selected windows are the window of the application B and the window of the application C, respectively calculating the coordinate difference between the window of the application B and the window of the application C and the window of the application A in the direction, and determining the focus window after window switching according to the coordinate difference. In this example, the difference in coordinates between the window of application B and the window of application A is XB-XA(ii) a The difference of coordinates between the window of application C and the window of application A is XC-XA
In an exemplary embodiment, determining the focus window after window switching according to the coordinate difference may include: and determining a candidate window corresponding to the coordinate difference meeting the preset condition as a focus window after window switching, wherein the preset condition comprises but is not limited to minimum coordinate difference and maximum coordinate difference. If the preset condition is that the coordinate difference is minimum, in the above example, the coordinate difference between the window of the application B and the window of the application a is XB-XAThe difference in coordinates between the window to be smaller than application C and the window to be applied A is XC-XATherefore, the window of the application B is determined to be the focus window after window switching.
Assuming that the center point coordinates (X0, Y0) of the focus window before window switching, and the center point coordinates (Xn, Yn) of the windows of other applications, the direction can be determined according to the navigation key (WSAD), and the focus window after window switching is determined based on the following criteria:
w (above): yn < Y0, and Y0-Yn is a window with the minimum value;
s (below): yn is greater than Y0, and Yn-Y0 is a window of minimum value;
a (left): xn < X0, window where X0-Xn takes the minimum value;
d (right): xn > X0, Xn-X0 takes a window of minimum values.
Where Yn < Y0 indicates that the point with the center point coordinates (Xn, Yn) is above the point with the center point coordinates (X0, Y0).
For example, fig. 6 shows a schematic diagram of switching among 3 windows, namely, a window of application a, a window of application B, and a window of application C. It can be seen that: when the window of the application A is a focus window before window switching, switching to the window of the application B through W (upper), further switching to the window of the application C through A (left), and then switching to the window of the application A through A (left) or W (upper); or, when the window of the application a is the focus window before window switching, the window can be switched to the window of the application C through S (down) or D (right), further can be switched to the window of the application B through D (right), and then can be switched to the window of the application a through S (down) or D (right).
Example 3
In the embodiment of the application, the window switching instruction is used for indicating the display hierarchical relationship between the focus window after window switching and the focus window before window switching. In this case, the S203 step may further include: according to the window switching instruction, determining that the focus window after window switching is the Nth window which is positioned below the display level of the focus window before window switching, wherein N is a positive integer and is less than the number of currently displayed windows; and determining a window corresponding to the Nth display level in a preset window switching sequence as the focus window after window switching by taking the focus window before window switching as a reference, wherein the preset window switching sequence comprises the display levels of a plurality of applied windows.
In the multi-window display mode, the display levels of the windows of the applications are different, and therefore, the relationship between the display levels of the two focus windows before and after the window switching can be instructed through the window switching instruction. Optionally, the value of N is 1, that is, after the intelligent interactive tablet receives a window switching instruction, the first window below the display level of the current focus window is determined as the focus window after the window is switched, so that one-key switching is realized.
Illustratively, the preset window switching order is embodied as queue containers, each application is added to one queue container in the launch order, and the logic for one-touch switching: moving the window of the currently displayed application, namely the foremost application in the queue container, to the tail part of the queue container; the second application in the original queue container becomes the front-most application in the queue container, i.e., the application that has recently acquired focus.
For example, fig. 7 shows still another switching diagram among 3 windows, which are a window of application a, a window of application B, and a window of application C. It can be seen that: when the window of the application A is a focus window before window switching, switching to the window of the application C through G (one-key switching), further switching to the window of the application B through G (one-key switching), and then switching to the window of the application A through G (one-key switching); and circulating in sequence.
Or, the preset window switching sequence is embodied as a circular linked list, each application is added into one circular linked list according to the starting sequence, and the logic of one-key switching is as follows: moving a window of the currently displayed application, namely the foremost application in the annular linked list, to the tail part of the annular linked list; the second application in the original circular linked list becomes the foremost application in the circular linked list, namely the application which acquires the focus latest.
It should be noted that the size of N may be determined according to the duration or pressing force of the user pressing the key G. For example, different duration ranges are set, and when the duration is greater than 0 and less than 1ms, the value of N is 1; when the duration is greater than or equal to 1ms and less than 2ms, N takes a value of 2, and so on.
In some embodiments, the window switching method may further include: setting a preset window switching sequence according to the following modes:
responding to an opening operation acted on the application, and setting the display hierarchy of the newly created window as a top setting in a preset window switching sequence;
responding to the closing operation acting on the window, and deleting the information of the closed window in a preset window switching sequence;
and responding to the received window switching instruction, and setting the display level of the focus window before window switching as a bottom.
Example 4
The embodiment of the present application further illustrates how to display windows of multiple applications on the basis of the above embodiment. In an exemplary embodiment, displaying a window of a plurality of applications may include: windows displaying multiple applications that are not completely coincident. The windows of the plurality of applications are displayed in a staggered manner, so that the user can determine the number of the opened applications according to the number of the currently displayed windows.
Optionally, the window displaying the plurality of applications, which is not completely overlapped, may further include: responding to an opening operation acting on a corresponding application, and acquiring a package name of an application program; determining offset information of a corresponding window according to a packet name and a hash (hash) function, wherein the offset information comprises an offset of the window relative to the middle display of a screen; and displaying the window of the application according to the offset.
It will be appreciated that each application has a "package name" attribute, with a package name uniquely identifying an application. The same application installed on different machines, the package name of the application read by the machine is the same. The package name is an english character string of about 10-30 characters in length, for example, the package name of WeChat is com. 2 numbers are calculated by using the unique attribute of the package name, and are used as the offset of the x axis and the y axis (horizontal and vertical) of the window relative to the middle of the screen. Here a hash function needs to be used. The hash function is a function that transforms an input of arbitrary length (also called a pre-mapped pre-image) into an output of fixed length, which is a hash value, by a hashing algorithm. The hash function is characterized in that different inputs can obtain different outputs, so that different window offset positions of different applications can be ensured to be different. In the embodiment of the application, the input of the hash function is a packet name, and the output is a number. Illustratively, referring to FIG. 8, dx is the x-axis offset value and dy is the y-axis offset value; w is the screen width and h is the screen height; the middle dotted line frame is the position of the window displayed in the middle of the screen. Where dx and dy can be obtained by the following equations:
dx ═ hash (% (w/2) - (w/4)
dy ═ hash (% (packet name)% (h/2) - (h/4)
In the above formula,% represents the remainder calculation. dx and dy can be both positive or negative, representing 2 offset directions.
In one possible implementation, displaying the window of the application according to the offset may further include: determining whether the window display overflows the screen or not according to the offset and the window size; and if the window displays the overflow screen, completely displaying the applied window in the screen according to the overflow amount. For example, a screen with an offset of at most 1/4 is set to prevent the offset window from being too close to the screen edge.
In addition, each time the window of the application is closed, the smart interactive tablet may store the display position of the corresponding window, for example, record the display position in the memory. In this way, when the application is opened next time, if the smart interactive tablet detects that the display position of the window of the application exists in the memory, the window is displayed based on the display position. Further, considering that data in the memory is lost after shutdown, when the application is opened after shutdown and restart, the display position is not stored in the memory, and the display position of the window of the application is obtained by using the above formula. Therefore, the window switching method may further include: and responding to the closing operation of the window acting on the application, and saving the display position of the corresponding window so as to display the window of the application according to the display position when the corresponding application is opened again.
Example 5
The embodiments of the present application are used to describe a case when windows of a plurality of applications include a set-top window. Since the above embodiment has emphasized the focus window after switching the top display window, where the top window refers to the window displayed at the forefront, if the focus window after switching the window is not the top window, the focus window after switching the top display window may include: and displaying the focus window after the window switching at the forefront of the non-top window, wherein the non-top window is a window except the top window in the windows of the plurality of applications.
It should be clear that the top window is not necessarily the currently operating window, that is, the top window is not necessarily the current focus window.
Example 6
The user controls the intelligent interactive tablet computer through the control equipment, and the control modes comprise a focus control mode in the window and a focus control mode between windows without application. The focus control mode between windows includes window switching. In this scenario, the window switching method may further include: receiving a mode switching instruction, wherein the mode switching instruction is sent by the control equipment when mode switching operation acted on the control equipment by a user is detected, and the mode switching instruction is used for indicating switching of the control mode; if the current control mode is the focus control mode within the window, the focus control mode is switched to the focus control mode between the windows, or if the current control mode is the focus control mode between the windows, the focus control mode is switched to the focus control mode within the window.
According to the embodiment of the application, the mode of the intelligent interactive panel is switched through the mode switching instruction from the control equipment, so that more functions are realized by using the limited number of keys on the control equipment.
It should be noted that, for the sake of brevity, the present application is not intended to be exhaustive, and any features that are not mutually inconsistent can be freely combined to form alternative embodiments of the present application.
Example 7
Referring to fig. 9, the smart interactive tablet 91 displays windows of a plurality of applications, and a user controls the smart interactive tablet 91 through the remote controller 92, and the smart interactive tablet 91 is connected to the server 93. The smart interactive tablet 91 is communicatively coupled to the server 93 via a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 93 may provide various content and interactions to the smart interaction tablet 91. The server 93 may be a cluster or a plurality of clusters, and may include one or more types of servers.
The example is described by taking an electronic device as an intelligent interactive tablet and a control device as a remote controller, but the application is not limited thereto; in addition, the number of the intelligent interactive flat panel and the number of the remote controllers are not limited in the present application, for example, two intelligent interactive flat panels are controlled by one remote controller, or one intelligent interactive flat panel is controlled by two remote controllers, and the like.
If the smart interactive tablet 91 is in the focus control mode within the window, the user inputs a mode switching operation on the remote controller 92, and controls the smart interactive tablet 91 to switch to the focus control mode between the windows through the remote controller 92. Then, the user inputs a window switching operation on the remote controller 92, and controls the smart interactive tablet 91 to switch the currently displayed window through the remote controller 92, so as to achieve the switching effect shown in fig. 6 or fig. 7, for example.
Example 8
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 10, which shows a schematic structural diagram of a window switching apparatus according to an exemplary embodiment of the present application. The window switching device can be realized by software, hardware or a combination of the two to be all or part of an electronic device such as an intelligent interactive tablet. The window switching device 10 includes a display module 11, a transceiver module 12 and a processing module 13. Wherein, the three modules are connected with each other.
The display module 11 is configured to display multiple application windows, where one of the multiple application windows is a focus window before window switching, and the window is in a non-full-screen display mode;
a transceiver module 12, configured to receive a window switching instruction, where the window switching instruction is sent by a control device when detecting a window switching operation performed by a user on the control device, and the window switching instruction is used to indicate a relationship between a focus window after window switching and a focus window before window switching;
and the processing module 13 is configured to determine the focus window after window switching according to the focus window before window switching and the window switching instruction.
Optionally, the window switching instruction is used to indicate a position relationship between the focus window after window switching and the focus window before window switching. The processing module 13 may be specifically configured to: determining the direction of a focus window after window switching relative to the focus window before window switching according to the window switching instruction; determining at least one window positioned in the direction as a window to be selected by taking a focus window before window switching as a reference; determining the coordinate difference of the window to be selected and the focus window before window switching in the direction; and determining the focus window after the window switching according to the coordinate difference.
Optionally, when the processing module 13 is configured to determine the focus window after the window switching according to the coordinate difference, specifically, to: and determining a window to be selected corresponding to the coordinate difference meeting the preset condition as a focus window after window switching, wherein the preset condition comprises the minimum coordinate difference.
Optionally, the window switching instruction is used to indicate a display hierarchical relationship between the focus window after the window switching and the focus window before the window switching. The processing module 13 may be specifically configured to: according to the window switching instruction, determining that the focus window after window switching is the Nth window which is positioned below the display level of the focus window before window switching, wherein N is a positive integer and is less than the number of currently displayed windows; and determining a window corresponding to the Nth display level in a preset window switching sequence as the focus window after window switching by taking the focus window before window switching as a reference, wherein the preset window switching sequence comprises the display levels of a plurality of applied windows.
Optionally, the processing module 13 may be further configured to: setting a preset window switching sequence according to the following modes:
responding to an opening operation acted on the application, and setting the display hierarchy of the newly created window as a top setting in a preset window switching sequence;
responding to the closing operation acting on the window, and deleting the information of the closed window in a preset window switching sequence;
in response to the transceiver module 12 receiving the window switching instruction, the display hierarchy of the focus window before the window switching is set to be set to the bottom.
Optionally, when the display module 11 is configured to display windows of a plurality of applications, specifically: windows displaying multiple applications that are not completely coincident.
Optionally, when the display module 11 displays the windows of the multiple applications in a non-overlapping manner, the display module is specifically configured to: responding to an opening operation acting on a corresponding application, and acquiring a package name of an application program; determining offset information of a corresponding window according to the packet name and the hash function, wherein the offset information comprises an offset of the window relative to the middle display of a screen; and displaying the window of the application according to the offset.
Optionally, when the display module 11 displays the window of the application according to the offset, the display module is specifically configured to: determining whether the window display overflows the screen or not according to the offset and the window size; and if the window displays the overflow screen, completely displaying the applied window in the screen according to the overflow amount.
Optionally, the processing module 13 may be further configured to: and responding to the closing operation of the window acting on the application, and saving the display position of the corresponding window so as to display the window of the application according to the display position when the corresponding application is opened again.
In some embodiments, the processing module 13 is further configured to: after determining the focus window after the window switching, triggering the display module 11 to set the focus window after the window switching.
Optionally, the windows of the plurality of applications comprise a top-placed window. If the focus window after the window switching is not the top-set window, the display module 11 is specifically configured to: and displaying the focus window after the window switching at the forefront of the non-top window, wherein the non-top window is a window except the top window in the windows of the plurality of applications.
Optionally, the transceiver module 12 is further configured to receive a mode switching instruction, where the mode switching instruction is sent by the control device when detecting a mode switching operation performed by a user on the control device, the mode switching instruction is used to instruct switching of the control modes, the control modes include a focus control mode in a window and a focus control mode between windows, and the focus control mode between windows includes window switching. The processing module 13 may also be configured to switch to the focus control mode between windows when the current control mode is the focus control mode between windows, or switch to the focus control mode between windows when the current control mode is the focus control mode between windows.
It should be noted that, when the window switching apparatus provided in the foregoing embodiment executes the window switching method, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the window switching device and the window switching method provided by the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the embodiment of the application, a plurality of application windows are displayed, one of the application windows is a focus window before window switching, and the window is in a non-full screen display mode; receiving a window switching instruction, wherein the window switching instruction is sent by control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relation between a focus window after window switching and a focus window before window switching; and determining the focus window after window switching according to the focus window before window switching and the window switching instruction. The method can determine the focus window after window switching by receiving a window switching instruction for controlling equipment in a multi-window display mode and combining the relation between the focus window after window switching and the focus window before window switching, which is indicated by the window switching instruction, and the focus window after window switching is juxtaposed to display the focus window after window switching, so that the problem that the current non-touch operation cannot directly switch windows of different applications can be solved, and the effect of free switching among the windows of different applications can be achieved.
Example 9
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the foregoing method embodiment, and a specific execution process may refer to a specific description of the method embodiment, which is not described herein again.
The device where the storage medium is located can be an electronic device such as an intelligent interactive tablet.
Example 10
Please refer to fig. 11, which provides a schematic structural diagram of an intelligent interactive tablet according to an embodiment of the present application. As shown in fig. 11, the smart interaction tablet 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 1001 may include one or more processing cores, among other things. The processor 1001, using various interfaces and lines to connect various parts throughout the smart interaction tablet 1000, performs various functions of the smart interaction tablet 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, as well as invoking data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1001, but may be implemented by a single chip.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 11, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an operating application of the smart interactive tablet. Optionally, the operating system of the smart interactive tablet is an android system.
In the intelligent interactive tablet 1000 shown in fig. 11, the user interface 1003 is mainly used to provide an input interface for the user to obtain data input by the user; and the processor 1001 may be configured to call an operation application of the smart interactive tablet stored in the memory 1005, and specifically perform the following operations:
displaying a plurality of application windows, wherein one application window in the plurality of application windows is a focus window before window switching, and the window is in a non-full screen display mode;
receiving a window switching instruction, wherein the window switching instruction is sent by control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relation between a focus window after window switching and a focus window before window switching;
and determining the focus window after window switching according to the focus window before window switching and the window switching instruction.
In some embodiments, the window switching instruction is used to indicate a positional relationship between the focus window after window switching and the focus window before the window switching. Illustratively, the operating system of the smart interactive tablet is an android system. In the android system, the processor 1001 executes a step of determining a focus window after window switching according to a focus window before window switching and a window switching instruction, specifically: determining the direction of a focus window after window switching relative to the focus window before window switching according to the window switching instruction; determining at least one window positioned in the direction as a window to be selected by taking a focus window before window switching as a reference; determining the coordinate difference of the window to be selected and the focus window before window switching in the direction; and determining the focus window after the window switching according to the coordinate difference.
In some embodiments, the processor 1001 executes a step of determining the focus window after the window switching according to the coordinate difference, specifically: and determining a window to be selected corresponding to the coordinate difference meeting the preset condition as a focus window after window switching, wherein the preset condition comprises the minimum coordinate difference.
In some embodiments, the window switching instruction is used for indicating a display hierarchical relationship between the focus window after window switching and the focus window before window switching. Illustratively, the operating system of the smart interactive tablet is an android system. In the android system, the processor 1001 executes a step of determining a focus window after window switching according to a focus window before window switching and a window switching instruction, specifically: according to the window switching instruction, determining that the focus window after window switching is the Nth window which is positioned below the display level of the focus window before window switching, wherein N is a positive integer and is less than the number of currently displayed windows; and determining a window corresponding to the Nth display level in a preset window switching sequence as the focus window after window switching by taking the focus window before window switching as a reference, wherein the preset window switching sequence comprises the display levels of a plurality of applied windows.
In some embodiments, the processor 1001 also performs the following steps: setting a preset window switching sequence according to the following modes:
responding to an opening operation acted on the application, and setting the display hierarchy of the newly created window as a top setting in a preset window switching sequence;
responding to the closing operation acting on the window, and deleting the information of the closed window in a preset window switching sequence;
and responding to the received window switching instruction, and setting the display level of the focus window before window switching as a bottom.
In some embodiments, the processor 1001 executes the steps of displaying a plurality of windows, specifically: windows displaying multiple applications that are not completely coincident.
In some embodiments, the processor 1001 executes a step of displaying the windows of the plurality of applications without overlapping, specifically: responding to an opening operation acting on a corresponding application, and acquiring a package name of an application program; determining offset information of a corresponding window according to the packet name and the hash function, wherein the offset information comprises an offset of the window relative to the middle display of a screen; and displaying the window of the application according to the offset.
In some embodiments, the processor 1001 executes the step of displaying the window of the application according to the offset, specifically: determining whether the window display overflows the screen or not according to the offset and the window size; and if the window displays the overflow screen, completely displaying the applied window in the screen according to the overflow amount.
In some embodiments, the processor 1001 also performs the following steps: and responding to the closing operation of the window acting on the application, and saving the display position of the corresponding window so as to display the window of the application according to the display position when the corresponding application is opened again.
Optionally, the processor 1001 further performs the following steps: and after determining the focus window after the window switching, setting the focus window after the window switching on the top.
In some embodiments, the windows of the plurality of applications include a top-placed window. If the focus window after the window switching is not the set top window, the processor 1001 executes the step of setting the focus window after the window switching on the set top display, which may specifically be: and displaying the focus window after the window switching at the forefront of the non-top window, wherein the non-top window is a window except the top window in the windows of the plurality of applications.
In some embodiments, the processor 1001 also performs the following steps: receiving a mode switching instruction, wherein the mode switching instruction is sent by control equipment when mode switching operation acted on the control equipment by a user is detected, the mode switching instruction is used for indicating switching of control modes, the control modes comprise a focus control mode in a window and a focus control mode between windows, and the focus control mode between windows comprises window switching; and when the current control mode is the focus control mode between the windows, switching to the focus control mode between the windows, or when the current control mode is the focus control mode between the windows, switching to the focus control mode within the windows.
In some cases, the processor 1001 displays windows of a plurality of applications, and it can also be said that the processor 1001 displays windows of a plurality of applications through a display screen. The meaning of which is understood by those skilled in the art.
In the embodiment of the application, a plurality of application windows are displayed, one of the application windows is a focus window before window switching, and the window is in a non-full screen display mode; receiving a window switching instruction, wherein the window switching instruction is sent by control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relation between a focus window after window switching and a focus window before window switching; and determining the focus window after window switching according to the focus window before window switching and the window switching instruction. The method can determine the focus window after window switching by receiving a window switching instruction for controlling equipment in a multi-window display mode and combining the relation between the focus window after window switching and the focus window before window switching, which is indicated by the window switching instruction, and the focus window after window switching is juxtaposed to display the focus window after window switching, so that the problem that the current non-touch operation cannot directly switch windows of different applications can be solved, and the effect of free switching among the windows of different applications can be achieved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (28)

1. A method for switching windows, comprising:
displaying a plurality of application windows, wherein one application window in the plurality of application windows is a focus window before window switching, and the window is in a non-full screen display mode;
receiving a window switching instruction, wherein the window switching instruction is sent by control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relationship between a focus window after window switching and a focus window before window switching;
and determining the focus window after the window switching according to the focus window before the window switching and the window switching instruction.
2. The window switching method according to claim 1, wherein the window switching instruction is used to indicate a positional relationship between a focus window after window switching and a focus window before window switching, and the determining the focus window after window switching according to the focus window before window switching and the window switching instruction includes:
determining the direction of the focus window after the window switching relative to the focus window before the window switching according to the window switching instruction;
determining at least one window positioned in the direction as a window to be selected by taking the focus window before window switching as a reference;
determining the coordinate difference of the window to be selected and the focus window before window switching in the direction;
and determining the focus window after the window switching according to the coordinate difference.
3. The window switching method according to claim 2, wherein the determining the focus window after the window switching according to the coordinate difference comprises:
and determining a window to be selected corresponding to the coordinate difference meeting a preset condition as the focus window after the window switching, wherein the preset condition comprises the minimum coordinate difference.
4. The window switching method according to claim 1, wherein the window switching instruction is used to indicate a display hierarchical relationship between a focus window after window switching and a focus window before window switching, and the determining the focus window after window switching according to the focus window before window switching and the window switching instruction includes:
according to the window switching instruction, determining that the focus window after the window switching is the Nth window which is positioned below the display level of the focus window before the window switching, wherein N is a positive integer and is less than the number of currently displayed windows;
and determining a window corresponding to the Nth display level in a preset window switching sequence as the focus window after the window switching by taking the focus window before the window switching as a reference, wherein the preset window switching sequence comprises the display levels of the plurality of applied windows.
5. The window switching method according to claim 4, further comprising:
setting the preset window switching sequence according to the following modes:
responding to an opening operation acted on an application, and setting the display hierarchy of a newly created window as a top setting in the preset window switching sequence;
responding to closing operation acting on the window, and deleting information of the closed window in the preset window switching sequence;
and responding to the received window switching instruction, and setting the display level of the focus window before the window is switched to be at the bottom.
6. The window switching method according to claim 1, wherein the displaying the windows of the plurality of applications includes:
windows displaying the plurality of applications that are not completely coincident.
7. The window switching method according to claim 6, wherein the incompletely overlapped window displaying the plurality of applications comprises:
responding to an opening operation acting on a corresponding application, and acquiring a package name of an application program;
determining offset information of a corresponding window according to the package name and the hash function, wherein the offset information comprises an offset of the window relative to the middle display of a screen;
and displaying the window of the application according to the offset.
8. The window switching method according to claim 7, wherein the displaying the window of the application according to the offset includes:
determining whether the window display overflows the screen or not according to the offset and the window size;
and if the window displays the overflow screen, completely displaying the applied window in the screen according to the overflow amount.
9. The window switching method according to claim 1, further comprising:
and responding to the closing operation of the window acting on the application, and storing the display position of the corresponding window so as to display the window of the application according to the display position when the corresponding application is opened again.
10. The window switching method according to any one of claims 1 to 9, further comprising:
and after the focus window after the window switching is determined, the focus window after the window switching is displayed on top.
11. The window switching method according to claim 10, wherein the windows of the plurality of applications include a top-positioned window, and if the focus window after the window switching is not the top-positioned window, the top-positioned display of the focus window after the window switching includes:
and displaying the focus window after the window switching at the forefront of a non-top window, wherein the non-top window is a window except the top window in the windows of the plurality of applications.
12. The window switching method according to any one of claims 1 to 9, further comprising:
receiving a mode switching instruction, wherein the mode switching instruction is sent by the control device when detecting a mode switching operation acted on the control device by a user, the mode switching instruction is used for indicating switching of control modes, the control modes comprise a focus control mode in a window and a focus control mode between windows, and the focus control mode between windows comprises window switching;
and if the current control mode is the focus control mode in the window, switching to the focus control mode between the windows, or if the current control mode is the focus control mode between the windows, switching to the focus control mode in the window.
13. A window switching apparatus, comprising:
the display module is used for displaying a plurality of application windows, wherein one application window in the plurality of application windows is a focus window before window switching, and the window is in a non-full screen display mode;
the receiving and sending module is used for receiving a window switching instruction, wherein the window switching instruction is sent by the control equipment when detecting window switching operation acted on the control equipment by a user, and the window switching instruction is used for indicating the relation between a focus window after window switching and a focus window before window switching;
and the processing module is used for determining the focus window after the window switching according to the focus window before the window switching and the window switching instruction.
14. The window switching apparatus according to claim 13, wherein the window switching instruction is configured to indicate a positional relationship between a focus window after window switching and a focus window before window switching, and the processing module is specifically configured to:
determining the direction of the focus window after the window switching relative to the focus window before the window switching according to the window switching instruction;
determining at least one window positioned in the direction as a window to be selected by taking the focus window before window switching as a reference;
determining the coordinate difference of the window to be selected and the focus window before window switching in the direction;
and determining the focus window after the window switching according to the coordinate difference.
15. The window switching apparatus according to claim 14, wherein the processing module, when being configured to determine the focus window after the window switching according to the coordinate difference, is specifically configured to:
and determining a window to be selected corresponding to the coordinate difference meeting a preset condition as the focus window after the window switching, wherein the preset condition comprises the minimum coordinate difference.
16. The window switching apparatus according to claim 13, wherein the window switching instruction is configured to indicate a display hierarchical relationship between a focus window after window switching and a focus window before window switching, and the processing module is specifically configured to:
according to the window switching instruction, determining that the focus window after the window switching is the Nth window which is positioned below the display level of the focus window before the window switching, wherein N is a positive integer and is less than the number of currently displayed windows;
and determining a window corresponding to the Nth display level in a preset window switching sequence as the focus window after the window switching by taking the focus window before the window switching as a reference, wherein the preset window switching sequence comprises the display levels of the plurality of applied windows.
17. The window switching apparatus of claim 16, wherein the processing module is further configured to:
setting the preset window switching sequence according to the following modes:
responding to an opening operation acted on an application, and setting the display hierarchy of a newly created window as a top setting in the preset window switching sequence;
responding to closing operation acting on the window, and deleting information of the closed window in the preset window switching sequence;
and responding to the received window switching instruction, and setting the display level of the focus window before the window is switched to be at the bottom.
18. The window switching apparatus according to claim 13, wherein the display module, when configured to display the windows of the plurality of applications, is specifically configured to:
windows displaying the plurality of applications that are not completely coincident.
19. The window switching apparatus according to claim 18, wherein the display module, when displaying the windows of the plurality of applications in a non-overlapping manner, is specifically configured to:
responding to an opening operation acting on a corresponding application, and acquiring a package name of an application program;
determining offset information of a corresponding window according to the package name and the hash function, wherein the offset information comprises an offset of the window relative to the middle display of a screen;
and displaying the window of the application according to the offset.
20. The window switching apparatus according to claim 19, wherein the display module, when displaying the window of the application according to the offset, is specifically configured to:
determining whether the window display overflows the screen or not according to the offset and the window size;
and if the window displays the overflow screen, completely displaying the applied window in the screen according to the overflow amount.
21. The window switching apparatus of claim 13, wherein the processing module is further configured to:
and responding to the closing operation of the window acting on the application, and storing the display position of the corresponding window so as to display the window of the application according to the display position when the corresponding application is opened again.
22. The window switching apparatus according to any one of claims 13 to 21, wherein the processing module is further configured to:
and after the focus window after the window switching is determined, the focus window after the window switching is displayed on top.
23. The window switching apparatus according to claim 22, wherein the windows of the plurality of applications include a top-positioned window, and if the focus window after the window switching is not the top-positioned window, the display module, when displaying the focus window after the window switching on top, is specifically configured to:
and displaying the focus window after the window switching at the forefront of a non-top window, wherein the non-top window is a window except the top window in the windows of the plurality of applications.
24. The window switching apparatus according to any one of claims 13 to 21, wherein:
the transceiver module is further configured to receive a mode switching instruction, where the mode switching instruction is sent by the control device when detecting a mode switching operation performed by a user on the control device, the mode switching instruction is used to instruct switching of control modes, the control modes include a focus control mode in a window and a focus control mode between windows, and the focus control mode between windows includes window switching;
the processing module is further configured to switch to the focus control mode between the windows when the current control mode is the focus control mode between the windows, or switch to the focus control mode between the windows when the current control mode is the focus control mode between the windows.
25. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the window switching method according to any one of claims 1 to 12.
26. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the window switching method of any of claims 1 to 12.
27. A window switching system comprising the electronic device according to claim 26 and a control device, wherein the control device is configured to issue a window switching instruction when detecting a window switching operation performed by a user on the control device, and the window switching instruction is configured to indicate a relationship between a focus window after window switching and a focus window before the window switching.
28. A computer program product comprising a plurality of instructions adapted to be loaded by a processor and to perform the window switching method according to any of claims 1 to 12.
CN202110411302.8A 2021-04-16 2021-04-16 Window switching method, storage medium and related equipment Active CN113093961B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110411302.8A CN113093961B (en) 2021-04-16 2021-04-16 Window switching method, storage medium and related equipment
PCT/CN2022/083928 WO2022218152A1 (en) 2021-04-16 2022-03-30 Window switching method, storage medium, and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110411302.8A CN113093961B (en) 2021-04-16 2021-04-16 Window switching method, storage medium and related equipment

Publications (2)

Publication Number Publication Date
CN113093961A true CN113093961A (en) 2021-07-09
CN113093961B CN113093961B (en) 2022-09-13

Family

ID=76678238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110411302.8A Active CN113093961B (en) 2021-04-16 2021-04-16 Window switching method, storage medium and related equipment

Country Status (2)

Country Link
CN (1) CN113093961B (en)
WO (1) WO2022218152A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022218152A1 (en) * 2021-04-16 2022-10-20 广州视源电子科技股份有限公司 Window switching method, storage medium, and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009046651A1 (en) * 2007-09-27 2009-04-16 Tencent Technology (Shenzhen) Company Limited Method and apparatus for syncretizing browser and instant communication system
CN102004609A (en) * 2010-11-26 2011-04-06 王琦凡 Mouse and method for controlling window switching by using same
CN103455244A (en) * 2013-08-18 2013-12-18 苏州量跃信息科技有限公司 Method for cursor shifting between windows and client
CN104077016A (en) * 2013-03-29 2014-10-01 中兴通讯股份有限公司 Method and device for displaying and switching multiple windows
CN105898512A (en) * 2015-12-09 2016-08-24 四川长虹电器股份有限公司 Multi-window display and interaction method for intelligent TV Android system
CN111026383A (en) * 2019-11-29 2020-04-17 国电南瑞科技股份有限公司 Graph multi-window monitoring method and device based on power grid dispatching control system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120174020A1 (en) * 2010-12-31 2012-07-05 International Business Machines Corporation Indication of active window when switching tasks in a multi-monitor environment
CN103916710B (en) * 2014-03-31 2018-04-13 优视科技有限公司 focus switching method and system
CN113093961B (en) * 2021-04-16 2022-09-13 广州视源电子科技股份有限公司 Window switching method, storage medium and related equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009046651A1 (en) * 2007-09-27 2009-04-16 Tencent Technology (Shenzhen) Company Limited Method and apparatus for syncretizing browser and instant communication system
CN102004609A (en) * 2010-11-26 2011-04-06 王琦凡 Mouse and method for controlling window switching by using same
CN104077016A (en) * 2013-03-29 2014-10-01 中兴通讯股份有限公司 Method and device for displaying and switching multiple windows
CN103455244A (en) * 2013-08-18 2013-12-18 苏州量跃信息科技有限公司 Method for cursor shifting between windows and client
CN105898512A (en) * 2015-12-09 2016-08-24 四川长虹电器股份有限公司 Multi-window display and interaction method for intelligent TV Android system
CN111026383A (en) * 2019-11-29 2020-04-17 国电南瑞科技股份有限公司 Graph multi-window monitoring method and device based on power grid dispatching control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022218152A1 (en) * 2021-04-16 2022-10-20 广州视源电子科技股份有限公司 Window switching method, storage medium, and related device

Also Published As

Publication number Publication date
CN113093961B (en) 2022-09-13
WO2022218152A1 (en) 2022-10-20

Similar Documents

Publication Publication Date Title
US9996176B2 (en) Multi-touch uses, gestures, and implementation
US11954305B2 (en) Operation methods of a smart interactive tablet, storage medium and related equipment
US9104440B2 (en) Multi-application environment
KR20170041219A (en) Hover-based interaction with rendered content
KR20140025494A (en) Edge gesture
KR20140025493A (en) Edge gesture
TW200939105A (en) Arranging display areas utilizing enhanced window states
US10963136B2 (en) Highlighting of objects on a display
EP3133481B1 (en) Terminal device display method and terminal device
KR102205283B1 (en) Electro device executing at least one application and method for controlling thereof
US10853152B2 (en) Touch application programming interfaces
CN105528217A (en) Partial refreshing method and device based on display list
CN108762657B (en) Operation method and device of intelligent interaction panel and intelligent interaction panel
CN113093961B (en) Window switching method, storage medium and related equipment
CN110688190A (en) Control method and device of intelligent interactive panel
CN112363783B (en) Window switching method, device, medium and interactive panel
CN110908552B (en) Multi-window operation control method, device, equipment and storage medium
WO2019024507A1 (en) Touch control method and device, and terminal
CN115373558A (en) Screen projection method, device, equipment and storage medium
EP4300297A1 (en) Exhibiting method of desktop element and electronic device
EP2722745A1 (en) A method for operating a gesture-controlled graphical user interface
CN112462991A (en) Control method of intelligent interactive tablet, storage medium and related equipment
CN116136733A (en) Multi-screen display method, display control device, equipment and multi-screen display system
CN114816095A (en) Method and device for moving annotation toolbar of touch screen, medium and interactive panel
CN116149588A (en) Display method and display device

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