WO2019091467A1 - Method, apparatus, and device for quickly starting application program, and storage medium - Google Patents

Method, apparatus, and device for quickly starting application program, and storage medium Download PDF

Info

Publication number
WO2019091467A1
WO2019091467A1 PCT/CN2018/114905 CN2018114905W WO2019091467A1 WO 2019091467 A1 WO2019091467 A1 WO 2019091467A1 CN 2018114905 W CN2018114905 W CN 2018114905W WO 2019091467 A1 WO2019091467 A1 WO 2019091467A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
application
mouse event
currently
visual state
Prior art date
Application number
PCT/CN2018/114905
Other languages
French (fr)
Chinese (zh)
Inventor
韩壮
Original Assignee
北京众纳鑫海网络技术有限公司
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 北京众纳鑫海网络技术有限公司 filed Critical 北京众纳鑫海网络技术有限公司
Publication of WO2019091467A1 publication Critical patent/WO2019091467A1/en

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]
    • 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

Definitions

  • the predetermined mouse event may include a click event of a left mouse button or a double click event.

Landscapes

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

Abstract

A method, an apparatus, and a device for quickly starting an application program, and a storage medium. The method comprises: arranging one or a plurality of windows (110) corresponding to one or a plurality of application programs in a desktop environment presented on a display screen (100) of a computer, each window (110) being positioned at the topmost level in the desktop environment and overlapping at least one edge area of the display screen (100), at least part of the overlapping area in the window (110) being set as a non-transparent area, and the other areas in the window (110) that cover the display screen (100) being set as transparent areas; in response to a detected mouse event on the non-transparent area of a specific window (110) amongst the one or plurality of windows (110), determining whether the mouse event is a predetermined mouse event associated with the specific window (110); and, in response to determining that the mouse event is a predetermined mouse event and on the basis of the current state of the application program window (110) of the specific application program corresponding to the specific window (110), switching the corresponding application program window (110) between a visible state and an invisible state.

Description

快捷启动应用程序的方法、装置、设备以及存储介质Method, device, device and storage medium for quickly launching an application 技术领域Technical field
本公开涉及计算机技术,尤其涉及一种快捷启动应用程序的方法、快捷启动应用程序的装置、电子设备以及计算机可读存储介质。The present disclosure relates to computer technology, and more particularly to a method for quickly launching an application, a device for quickly launching an application, an electronic device, and a computer readable storage medium.
背景技术Background technique
用户在使用计算机的过程中,通常会有其频繁使用的应用程序,如浏览器、屏幕保护、音乐播放器、视频播放器或者制图工具等。When users use a computer, they often have applications that they use frequently, such as browsers, screen savers, music players, video players, or graphics tools.
通常情况下,用户可以通过点击计算机桌面上的快捷图标或者在开始菜单中查找相应的菜单选项或者点击计算机操作系统任务栏中的快捷图标等方式,来启动其所需使用的应用程序。上述应用程序的启动方式通常需要用户进行较为精细的视觉辨识以及较为精确的动作控制。这对于视觉或者动作存在一定功能障碍的用户而言,存在一定的不便之处。Typically, users can launch the applications they need by clicking the shortcut icon on their desktop or by looking for the appropriate menu option in the Start menu or by clicking the shortcut icon in the computer's operating system tray. The startup method of the above application usually requires the user to perform more precise visual recognition and more precise motion control. This has certain inconveniences for users who have certain dysfunctions in vision or movement.
由上述描述可知,现有的应用程序启动方式有待于进一步丰富。It can be seen from the above description that the existing application startup mode needs to be further enriched.
发明内容Summary of the invention
本公开的一个方面,提供一种快捷启动应用程序的方法、装置、设备以及存储介质,以提高启动应用程序的便捷性,有利于丰富应用程序启动方式。One aspect of the present disclosure provides a method, apparatus, device, and storage medium for quickly launching an application, to improve the convenience of launching an application, and to enrich the application startup manner.
根据本公开的第一个方面,提供了一种快捷启动应用程序的方法,该方法包括:由一个或多个处理器在呈现在计算机的显示屏上的桌面环境中设置与一个或多个应用程序相对应的一个或多个窗口,其中每个窗口位于所述桌面环境中的最顶层并且与所述显示屏的至少一个边沿区域相重叠、该窗口中的重叠区域中的至少部分被设置为不透明区 域、并且该窗口中覆盖所述显示屏的其他区域被设置为透明区域;响应于在所述一个或多个窗口中的特定窗口的不透明区域上检测到鼠标事件,由所述一个或多个处理器确定所述鼠标事件是否为与所述特定窗口相关联的预定鼠标事件;响应于确定所述鼠标事件为所述预定鼠标事件,基于与所述特定窗口相对应的特定应用程序的应用程序窗口的当前状态,由所述一个或多个处理器对所述应用程序窗口在可视状态和非可视状态之间进行切换,其中,如果所述应用程序窗口当前处于所述非可视状态,所述应用程序窗口被切换至所述可视状态;以及如果所述应用程序窗口当前处于所述可视状态,所述应用程序窗口被切换至所述非可视状态。In accordance with a first aspect of the present disclosure, a method of quickly launching an application is provided, the method comprising: setting, by one or more processors, one or more applications in a desktop environment presented on a display of a computer One or more windows corresponding to the program, wherein each window is located at a topmost level in the desktop environment and overlaps at least one edge region of the display screen, at least a portion of the overlapping regions in the window is set to An opaque area, and other areas of the window covering the display screen are set as transparent areas; in response to detecting a mouse event on an opaque area of a particular window in the one or more windows, by the one or more Determining whether the mouse event is a predetermined mouse event associated with the particular window; in response to determining that the mouse event is the predetermined mouse event, based on an application of a particular application corresponding to the particular window a current state of the program window by which the one or more processors are in a visible state and not available Switching between states, wherein the application window is switched to the visual state if the application window is currently in the non-visual state; and if the application window is currently in the Depending on the state, the application window is switched to the non-visual state.
在上述方法中,所述预定鼠标事件可以包括:鼠标左键的单击或双击事件。In the above method, the predetermined mouse event may include: a click of a left mouse button or a double click event.
在上述方法中,所述一个或多个应用程序中的每一个可以是缺省设置的应用程序、或者用户自定义的应用程序。In the above method, each of the one or more applications may be an application that is set by default, or a user-defined application.
在上述方法中,将所述应用程序窗口切换至所述可视状态可以包括以下之一:在确定所述鼠标事件为所述预定鼠标事件、且所述特定应用程序当前未启动后,在所述桌面环境中启动所述特定应用程序;以及在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动、且所述应用程序窗口被隐藏或者完全被遮挡后,将所述应用程序窗口设为所述桌面环境中的当前活动窗口。In the above method, switching the application window to the visual state may include one of: after determining that the mouse event is the predetermined mouse event, and the specific application is not currently started, The specific application is launched in the desktop environment; and after determining that the mouse event is the predetermined mouse event, the specific application is currently started, and the application window is hidden or completely occluded, The application window is set to the currently active window in the desktop environment.
在上述方法中,将所述应用程序窗口切换为所述非可视状态可以包括以下之一:在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动且所述应用程序窗口为当前活动窗口后,隐藏所述应用程序窗口或者退出所述特定应用程序;以及在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动且所述应用程序窗口被部分遮挡后,隐藏所述应用程序窗口或者退出所述特定应用 程序。In the above method, switching the application window to the non-visual state may include one of: determining that the mouse event is the predetermined mouse event, the specific application is currently activated, and the application After the program window is the current active window, hiding the application window or exiting the specific application; and determining that the mouse event is the predetermined mouse event, the specific application is currently started and the application window After being partially occluded, the application window is hidden or the specific application is exited.
根据本公开的第二个方面,还提供一种快捷启动应用程序的方法,该方法包括:由一个或多个处理器在呈现在计算机的显示屏上的桌面环境中设置与多个应用程序相对应的一个或多个窗口,其中,所述一个或多个窗口中的每个窗口位于所述桌面环境中的最顶层并且与所述显示屏的至少一个边沿区域相重叠,该窗口中的重叠区域中的至少部分被设置为不透明区域,并且该窗口中覆盖所述显示屏的其他区域被设置为透明区域,并且其中,所述一个或多个窗口中的至少一个特定窗口具有多个不同的不透明区域的分段并且所述多个不同的不透明区域的分段各自对应相应的应用程序;响应于在所述至少一个特定窗口的一个不透明区域的分段上检测到鼠标事件,由所述一个或多个处理器确定所述鼠标事件是否为预定鼠标事件;响应于确定所述鼠标事件为所述预定鼠标事件、基于与所述不透明区域的分段相对应的特定应用程序的应用程序窗口的当前状态,由所述一个或多个处理器对所述应用程序窗口在可视状态和非可视状态之间进行切换,其中,如果所述应用程序窗口当前处于所述非可视状态,所述应用程序窗口被切换至所述可视状态;以及如果所述应用程序窗口当前处于所述可视状态,所述应用程序窗口被切换至所述非可视状态。According to a second aspect of the present disclosure, there is also provided a method of quickly launching an application, the method comprising: setting, by one or more processors, a plurality of applications in a desktop environment presented on a display screen of a computer Corresponding one or more windows, wherein each of the one or more windows is located at a topmost level in the desktop environment and overlaps at least one edge region of the display screen, the overlap in the window At least a portion of the region is set as an opaque region, and other regions of the window that cover the display screen are set as transparent regions, and wherein at least one of the one or more windows has a plurality of different Segmentation of opaque regions and segments of the plurality of different opaque regions each corresponding to a respective application; in response to detecting a mouse event on a segment of an opaque region of the at least one particular window, by the one Or a plurality of processors determining whether the mouse event is a predetermined mouse event; responsive to determining that the mouse event is the predetermined a mouse event, based on a current state of an application window of a particular application corresponding to the segment of the opaque region, in a visible state and a non-visual state by the one or more processors Switching between, wherein the application window is switched to the visual state if the application window is currently in the non-visual state; and if the application window is currently in the visible state The application window is switched to the non-visual state.
在上述方法中,所述至少一个特定窗口中位于所述显示屏的同一边沿的不同的不透明区域的分段可以各自对应一个应用程序。In the above method, the segments of the different opaque regions of the same edge of the display screen in the at least one specific window may each correspond to an application.
在上述方法中,所述预定鼠标事件可以包括:鼠标左键的单击事件或双击事件。In the above method, the predetermined mouse event may include a click event of a left mouse button or a double click event.
在上述方法中,所述多个应用程序中的每一个可以是缺省设置的应用程序、或者用户自定义的应用程序。In the above method, each of the plurality of applications may be an application set by default or a user-defined application.
在上述方法中,将所述应用程序窗口切换至所述可视状态可以包 括以下之一:在确定所述鼠标事件为所述预定鼠标事件、且所述特定应用程序当前未启动后,在所述桌面环境中启动所述特定应用程序;在确定所述鼠标事件为预定鼠标鼠标事件、且所述特定应用程序当前已启动、且所述应用程序窗口被隐藏或完全被遮挡后,将所述应用程序窗口设为所述桌面环境中的当前活动窗口。In the above method, switching the application window to the visual state may include one of: after determining that the mouse event is the predetermined mouse event, and the specific application is not currently started, The specific application is launched in the desktop environment; after determining that the mouse event is a predetermined mouse and mouse event, and the specific application is currently started, and the application window is hidden or completely occluded, The application window is set to the currently active window in the desktop environment.
在上述方法中,将所述应用程序窗口切换为所述非可视状态可以包括以下之一:在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动且所述应用程序窗口为当前活动窗口后,隐藏所述应用程序窗口或者退出所述特定应用程序;以及在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动且所述应用程序窗口被部分遮挡后,隐藏所述应用程序窗口或者退出所述特定应用程序。In the above method, switching the application window to the non-visual state may include one of: determining that the mouse event is the predetermined mouse event, the specific application is currently activated, and the application After the program window is the current active window, hiding the application window or exiting the specific application; and determining that the mouse event is the predetermined mouse event, the specific application is currently started and the application window After being partially occluded, the application window is hidden or the specific application is exited.
根据本公开的第三个方面,还提供一种快捷启动应用程序的装置,该装置包括:窗口设置模块,用于在呈现在计算机的显示屏上的桌面环境中设置与一个或多个应用程序相对应的一个或多个窗口,其中每个窗口位于所述桌面环境中的最顶层并且与所述显示屏的至少一个边沿区域相重叠、该窗口中的重叠区域中的至少部分被设置为不透明区域、并且该窗口中覆盖所述显示屏的其他区域被设置为透明区域;鼠标事件处理模块,响应于在所述一个或多个窗口中的特定窗口的不透明区域上检测到鼠标事件,确定所述鼠标事件是否为与所述特定窗口相关联的预定鼠标事件;可视状态控制模块,用于响应于确定所述鼠标事件为所述预定鼠标事件,基于与所述特定窗口相对应的特定应用程序的应用程序窗口的当前状态,对所述应用程序窗口在可视状态和非可视状态之间进行切换,其中,如果所述应用程序窗口当前处于所述非可视状态,所述应用程序窗口被切换至所述可视状态;以及如果所述应用程序窗口当前处于所述可视状态,所述应用程序窗口被切换至所述非可视状态。According to a third aspect of the present disclosure, there is also provided an apparatus for quickly launching an application, the apparatus comprising: a window setting module for setting and one or more applications in a desktop environment presented on a display screen of a computer Corresponding one or more windows, wherein each window is located at a topmost level in the desktop environment and overlaps at least one edge region of the display screen, at least a portion of the overlapping regions in the window being set to be opaque An area, and other areas of the window covering the display screen are set as transparent areas; a mouse event processing module responsive to detecting a mouse event on an opaque area of a particular one of the one or more windows, determining Whether the mouse event is a predetermined mouse event associated with the particular window; a visual state control module responsive to determining that the mouse event is the predetermined mouse event, based on a particular application corresponding to the particular window The current state of the application's application window, visible and non-visual to the application window Switching between, wherein the application window is switched to the visual state if the application window is currently in the non-visual state; and if the application window is currently in the visible state The application window is switched to the non-visual state.
根据本公开的第四个方面,还提供一种快捷启动应用程序的装置,该装置包括:窗口设置模块,用于在呈现在计算机的显示屏上的桌面环境中设置与多个应用程序相对应的一个或多个窗口,其中,所述一个或多个窗口中的每个窗口位于所述桌面环境中的最顶层并且与所述显示屏的至少一个边沿区域相重叠,该窗口中的重叠区域中的至少部分被设置为不透明区域,并且该窗口中覆盖所述显示屏的其他区域被设置为透明区域,并且其中,所述一个或多个窗口中的至少一个特定窗口具有多个不同的不透明区域的分段并且所述多个不同的不透明区域的分段各自对应相应的应用程序;鼠标事件处理模块,用于响应于在所述至少一个特定窗口的一个不透明区域的分段上检测到鼠标事件,确定所述鼠标事件是否为预定鼠标事件;可视状态控制模块,用于响应于确定所述鼠标事件为所述预定鼠标事件、基于与所述不透明区域的分段相对应的特定应用程序的应用程序窗口的当前状态,对所述应用程序窗口在可视状态和非可视状态之间进行切换,其中,如果所述应用程序窗口当前处于所述非可视状态,所述应用程序窗口被切换至所述可视状态;以及如果所述应用程序窗口当前处于所述可视状态,所述应用程序窗口被切换至所述非可视状态。According to a fourth aspect of the present disclosure, there is also provided an apparatus for quickly launching an application, the apparatus comprising: a window setting module, configured to correspond to a plurality of applications in a desktop environment presented on a display screen of the computer One or more windows, wherein each of the one or more windows is located at a topmost level in the desktop environment and overlaps at least one edge region of the display screen, overlapping regions in the window At least a portion of the window is set as an opaque region, and other regions of the window covering the display screen are set as transparent regions, and wherein at least one of the one or more windows has a plurality of different opacity Segmentation of a region and segments of the plurality of different opaque regions each corresponding to a respective application; a mouse event processing module responsive to detecting a mouse on a segment of an opaque region of the at least one particular window An event determining whether the mouse event is a predetermined mouse event; a visual state control module for responding to The mouse event is the predetermined mouse event, based on a current state of an application window of a specific application corresponding to the segment of the opaque region, and the application window is in a visible state and a non-visual state Switching between, wherein the application window is switched to the visual state if the application window is currently in the non-visual state; and if the application window is currently in the visible state, The application window is switched to the non-visual state.
根据本公开的第五个方面,还提供一种电子设备,该电子设备包括:一个或多个处理器;存储器,用于存储指令,所述指令在被所述一个或多个处理器执行时使得所述电子设备实现上述方法中的各个步骤。According to a fifth aspect of the present disclosure, there is also provided an electronic device comprising: one or more processors; a memory for storing instructions when executed by the one or more processors The electronic device is caused to implement the various steps in the above method.
根据本公开的第六个方面,还提供一种其上存储有指令的非易失性计算机可读存储介质,所述指令在被一个或多个处理器执行时实现上述方法中的各个步骤。In accordance with a sixth aspect of the present disclosure, there is also provided a non-transitory computer readable storage medium having stored thereon instructions that, when executed by one or more processors, implement various steps of the above methods.
与现有技术相比,本公开中所描述的技术具有以下优点:Compared to the prior art, the technology described in the present disclosure has the following advantages:
通过设置至少一个位于计算机桌面最顶层的快捷窗口,且该窗口与显示屏的至少一个边沿区域的相重叠区域中的部分或者全部被设置 为不透明区域,这样,用户在该快捷窗口的透明位置处所执行的鼠标操作,可以顺利的透过该窗口而被位于该窗口之下的另一窗口正常接收,而用户在显示屏的边沿区域的不透明区域处所执行的鼠标操作,会被该快捷窗口成功接收;在位于最顶层的快捷窗口设置有对应的应用程序的情况下,用户利用鼠标点击在显示屏的边沿区域中的快捷窗口中的不透明区域,会触发该对应的应用程序的应用程序窗口被显示或者被取消显示;例如,用户点击显示屏上的边沿区域的不透明区域可以显示某个特定浏览器的应用程序窗口或者使该浏览器的应用程序窗口被取消显示,而用户点击在显示屏下部的边沿区域中的快捷窗口内的不透明区域,可以显示视频播放器的窗口或者使视频播放器的窗口被取消显示;从而可以在不需要用户进行较为精细的视觉辨识以及较为精确的动作控制的情况下,方便地启动用户频繁使用的一个或多个应用程序。By setting at least one shortcut window located at the topmost level of the desktop of the computer, and part or all of the overlapping area of the window with at least one edge area of the display screen is set as an opaque area, so that the user is in a transparent position of the shortcut window The executed mouse operation can be smoothly received through the window and received by another window located below the window, and the mouse operation performed by the user at the opaque area of the edge area of the display screen is successfully received by the shortcut window. In the case where the topmost shortcut window is provided with the corresponding application, the user clicks on the opaque area in the shortcut window in the edge area of the display screen, and the application window of the corresponding application is triggered to be displayed. Or canceled display; for example, the user clicking on the opaque area of the edge area on the display can display the application window of a particular browser or cause the browser's application window to be undisplayed, and the user clicks on the lower part of the display Opaque in the shortcut window in the edge area The area can display the window of the video player or make the window of the video player canceled; thus, it is convenient to start a frequently used one of the user without requiring the user to perform more precise visual recognition and more precise motion control. Or multiple applications.
由上述描述可知,本说明书所提供的技术方案有利于提高启动应用程序的便捷性,并有利于丰富启动应用程序的方式。It can be seen from the above description that the technical solution provided by the present specification is beneficial to improve the convenience of starting an application, and is beneficial to enriching the manner of starting the application.
附图说明DRAWINGS
构成说明书的一部分的附图描述了本公开的实施方式,并且连同描述一起用于解释本公开的技术所涉及的原理。The accompanying drawings, which are incorporated in FIG
参照附图,根据下面的详细描述,可以更加清楚地理解本公开的技术,其中:The technology of the present disclosure can be more clearly understood from the following detailed description, in which:
图1为根据一个实施例的位于桌面环境的最顶层的窗口的示意图;1 is a schematic diagram of a topmost window located in a desktop environment, in accordance with one embodiment;
图2为根据一个实施例的位于桌面环境的最顶层的窗口的另一示意图;2 is another schematic diagram of a topmost window located in a desktop environment, in accordance with one embodiment;
图3为根据一个实施例的快捷启动应用程序的方法的流程图;3 is a flow chart of a method of quickly launching an application, in accordance with one embodiment;
图4为根据一个实施例的快捷启动应用程序的方法的另一流程图;4 is another flow diagram of a method of quickly launching an application, in accordance with one embodiment;
图5为根据一个实施例的快捷启动应用程序的装置的示意图;5 is a schematic diagram of an apparatus for quickly launching an application, according to one embodiment;
图6为根据一个实施例的快捷启动应用程序的装置的另一示意图;6 is another schematic diagram of an apparatus for quickly launching an application, according to one embodiment;
图7为根据一个实施例的电子设备的示意图。Figure 7 is a schematic illustration of an electronic device in accordance with one embodiment.
具体实施方式Detailed ways
现在将参照附图来详细描述本公开的各种示例性实施方式。应该注意到的是:除非另外具体说明,否则在这些实施方式中阐述的部件和步骤的相对布置、数字表达式和数值不限制本公开的范围。Various exemplary embodiments of the present disclosure will now be described in detail with reference to the drawings. It should be noted that the relative arrangement of the components and steps, numerical expressions and numerical values set forth in the embodiments are not intended to limit the scope of the disclosure.
同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。In the meantime, it should be understood that the dimensions of the various parts shown in the drawings are not drawn in the actual scale relationship for the convenience of the description.
以下对至少一个示例性实施方式的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。The following description of the at least one exemplary embodiment is merely illustrative and is in no way
对于相关领域普通技术人员已知的技术、方法和设备等可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods, and apparatus, etc., known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods, and devices should be considered as part of the specification.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in one figure, it is not required to be further discussed in the subsequent figures.
本公开中的各个实施方式可以应用于计算机系统或者服务器中。该计算机系统或者服务器的例子包括但不限于:个人计算机系统、服务器计算机系统、瘦客户机、厚客户机、手持或膝上设备、基于微处理器的系统、机顶盒、可编程消费电子产品、网络个人电脑、小型计算机系统、大型计算机系统和包括上述任何系统的分布式云计算技术环境等等。Various embodiments in the present disclosure may be applied to a computer system or a server. Examples of such computer systems or servers include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor based systems, set top boxes, programmable consumer electronics, networks Personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above.
计算机系统或服务器可以在由计算机系统执行的计算机系统可执行指令(诸如程序模块)的一般语境下描述。在通常情况下,程序模块可以包括例程、程序、目标程序、组件、逻辑以及数据结构等等,它们执行特定的任务或者实现特定的抽象数据类型。计算机系统或服务器可以在分布式云计算环境中实施,分布式云计算环境中,任务是由通过通信网络链接的远程处理设备执行的。在分布式云计算环境中,程序模块可以位于包括存储设备的本地或者远程计算系统存储介质上。A computer system or server may be described in the general context of computer system executable instructions (such as program modules) being executed by a computer system. In general, program modules may include routines, programs, target programs, components, logic, and data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system or server can be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located on a local or remote computing system storage medium including storage devices.
下面结合附图1-3对根据一个实施例的一种快捷启动应用程序的方法进行详细描述。A method of quickly launching an application according to an embodiment will be described in detail below with reference to FIGS. 1-3.
该快捷启动应用程序的方法可由安装于包括显示屏的计算机中的客户端程序执行。该客户端程序被启动后,在该计算机的桌面环境中设置一个或多个快捷窗口,这些快捷窗口被用来方便地启动一个或多个应用程序或者显示这些应用程序的对应程序窗口等,或者使得这些应用程序被关闭或者所显示的程序窗口被隐藏等。具体地,每一个快捷窗口均位于桌面环境的最顶层(top most)并可以包含透明区域和不透明区域,并且在该快捷窗口的不透明区域中可以接收鼠标事件,而在该快捷窗口的透明区域中该快捷窗口可以不对任何鼠标事件做出响应,使得所有在该透明区域中发生的鼠标事件都穿透该透明区域并由位于顶层的该快捷窗口之下的另一个窗口所接收并处理。根据一些实施例,每个快捷窗口中的不透明区域通常被设置为该快捷窗口与显示屏的边沿区域相重叠区域中的一部分或者全部,其中该显示屏的边沿区域可以是由距离该显示屏的每个边框达一定宽度的条状区域所构成的框架,并且这些边框的宽度可以是一个或多个像素。此外,该快捷窗口中除该不透明区域外的其他在显示屏中被显示的区域可以被设置成透明区域。The method of quickly launching an application can be performed by a client program installed in a computer including a display screen. After the client program is started, one or more shortcut windows are set in the desktop environment of the computer, and the shortcut windows are used to conveniently launch one or more applications or display corresponding program windows of the applications, etc., or Make these applications closed or the displayed program window is hidden and so on. Specifically, each shortcut window is located at the top most of the desktop environment and may include a transparent area and an opaque area, and a mouse event may be received in the opaque area of the shortcut window, and in a transparent area of the shortcut window The shortcut window may not respond to any mouse events such that all mouse events occurring in the transparent region penetrate the transparent region and are received and processed by another window below the shortcut window at the top level. According to some embodiments, the opaque area in each of the shortcut windows is generally set to be part or all of the area in which the shortcut window overlaps the edge area of the display screen, wherein the edge area of the display screen may be from the display screen Each frame has a frame of a strip of a certain width, and the width of the borders may be one or more pixels. Further, other areas of the shortcut window other than the opaque area that are displayed in the display screen may be set as transparent areas.
在一个实施方式中,图1所示的窗口110即为如上所述的快捷窗口,其被设置在计算机的桌面环境的最顶层,窗口110与显示屏100的边沿区域在上边沿右侧的区段120以及右边沿上侧的区段130处分别重叠。在一些实施例中,可以将窗口110中的区段120的全部或者部分设置为不透明区域,并将窗口110中的区段130的全部或者部分也设置为不透明区域,其中区段120和区段130各自的宽度可以是不同的。窗口110中的位于显示屏100内的其他区域(例如,窗口110中的位于显示屏100内的除了区段120和区段130中的不透明区域之外的其他区域)被设置为透明区域,而窗口110中的位于显示屏100之外的区域可以被设置为透明区域,也可以被设置为不透明区域。In one embodiment, the window 110 shown in FIG. 1 is a shortcut window as described above, which is disposed at the topmost layer of the desktop environment of the computer, and the window 110 and the edge region of the display screen 100 are on the right side of the upper edge. The segment 120 and the right segment overlap at the upper segment 130, respectively. In some embodiments, all or a portion of section 120 in window 110 may be set as an opaque area, and all or a portion of section 130 in window 110 may also be set as an opaque area, where section 120 and section The respective widths of 130 may be different. Other areas in the window 110 that are located within the display screen 100 (eg, other areas of the window 110 that are within the display screen 100 other than the opaque areas in the section 120 and section 130) are set as transparent areas, and The area of the window 110 outside the display screen 100 may be set as a transparent area or may be set as an opaque area.
可选地,区段120的全部或者部分可以被设置为不透明区域,而区段130可以被设置为透明区域。区段120也可以被设置为透明区域,而区段130的全部或者部分可以被设置为不透明区域。Alternatively, all or part of the section 120 may be set as an opaque area, and the section 130 may be set as a transparent area. Section 120 can also be provided as a transparent area, while all or part of section 130 can be set as an opaque area.
在一些实施方式中,窗口110在显示屏100中的具体位置可以根据实际需求设置,只要窗口110与显示屏100的至少一个边沿区域相重叠即可。根据一个具体的实施方式,窗口110可以上移,以便于使窗口110仅有下边框的部分区域与显示屏100上边沿相重叠。根据另一具体的实施方式,窗口110可以右移,以便于使窗口110仅有窗口左边框的部分区域与显示屏100右边沿相重叠。根据再一具体的实施方式,窗口110可以向左下方移动,以便于使窗口110仅有窗口上边框的部分或者全部区域与显示屏100上边沿相重叠,或者以便使窗口110的右上顶点与显示屏100的右上顶点位置重合,这样,窗口110的窗口上边框和窗口右边框分别与显示屏100上边沿和右边沿相重叠。上述这些重叠区域的宽度都可以是一个或更多个像素。应当注意的是,本公开所描述的技术不限制窗口110在显示屏100中的具体布局位置。In some embodiments, the specific location of the window 110 in the display screen 100 can be set according to actual needs as long as the window 110 overlaps with at least one edge region of the display screen 100. According to a specific embodiment, the window 110 can be moved up so that a portion of the window 110 having only the lower bezel overlaps the upper edge of the display screen 100. According to another specific embodiment, the window 110 can be shifted to the right so that the window 110 has only a partial area of the left border of the window overlapping the right edge of the display screen 100. According to still another specific embodiment, the window 110 can be moved to the lower left so as to make the window 110 only have part or all of the upper border of the window overlap with the upper edge of the display screen 100, or to make the upper right vertex of the window 110 and display The upper right vertex positions of the screen 100 coincide, so that the window upper border and the window right border of the window 110 overlap with the upper and right edges of the display screen 100, respectively. The width of the above overlapping regions may be one or more pixels. It should be noted that the techniques described in this disclosure do not limit the specific layout locations of window 110 in display screen 100.
另外,图1中仅示意性示出了一个窗口110,然而,在实际应用中,可以在显示屏100的显示区域的内部和/或外部分别设置两个或者 更多个窗口110。图2中示出了在显示屏100的显示区域的内部和外部分别设置了四个窗口110的一个具体例子。In addition, only one window 110 is schematically illustrated in Fig. 1, however, in practical applications, two or more windows 110 may be separately disposed inside and/or outside the display area of the display screen 100. A specific example in which four windows 110 are respectively disposed inside and outside the display area of the display screen 100 is shown in FIG.
图2中的四个窗口110均有一个窗口边框的部分区域与显示屏100的相应边沿区域相重叠,且四个窗口110均可以完全被设置为不透明区域,也可以仅将图2中的四个窗口110中的与显示屏100的边沿区域相重叠的部分设置为不透明区域,而将四个窗口110中的其他区域均设置为透明区域。The four windows 110 in FIG. 2 have a partial area of the window frame overlapping with the corresponding edge area of the display screen 100, and the four windows 110 can be completely set as the opaque area, or only the four in FIG. A portion of the windows 110 that overlaps the edge region of the display screen 100 is set as an opaque region, and other regions of the four windows 110 are set as transparent regions.
在一些实施方式中,每个窗口110都可以对应一个相应的应用程序,并且不同的快捷窗口通常对应不同的应用程序,例如,如图2所示,四个窗口110被设置在桌面环境的最顶层,而这四个窗口各自对应一个不同的应用程序。例如,这四个窗口中的第一个窗口对应浏览器、第二个窗口对应屏幕保护、第三个窗口对应视频播放器并且第四个窗口对应音频播放器。不同窗口各自对应的应用程序可以是预先缺省设置的,当然,也可以允许用户自行设置,即可以向用户提供设置快捷启动应用程序的功能,从而使用户可以根据其对于经常使用的应用程序的偏好,将预先缺省设置的不同窗口各自对应的应用程序替换为个性化设置的应用程序。In some embodiments, each window 110 may correspond to a corresponding application, and different shortcut windows generally correspond to different applications. For example, as shown in FIG. 2, four windows 110 are set in the most desktop environment. The top level, and each of the four windows corresponds to a different application. For example, the first of the four windows corresponds to the browser, the second window corresponds to the screen saver, the third window corresponds to the video player, and the fourth window corresponds to the audio player. The application corresponding to each window may be pre-set by default. Of course, the user may also be allowed to set the user, that is, the user may be provided with the function of setting a quick launch application, so that the user can according to the application for the frequently used application. Preferences, replacing the application corresponding to the different windows that are pre-set by default with the personalized application.
图3为根据一个实施例的快捷启动应用程序的方法的流程图。3 is a flow diagram of a method of quickly launching an application, in accordance with one embodiment.
图3中所图示的实施例的方法主要包括:步骤S300、步骤S310以及步骤S320。下面对本实施例的方法所包含的各步骤分别进行说明。The method of the embodiment illustrated in FIG. 3 mainly includes: step S300, step S310, and step S320. The respective steps included in the method of the present embodiment will be separately described below.
S300、在通过窗口的不透明区域接收到鼠标事件时,确定该鼠标事件是否为预定鼠标事件。S300. Determine, when a mouse event is received through an opaque area of the window, whether the mouse event is a predetermined mouse event.
在一个实施方式中,鼠标可以是通过移动来控制显示屏上的光标位置、并能够实现左键或者右键的单击或双击的设备,例如,触摸板 或者摇杆等都可以被认为是一种鼠标。在用户通过鼠标点击或者指向位于计算机桌面最顶层的窗口的不透明区域时,该不透明区域所属的窗口会接收到相应的鼠标事件。例如,在用户将鼠标指向位于桌面最顶层的窗口的不透明区域(即使得光标悬停在窗口的不透明区域上达一定时间)时,触发该不透明区域所属的窗口接收该鼠标悬停事件所在的位置信息(也可以称为光标位置或坐标信息);再例如,在用户将鼠标指向位于桌面最顶层的窗口的不透明区域并单击或双击鼠标左键、右键或滚轮等部件时,该不透明区域所属的窗口被触发来接收该鼠标所在的位置信息以及相应的点击信息。In one embodiment, the mouse may be a device that controls the position of the cursor on the display screen by movement, and can implement a click or double click of a left or right button, for example, a touch pad or a joystick can be considered as a kind of mouse. When the user clicks through the mouse or points to the opaque area of the window at the top of the computer desktop, the window to which the opaque area belongs receives the corresponding mouse event. For example, when the user points the mouse to the opaque area of the window at the top of the desktop (ie, causes the cursor to hover over the opaque area of the window for a certain time), triggering the window to which the opaque area belongs to receive the location of the mouse hovering event. Information (also known as cursor position or coordinate information); for example, when the user points the mouse at the opaque area of the topmost window of the desktop and clicks or double-clicks the left mouse button, right button, or scroll wheel, the opaque area belongs to The window is triggered to receive the location information of the mouse and the corresponding click information.
在一个实施方式中,预定鼠标事件可以为鼠标左键单击事件,即在用户利用鼠标左键单击位于桌面最顶层的窗口的不透明区域时,确定该鼠标事件为预定鼠标事件。In one embodiment, the predetermined mouse event may be a left mouse click event, that is, when the user clicks on the opaque area of the topmost window of the desktop with the left mouse button, the mouse event is determined to be a predetermined mouse event.
在一个实施方式中,用户可以被允许设置预定鼠标事件,即可以向用户提供设置预定鼠标事件的功能,从而使用户可以根据其使用习惯,将缺省设置的鼠标事件---比如鼠标左键的单击事件---修改为鼠标右键单击事件、滚轮单击事件或者左键双击事件等。In one embodiment, the user may be allowed to set a predetermined mouse event, that is, the user may be provided with a function of setting a predetermined mouse event, thereby enabling the user to set a default mouse event according to his usage habits, such as a left mouse button. Click event - modified to a right mouse click event, a wheel click event, or a left click event.
需要特别说明的是,针对不同窗口设置的预定鼠标事件可以相同,也可以不相同。也就是说,对于同一桌面环境中所设置的不同窗口,可以采用不同的预定鼠标事件来触发与不同应用程序相对应的应用程序窗口的显示或者隐藏,或者使得这些不同的应用程序被启动或者被关闭。It should be specially noted that the predetermined mouse events set for different windows may be the same or different. That is to say, for different windows set in the same desktop environment, different predetermined mouse events can be used to trigger the display or hiding of the application windows corresponding to different applications, or to enable these different applications to be activated or shut down.
S310、在确定鼠标事件为预定鼠标事件,且与接收到鼠标事件的快捷窗口相对应的应用程序的窗口当前处于非可视状态后,执行显示该应用程序的窗口的操作。S310. After determining that the mouse event is a predetermined mouse event, and the window of the application corresponding to the shortcut window that receives the mouse event is currently in a non-visual state, performing an operation of displaying the window of the application.
在一个实施方式中,与接收到鼠标事件的快捷窗口相对应的应用 程序的窗口当前处于非可视状态可以包括:由于该应用程序未被启动,因此尚不存在该应用程序的窗口,因此这种情况被视为是该应用程序的窗口当前处于“非可视状态”;或者,虽然该应用程序当前已被启动,但是由于该应用程序的窗口被隐藏或者被完全遮挡,从而该应用程序的整个窗口处于完全不被显示的“非可视状态”。该应用程序的窗口被隐藏包括该应用程序的窗口被最小化或者该应用程序的窗口被收起等。In one embodiment, the window of the application corresponding to the shortcut window that receives the mouse event is currently in a non-visual state, which may include: since the application is not started, the window of the application does not yet exist, so this The situation is considered to be that the application's window is currently in a "non-visual state"; or, although the application is currently launched, but because the application's window is hidden or completely occluded, the application's The entire window is in a "non-visual state" that is not displayed at all. The application's window is hidden including the application's window being minimized or the application's window being collapsed, and so on.
在一个实施方式中,在确定了鼠标事件为预定鼠标事件后,可以向操作系统请求当前运行的进程(包括线程)名称,获得当前正在运行的所有进程的名称清单。如果所述清单中并未包含与上述接收到鼠标事件的快捷窗口相对应的应用程序的进程名称,则确定与接收到鼠标事件的快捷窗口相对应的应用程序当前未被启动。也可以采用其他方式来确定与接收到鼠标事件的快捷窗口相对应的应用程序当前是否未被启动。在确定该应用程序当前未被启动后,可以启动与接收到鼠标事件的快捷窗口相对应的应用程序,并使该应用程序的窗口成为当前活动窗口,从而使该应用程序的窗口处于“可视状态”。In one embodiment, after determining that the mouse event is a predetermined mouse event, the operating system may request the name of the currently running process (including the thread) to obtain a list of names of all processes currently running. If the list does not include the process name of the application corresponding to the above-mentioned shortcut window that received the mouse event, it is determined that the application corresponding to the shortcut window that received the mouse event is not currently started. Other ways can also be used to determine if the application corresponding to the shortcut window that received the mouse event is currently not started. After determining that the application is not currently started, an application corresponding to the shortcut window that receives the mouse event can be launched, and the application's window becomes the currently active window, thereby making the application's window "visible" status".
在一个实施方式中,在确定鼠标事件为预定鼠标事件后,可以向操作系统请求当前运行的进程(包括线程)名称,获得当前正在运行的所有进程的名称清单。如果所述清单中包含有与上述接收到鼠标事件的快捷窗口相对应的应用程序的进程名称,则确定与接收到鼠标事件的快捷窗口相对应的应用程序当前已被启动。可以采用多种方式确定已被启动的应用程序的窗口是否处于隐藏状态或者处于完全被遮挡状态,例如,可以向操作系统请求窗口端点坐标位置窗口的句柄,来获得与接收到鼠标事件的快捷窗口相对应的应用程序的窗口的四个端点坐标位置窗口的句柄,进而可以确定四个端点坐标位置窗口的句柄(如窗口ID)是否包含有与接收到鼠标事件的快捷窗口相对应的应用程序的窗口句柄(如窗口ID)。如果四个端点坐标位置窗口的句柄包含有与接收到鼠标事件的快捷窗口相对应的应用程序的窗口句柄(如 其中至少一个端点坐标位置窗口的句柄为应用程序的窗口句柄),则可以确定已被启动的应用程序的窗口并未处于隐藏状态、也并未被完全遮挡,而是处于该窗口的至少部分被显示的可视状态。如果四个端点坐标位置窗口的句柄未包含有与接收到鼠标事件的快捷窗口相对应的应用程序的窗口句柄,则可以初步确定已被启动的应用程序的窗口处于隐藏状态或者处于完全被遮挡状态。本公开并不限制确定应用程序的窗口是否处于隐藏状态或者完全被遮挡状态的具体实现方式。在确定与接收到鼠标事件的快捷窗口相对应的应用程序当前已被启动、且该应用程序的窗口处于隐藏状态或者处于完全被遮挡状态后,可以将该应用程序的窗口切换为当前活动窗口,从而使得该应用程序的窗口处于可视状态。In one embodiment, after determining that the mouse event is a predetermined mouse event, the operating system may request the name of the currently running process (including the thread) to obtain a list of names of all processes currently running. If the list contains the process name of the application corresponding to the above-described shortcut window that receives the mouse event, it is determined that the application corresponding to the shortcut window that received the mouse event is currently started. There are various ways to determine whether the window of the launched application is in a hidden state or in a completely occluded state. For example, a handle to the window endpoint coordinate position window can be requested from the operating system to obtain a shortcut window with the mouse event received. The handle of the window of the four endpoints of the corresponding application window, which in turn determines whether the handle of the four endpoint coordinate position window (such as the window ID) contains the application corresponding to the shortcut window that receives the mouse event. Window handle (such as window ID). If the handle of the four endpoint coordinate position window contains the window handle of the application corresponding to the shortcut window that receives the mouse event (if the handle of at least one of the endpoint coordinate position windows is the application's window handle), then it can be determined that The window of the launched application is not hidden and is not completely occluded, but is in a visible state in which at least part of the window is displayed. If the handle of the four endpoint coordinate position window does not contain the window handle of the application corresponding to the shortcut window that receives the mouse event, it can be initially determined that the window of the launched application is hidden or completely occluded. . The present disclosure does not limit the specific implementation of determining whether a window of an application is in a hidden state or fully occluded. After determining that the application corresponding to the shortcut window that receives the mouse event is currently started, and the application's window is hidden or in a completely occluded state, the application window can be switched to the currently active window. This makes the application's window visible.
S320、在确定鼠标事件为预定鼠标事件,且与接收到鼠标事件的快捷窗口相对应的应用程序的窗口当前处于可视状态后,执行取消该应用程序的窗口的可视状态的操作,即使得该应用程序的窗口被转换到非可视状态。S320. After determining that the mouse event is a predetermined mouse event, and the window of the application corresponding to the shortcut window that receives the mouse event is currently in a visible state, performing an operation of canceling a visible state of the window of the application, that is, The application's window is converted to a non-visual state.
在一个实施方式中,与接收到鼠标事件的快捷窗口相对应的应用程序的窗口当前处于可视状态可以包括:该应用程序当前已被启动,且由于该应用程序的窗口为当前活动窗口,从而整个窗口处于完全被显示的可视状态;或者,该应用程序当前已被启动,且由于该应用程序的窗口并不是当前活动窗口而被其他窗口部分遮挡,从而该窗口处于部分被显示的可视状态。In one embodiment, the window of the application corresponding to the shortcut window receiving the mouse event is currently in a visible state, which may include: the application is currently started, and since the window of the application is the currently active window, thereby The entire window is in a fully visible visual state; or, the application is currently launched, and because the application's window is not currently active, it is partially obscured by other windows, so that the window is partially visible status.
在一个实施方式中,在确定鼠标事件为预定鼠标事件后,向操作系统请求当前运行的进程(包括线程)名称,来获得当前正在运行的所有进程的名称清单。如果确定所述清单中包含有与上述接收到鼠标事件的快捷窗口相对应的应用程序的进程名称,则确定与接收到鼠标事件的快捷窗口相对应的应用程序当前已被启动。也可以采用其他方式确定与接收到鼠标事件的快捷窗口相对应的应用程序当前是否已被 启动。In one embodiment, after determining that the mouse event is a predetermined mouse event, the operating system requests the name of the currently running process (including the thread) to obtain a list of names of all processes currently running. If it is determined that the list contains the process name of the application corresponding to the above-described shortcut window that receives the mouse event, it is determined that the application corresponding to the shortcut window that received the mouse event is currently started. It is also possible to determine in other ways whether the application corresponding to the shortcut window that received the mouse event is currently started.
可以采用多种方式确定与接收到鼠标事件的窗口相对应的应用程序的窗口是否处于可视状态。例如,可以向操作系统请求窗口端点坐标位置窗口的句柄,来获得与接收到鼠标事件的快捷窗口相对应的应用程序的窗口的四个端点坐标位置窗口的句柄,并确定四个端点坐标位置窗口的句柄(如窗口ID)是否包含有与接收到鼠标事件的快捷窗口相对应的应用程序的窗口句柄(如窗口ID)。如果四个端点坐标位置窗口的句柄包含有与接收到鼠标事件的快捷窗口相对应的应用程序的窗口句柄,则可以确定与接收到鼠标事件的快捷窗口相对应的应用程序的窗口未处于隐藏状态,也未被完全遮挡,而是处于至少部分窗口被显示的可视状态。本公开不限制确定应用程序的窗口当前处于可视状态的具体实现方式。在确定了与接收到鼠标事件的快捷窗口相对应的应用程序当前已启动,且该应用程序的窗口当前处于可视状态后,可以隐藏该应用程序的窗口或者关闭该应用程序,从而使该应用程序的窗口处于“隐藏状态”或者“关闭状态”。隐藏该应用程序的窗口的操作可以是收起该应用程序的窗口的操作(即使得应用程序窗口退出显示屏的可视区域而位于显示屏之外的区域)、或最小化该应用程序的窗口的操作等。There are various ways to determine if the window of the application corresponding to the window in which the mouse event was received is in a visible state. For example, the handle of the window endpoint coordinate position window may be requested from the operating system to obtain a handle of the four endpoint coordinate position window of the application window corresponding to the shortcut window receiving the mouse event, and determine the four endpoint coordinate position windows. Whether the handle (such as the window ID) contains the window handle (such as the window ID) of the application corresponding to the shortcut window that received the mouse event. If the handle of the four endpoint coordinate position window contains the window handle of the application corresponding to the shortcut window that received the mouse event, it can be determined that the window of the application corresponding to the shortcut window receiving the mouse event is not hidden. , also not completely occluded, but in a visible state in which at least part of the window is displayed. The present disclosure does not limit the specific implementation of determining that the application's window is currently in a visible state. After determining that the application corresponding to the shortcut window that received the mouse event is currently started, and the application's window is currently in a visible state, the application's window can be hidden or the application can be closed, thereby enabling the application The program's window is in the "hidden state" or "off state". The operation of hiding the window of the application may be an operation of retracting the window of the application (ie, an area where the application window exits the visible area of the display and is outside the display), or a window that minimizes the application. Operation, etc.
下面结合附图1-2以及附图4对根据一个实施例的一种快捷启动应用程序的方法进行详细描述。A method of quickly launching an application according to an embodiment will be described in detail below with reference to FIGS. 1-2 and FIG.
位于桌面最顶层的窗口描述可以参见上述针对图1和图2的描述。与上述针对图1和图2的描述不同的是,在本实施例中,窗口110的多个不透明区域分别设置有不同的对应的应用程序,而不是如前所述的每一个窗口110设置有一个对应的应用程序。需要特别说明的是,位于同一显示屏同一边沿的不同的不透明区域可以对应不同的应用程序。该不透明区域可以是指由于不透明区域的不衔接而自然被区隔出的一个不透明区域,例如,图2中的四个窗口110分别与显示屏100 的边沿相重叠的部分由于不衔接而自然被区隔为四个不透明区域。另外,该不透明区域也可以是指:虽然不透明区域没有由于不衔接而被区隔开来,但是,可以通过坐标位置来定义一个不透明区域,例如,图2中的最上侧的窗口110与显示屏100的上边沿相重叠的部分可以通过坐标位置而划分为两个或者更多不透明区域。本公开不限制界定一个不透明区域的具体实现方式。A description of the window at the top of the desktop can be found in the description above with respect to Figures 1 and 2. Different from the above descriptions for FIG. 1 and FIG. 2, in the embodiment, the plurality of opaque areas of the window 110 are respectively provided with different corresponding applications, instead of each window 110 provided as described above. A corresponding application. It should be specially noted that different opaque areas on the same edge of the same display can correspond to different applications. The opaque area may refer to an opaque area that is naturally separated due to the non-cohesion of the opaque area. For example, the portion of the four windows 110 in FIG. 2 that overlaps the edge of the display screen 100 is naturally The division is divided into four opaque areas. In addition, the opaque area may also mean that although the opaque area is not separated by the unjoined area, an opaque area may be defined by the coordinate position, for example, the uppermost window 110 and the display screen in FIG. The overlapping portion of the upper edge of 100 can be divided into two or more opaque regions by coordinate positions. The present disclosure does not limit the specific implementation of defining an opaque region.
在一个具体的例子中,可以针对图1所示的窗口110中的区段120设置一个对应的应用程序,并且针对区段130设置另一个对应的应用程序。也可以针对区段120的左半部分设置一个对应的应用程序,并且针对区段120的右半部分设置另一个对应的应用程序。In one specific example, a corresponding application can be set for section 120 in window 110 shown in FIG. 1, and another corresponding application can be set for section 130. It is also possible to set a corresponding application for the left half of the section 120 and another corresponding application for the right half of the section 120.
在另一个具体的例子中,针对图2所示的四个窗口110分别与显示屏100相重叠的四个不透明区域,可以各自设置一个对应的应用程序。In another specific example, for the four opaque regions of the four windows 110 shown in FIG. 2 that overlap with the display screen 100, respectively, a corresponding application can be set.
在一个实施方式中,可以仅设置一个位于桌面最顶层的快捷窗口,该窗口的大小可以与整个显示屏的大小相同,且该窗口的四个边框分别与显示屏100的四个边沿区域完全重叠,可以将该窗口的四个边框的所有区域均设置为不透明区域,也可以将该窗口的四个边框的部分区域设置为不透明区域,且每一个边框的不透明区域均可以设置一个对应的应用程序。In one embodiment, only one shortcut window located at the topmost level of the desktop may be set, the size of the window may be the same as the size of the entire display screen, and the four borders of the window completely overlap with the four edge regions of the display screen 100, respectively. You can set all the areas of the four borders of the window to be opaque, or you can set the partial area of the four borders of the window as an opaque area, and each opaque area of the border can be set to a corresponding application. .
图4为根据一个实施例的快捷启动应用程序的方法的流程图。4 is a flow diagram of a method of quickly launching an application, in accordance with one embodiment.
在图4中,本实施例的方法主要包括:步骤S400、步骤S410以及步骤S420。下面对本实施例的方法所包含的各步骤分别进行说明。In FIG. 4, the method of this embodiment mainly includes: step S400, step S410, and step S420. The respective steps included in the method of the present embodiment will be separately described below.
S400、在通过窗口的不透明区域接收到鼠标事件时,确定该鼠标事件是否为预定鼠标事件。S400. Determine whether the mouse event is a predetermined mouse event when a mouse event is received through an opaque area of the window.
本步骤的具体内容可以参见上述针对图3中的步骤S300中的描述,在此不再重复说明。For details of this step, refer to the description in the above step S300 in FIG. 3, and the description is not repeated here.
需要特别说明的是,针对不同的不透明区域而设置的预定鼠标事件可以相同,也可以不相同;也就是说,触发不同应用程序的窗口的显示或者取消不同应用程序的窗口的可视状态的预定鼠标事件可以相同,也可以不相同。It should be specially noted that predetermined mouse events set for different opaque areas may be the same or different; that is, a display that triggers the display of windows of different applications or cancels the visual state of windows of different applications. Mouse events can be the same or different.
S410、在确定该鼠标事件为预定鼠标事件、且与该不透明区域相对应的应用程序的窗口当前处于非可视状态后,执行显示该应用程序的窗口的操作。S410. After determining that the mouse event is a predetermined mouse event, and the window of the application corresponding to the opaque area is currently in a non-visual state, performing an operation of displaying a window of the application.
在一个实施方式中,每一个具有对应的应用程序的不透明区域均具有特定的坐标范围。因此,根据所触发的鼠标事件的坐标信息以及各不透明区域的坐标范围,可以确定该鼠标事件所属的特定不透明区域,进而确定与接收到该鼠标事件的特定不透明区域相对应的应用程序。In one embodiment, each opaque region having a corresponding application has a particular range of coordinates. Therefore, according to the coordinate information of the triggered mouse event and the coordinate range of each opaque area, a specific opaque area to which the mouse event belongs can be determined, thereby determining an application corresponding to the specific opaque area receiving the mouse event.
在一个实施方式中,与不透明区域相对应的应用程序的窗口当前处于非可视状态可以包括:由于与不透明区域相对应的应用程序未被启动而导致其窗口不存在,从而处于非可视状态;或者,虽然与不透明区域相对应的应用程序当前已启动,但是由于该应用程序的窗口被隐藏或者被完全遮挡而处于非可视状态。该应用程序的窗口被隐藏包括该应用程序的窗口被最小化或者应用程序的窗口被收起等。In one embodiment, the window of the application corresponding to the opaque area is currently in a non-visual state, which may include: the window is not present because the application corresponding to the opaque area is not activated, thereby being in a non-visual state Or, although the application corresponding to the opaque area is currently activated, it is in a non-visual state because the application's window is hidden or completely occluded. The application's window is hidden including the application's window being minimized or the application's window being collapsed.
在一个实施方式中,在确定鼠标事件为预定鼠标事件后,可以向操作系统请求当前运行的进程(包括线程),以获得当前运行的所有进程的名称清单。如果所述清单中并未包括有与上述不透明区域相对应的应用程序的进程名称,则确定与该不透明区域相对应的应用程序 当前未被启动。也可以采用其他方式确定与不透明区域相对应的应用程序当前是否未被启动。在确定该应用程序当前未被启动后,可以启动与该不透明区域相对应的应用程序,使该应用程序的窗口成为当前活动窗口,即使得该应用程序的窗口处于“可视状态”。In one embodiment, after determining that the mouse event is a predetermined mouse event, the currently running process (including threads) may be requested from the operating system to obtain a list of names of all currently running processes. If the process name of the application corresponding to the above opaque area is not included in the list, it is determined that the application corresponding to the opaque area is not currently started. It is also possible to determine in other ways whether the application corresponding to the opaque area is currently not started. After determining that the application is not currently launched, the application corresponding to the opaque area can be launched, so that the application's window becomes the currently active window, that is, the application's window is in a "visual state."
在一个实施方式中,在确定鼠标事件为预定鼠标事件后,可以向操作系统请求当前运行的进程(包括线程)名称,获得当前运行的所有进程的名称清单。如果确定所述清单中包括有与上述不透明区域相对应的应用程序的进程名称,则确定与不透明区域相对应的应用程序当前已被启动。可以采用多种方式确定与不透明区域相对应的应用程序的窗口是否处于隐藏状态或者处于完全被遮挡的状态,例如,可以向操作系统请求窗口端点坐标位置窗口的句柄,来获得与不透明区域相对应的应用程序的窗口的四个端点坐标位置窗口的句柄,进而可以确定四个端点坐标位置窗口的句柄是否包含有与不透明区域相对应的应用程序的窗口句柄(如窗口ID)。如果四个端点坐标位置窗口的句柄包含有与不透明区域相对应的应用程序的窗口句柄,则可以确定与不透明区域相对应的应用程序的窗口未处于隐藏状态,也未被完全遮挡,而是处于至少部分窗口被显示的可视状态。如果四个端点坐标位置窗口的句柄未包含有与不透明区域相对应的应用程序的窗口句柄,则可以初步确定与不透明区域相对应的应用程序的窗口处于隐藏状态或者处于完全遮挡状态。本公开不限制确定应用程序的窗口是否处于隐藏或者完全被遮挡的状态的具体实现方式。在确定与不透明区域相对应的应用程序当前已启动,且该应用程序的窗口被隐藏或者完全被遮挡后,可以通过执行当前活动窗口切换操作,使该应用程序的窗口成为当前活动窗口,而处于可视状态。In one embodiment, after determining that the mouse event is a predetermined mouse event, the operating system may request the name of the currently running process (including the thread) to obtain a list of names of all currently running processes. If it is determined that the list includes the process name of the application corresponding to the opaque area described above, it is determined that the application corresponding to the opaque area has been currently started. There may be various ways to determine whether the window of the application corresponding to the opaque area is in a hidden state or in a completely occluded state. For example, a handle of the window endpoint coordinate position window may be requested from the operating system to obtain an opaque area. The handle of the four endpoint coordinate position window of the application's window, which in turn determines whether the handle of the four endpoint coordinate position window contains the window handle of the application corresponding to the opaque area (such as the window ID). If the handle of the four endpoint coordinate position window contains the window handle of the application corresponding to the opaque area, it can be determined that the window of the application corresponding to the opaque area is not hidden or completely occluded, but is in the The visual state at least part of the window being displayed. If the handle of the four endpoint coordinate position window does not contain the window handle of the application corresponding to the opaque area, it may be initially determined that the window of the application corresponding to the opaque area is hidden or in a completely occluded state. The present disclosure does not limit the specific implementation of determining whether a window of an application is in a hidden or fully occluded state. After determining that the application corresponding to the opaque area is currently started, and the window of the application is hidden or completely occluded, the window of the application may be the current active window by performing the current active window switching operation. Visual state.
S420、在确定鼠标事件为预定鼠标事件、且与该不透明区域相对应的应用程序的窗口当前处于可视状态后,执行取消该应用程序的窗口的可视状态的操作,即使得该应用程序的窗口被转换到非可视状态。S420. After determining that the mouse event is a predetermined mouse event, and the window of the application corresponding to the opaque area is currently in a visible state, performing an operation of canceling a visual state of the window of the application, that is, making the application The window is converted to a non-visual state.
在一个实施方式中,与不透明区域相对应的应用程序的窗口当前处于可视状态包括:与不透明区域相对应的应用程序当前已被启动,且由于该应用程序的窗口为当前活动窗口而处于可视状态;或者,与不透明区域相对应的应用程序当前已被启动,且由于的窗口并不是当前活动窗口而被其他窗口部分遮挡,该应用程序的窗口处于部分被显示的可视状态。In one embodiment, the window of the application corresponding to the opaque area is currently in a visible state, including: the application corresponding to the opaque area is currently activated, and the window of the application is currently active window The view state; or, the application corresponding to the opaque area is currently activated, and because the window is not currently active window and is partially occluded by other windows, the application's window is in a partially displayed visual state.
在一个实施方式中,在确定鼠标事件为预定鼠标事件后,可以向操作系统请求当前运行的进程(包括线程)名称,获得当前运行的所有进程的名称清单。如果确定所述清单中包括有与上述不透明区域相对应的应用程序的进程名称,则确定与不透明区域相对应的应用程序当前已被启动。也可以采用其他方式确定与不透明区域相对应的应用程序当前是否已被启动。In one embodiment, after determining that the mouse event is a predetermined mouse event, the operating system may request the name of the currently running process (including the thread) to obtain a list of names of all currently running processes. If it is determined that the list includes the process name of the application corresponding to the opaque area described above, it is determined that the application corresponding to the opaque area has been currently started. It is also possible to determine in other ways whether the application corresponding to the opaque area is currently activated.
可以采用多种方式确定与不透明区域相对应的应用程序的窗口是否处于可视状态。例如,可以向操作系统请求窗口端点坐标位置窗口的句柄,以获得与该不透明区域相对应的应用程序的窗口的四个端点坐标位置窗口的句柄。可以确定四个端点坐标位置窗口的句柄是否包含有与不透明区域相对应的应用程序的窗口句柄(如窗口ID)。如果四个端点坐标位置窗口的句柄包含有与不透明区域相对应的应用程序的窗口句柄,则可以确定与不透明区域相对应的应用程序的窗口未处于隐藏状态,也未被完全遮挡,而是当前处于至少部分窗口被显示的可视状态。本公开不限制确定应用程序的窗口当前处于可视状态的具体实现方式。在确定与不透明区域相对应的应用程序当前已启动、且该应用程序的窗口当前处于可视状态后,可以隐藏该应用程序的窗口或者关闭该应用程序,来使该应用程序的窗口处于“隐藏状态”或者“关闭状态”。隐藏该应用程序的窗口的操作可以是收起该应用程序的窗口或者最小化该应用程序的窗口等。There are various ways to determine if the window of the application corresponding to the opaque area is in a visible state. For example, a handle to the window endpoint coordinate location window can be requested from the operating system to obtain a handle to the four endpoint coordinate position windows of the application's window corresponding to the opaque region. You can determine if the handle of the four endpoint coordinate position window contains a window handle (such as a window ID) for the application that corresponds to the opaque area. If the handle of the four endpoint coordinate position window contains the window handle of the application corresponding to the opaque area, it can be determined that the window of the application corresponding to the opaque area is not hidden or completely occluded, but is currently In a visible state in which at least part of the window is displayed. The present disclosure does not limit the specific implementation of determining that the application's window is currently in a visible state. After determining that the application corresponding to the opaque area is currently launched and the application's window is currently in a visible state, the application's window can be hidden or the application can be closed to hide the application's window Status" or "off status". The operation of hiding the window of the application may be a window that collapses the application or a window that minimizes the application, and the like.
图5为根据一个实施例的快捷启动应用程序的装置的示意图。图 5中的装置包括:至少一个位于桌面最顶层的快捷窗口,该窗口与显示屏的至少一个边沿区域相重叠的区域中的一部分或者全部被设置为不透明区域,该窗口中覆盖显示屏的其他区域被设置为透明区域;另外,不同窗口对应不同应用程序。窗口与显示屏的位置关系、不透明区域的具体位置以及窗口对应应用程序等内容请参见上述针对图1和图2的相关描述,在此不再重复说明。FIG. 5 is a schematic diagram of an apparatus for quickly launching an application, according to one embodiment. The apparatus of FIG. 5 includes: at least one shortcut window located at the topmost level of the desktop, a part or all of the area overlapping the at least one edge area of the display screen being set as an opaque area, the window covering the other of the display screen The area is set to a transparent area; in addition, different windows correspond to different applications. For the content relationship between the window and the display screen, the specific location of the opaque area, and the window corresponding application, please refer to the related descriptions of FIG. 1 and FIG. 2 above, and the description is not repeated here.
本实施例的装置还包括:窗口设置模块500、鼠标事件处理模块510以及可视状态控制模块520。The apparatus of this embodiment further includes: a window setting module 500, a mouse event processing module 510, and a visual state control module 520.
下面对本实施例的装置所包含的各模块分别进行说明。The respective modules included in the apparatus of the present embodiment will be described below.
窗口设置模块500主要用于在通过快捷窗口的不透明区域接收到鼠标事件时,确定鼠标事件是否为预定鼠标事件。The window setting module 500 is mainly used to determine whether a mouse event is a predetermined mouse event when a mouse event is received through an opaque area of the shortcut window.
在一个实施方式中,预定鼠标事件通常为鼠标左键单击事件,即在用户利用鼠标左键单击位于计算机桌面最顶层的窗口的不透明区域时,窗口设置模块500确定鼠标事件为预定鼠标事件。In one embodiment, the predetermined mouse event is typically a left mouse click event, ie, when the user clicks on the opaque area of the topmost window of the computer desktop with the left mouse button, the window setting module 500 determines that the mouse event is a predetermined mouse event. .
在另一个实施方式中,预定鼠标事件可以允许用户自行设置,即窗口设置模块500可以向用户提供设置预定鼠标事件的功能,从而使用户可以根据其使用习惯,将窗口设置模块500缺省设置的鼠标左键单击事件修改为鼠标右键单击事件、滚轮单击事件或者鼠标左键双击等。In another embodiment, the predetermined mouse event may allow the user to set it himself, that is, the window setting module 500 may provide the user with a function of setting a predetermined mouse event, thereby enabling the user to set the window setting module 500 by default according to his usage habits. The left mouse click event is modified to a right mouse click event, a wheel click event, or a left mouse button double click.
鼠标事件处理模块510主要用于:在窗口设置模块500确定鼠标事件为预定鼠标事件时,确定与接收到鼠标事件的快捷窗口相对应的应用程序的窗口当前处于非可视状态还是处于可视状态。The mouse event processing module 510 is mainly configured to: when the window setting module 500 determines that the mouse event is a predetermined mouse event, determine whether the window of the application corresponding to the shortcut window that receives the mouse event is currently in a non-visual state or a visible state. .
在一个实施方式中,与接收到鼠标事件的快捷窗口相对应的应用 程序的窗口当前处于非可视状态可以包括:由于该应用程序未被启动而导致其窗口不存在,从而处于非可视状态;或者,虽然该应用程序当前已启动,但是由于该应用程序的窗口被隐藏或者被完全遮挡,从而处于整个窗口完全不被显示的非可视状态。该应用程序的窗口被隐藏包括该应用程序的窗口被最小化或者该应用程序的窗口被收起等。In one embodiment, the window of the application corresponding to the shortcut window that receives the mouse event is currently in a non-visual state, which may include: the window is not present because the application is not started, and thus is in a non-visual state. Or, although the application is currently launched, the window of the application is hidden or completely occluded, so that the entire window is not displayed in a non-visual state. The application's window is hidden including the application's window being minimized or the application's window being collapsed, and so on.
在一个实施方式中,鼠标事件处理模块510可以在窗口设置模块500确定鼠标事件为预定鼠标事件后,通过向操作系统请求当前运行的进程(包括线程)名称,而获得当前正在运行的所有进程的名称清单。如果确定所述清单中并未包含有与上述接收到鼠标事件的快捷窗口相对应的应用程序的进程名称,鼠标事件处理模块510确定与接收到鼠标事件的快捷窗口相对应的应用程序当前未被启动。鼠标事件处理模块510也可以采用其他方式确定与接收到鼠标事件的快捷窗口相对应的应用程序当前是否未被启动。In one embodiment, the mouse event processing module 510 may obtain all the processes currently running by requesting the operating system to request the currently running process (including the thread) name after the window setting module 500 determines that the mouse event is a predetermined mouse event. List of names. If it is determined that the list does not include the process name of the application corresponding to the shortcut window that receives the mouse event described above, the mouse event processing module 510 determines that the application corresponding to the shortcut window that received the mouse event is not currently available. start up. The mouse event processing module 510 can also determine in other ways whether the application corresponding to the shortcut window that received the mouse event is currently not activated.
在一个实施方式中,鼠标事件处理模块510可以在窗口设置模块500确定鼠标事件为预定鼠标事件后,通过向操作系统请求当前运行的进程(包括线程)名称,而获得当前正在运行的所有进程的名称清单。如果所述清单中包含有与上述接收到鼠标事件的快捷窗口相对应的应用程序的进程名称,鼠标事件处理模块510确定与接收到鼠标事件的快捷窗口相对应的应用程序当前已被启动。鼠标事件处理模块510可以采用多种方式确定已被启动的应用程序的窗口是否处于隐藏状态或者处于完全被遮挡状态。例如,鼠标事件处理模块510可以向计算机操作系统请求窗口端点坐标位置窗口的句柄,来获得与接收到鼠标事件的快捷窗口相对应的应用程序的窗口的四个端点坐标位置窗口的句柄,进而鼠标事件处理模块510可以确定四个端点坐标位置窗口的句柄(如窗口ID)是否包含有与接收到鼠标事件的快捷窗口相对应的应用程序的窗口句柄(如窗口ID)。如果四个端点坐标位置窗口的句柄包含有与接收到鼠标事件的快捷窗口相对应的应用程序的窗口句柄(如其中至少一个端点坐标位置窗口的句柄为应用程序的窗口句柄), 则鼠标事件处理模块510可以确定已被启动的应用程序的窗口并未处于隐藏状态,也并未被完全遮挡,而是处于至少部分窗口被显示的可视状态。如果四个端点坐标位置窗口的句柄未包含有与接收到鼠标事件的快捷窗口相对应的应用程序的窗口句柄,则鼠标事件处理模块510可以初步确定已被启动的应用程序的窗口处于隐藏状态或者处于完全被遮挡状态。本公开不限制鼠标事件处理模块510确定应用程序的窗口是否处于隐藏状态或者完全被遮挡状态的具体实现方式。In one embodiment, the mouse event processing module 510 may obtain all the processes currently running by requesting the operating system to request the currently running process (including the thread) name after the window setting module 500 determines that the mouse event is a predetermined mouse event. List of names. If the list contains the process name of the application corresponding to the shortcut window that received the mouse event described above, the mouse event processing module 510 determines that the application corresponding to the shortcut window that received the mouse event is currently activated. The mouse event processing module 510 can determine whether the window of the launched application is in a hidden state or in a fully occluded state in a variety of ways. For example, the mouse event processing module 510 can request a handle of the window endpoint coordinate position window from the computer operating system to obtain a handle of the four endpoint coordinate position window of the window of the application corresponding to the shortcut window receiving the mouse event, and then the mouse The event processing module 510 can determine whether the handle of the four endpoint coordinate position window (such as the window ID) contains a window handle (such as a window ID) of the application corresponding to the shortcut window that received the mouse event. If the handle of the four endpoint coordinate position window contains the window handle of the application corresponding to the shortcut window that received the mouse event (if the handle of at least one of the endpoint coordinate position windows is the application's window handle), then mouse event processing Module 510 can determine that the window of the application that has been launched is not in a hidden state, nor is it completely occluded, but is in a visible state in which at least a portion of the window is displayed. If the handle of the four endpoint coordinate position window does not include the window handle of the application corresponding to the shortcut window receiving the mouse event, the mouse event processing module 510 may initially determine that the window of the launched application is hidden or In full occlusion. The present disclosure does not limit the specific implementation of the mouse event processing module 510 to determine whether the window of the application is in a hidden state or fully occluded.
可视状态控制模块520主要用于在窗口设置模块500确定鼠标事件为预定鼠标事件,且鼠标事件处理模块510确定与接收到鼠标事件的快捷窗口相对应的应用程序的窗口当前处于非可视状态后,执行显示应用程序的窗口的操作。具体的,可视状态控制模块520可以在鼠标事件处理模块510确定与接收到鼠标事件的快捷窗口相对应的应用程序当前未被启动后,启动与接收到鼠标事件的快捷窗口相对应的应用程序,使该应用程序的窗口成为当前活动窗口,从而使该应用程序的窗口处于可视状态。可视状态控制模块520也可以在鼠标事件处理模块510确定与接收到鼠标事件的快捷窗口相对应的应用程序当前已被启动,且该应用程序的窗口处于隐藏状态或者处于完全被遮挡状态后,通过执行切换当前活动窗口的操作,可以使该应用程序的窗口成为当前活动窗口,从而处于可视状态。The visual state control module 520 is mainly configured to determine that the mouse event is a predetermined mouse event in the window setting module 500, and the mouse event processing module 510 determines that the window of the application corresponding to the shortcut window that receives the mouse event is currently in a non-visual state. After that, the operation of displaying the window of the application is performed. Specifically, the visual state control module 520 can start an application corresponding to the shortcut window that receives the mouse event after the mouse event processing module 510 determines that the application corresponding to the shortcut window that receives the mouse event is not currently started. , making the application's window the currently active window, making the application's window visible. The visual state control module 520 can also determine, after the mouse event processing module 510 determines that the application corresponding to the shortcut window that received the mouse event has been launched, and the window of the application is in a hidden state or is in a completely occluded state, By performing an operation of switching the currently active window, the application's window can be made into the currently active window, thereby being in a visible state.
可视状态控制模块520还主要用于在窗口设置模块500确定鼠标事件为预定鼠标事件,且鼠标事件处理模块510确定与接收到该鼠标事件的快捷窗口相对应的应用程序的窗口当前处于可视状态后,执行取消该应用程序的窗口的可视状态的操作。具体的,可视状态控制模块520可以通过执行隐藏该应用程序的窗口的操作或者执行关闭该应用程序的操作,从而使该应用程序的窗口处于隐藏状态或者关闭状态。可视状态控制模块520所执行的隐藏该应用程序的窗口的操作可以具体为收起该应用程序的窗口的操作,也可以具体为最小化该应用程序的窗口的操作等。The visual state control module 520 is also mainly used to determine that the mouse event is a predetermined mouse event at the window setting module 500, and the mouse event processing module 510 determines that the window of the application corresponding to the shortcut window that receives the mouse event is currently visible. After the status, an operation to cancel the visual state of the window of the application is performed. Specifically, the visual state control module 520 can cause the window of the application to be in a hidden state or a closed state by performing an operation of hiding a window of the application or performing an operation of closing the application. The operation of hiding the window of the application executed by the visual state control module 520 may specifically be an operation of retracting a window of the application, or may be specifically an operation of minimizing a window of the application.
图6为根据一个实施例的另一快捷启动应用程序的装置的示意图。图6中的装置包括:至少一个位于桌面最顶层的快捷窗口,该窗口与显示屏的至少一个边沿区域相重叠的区域中的部分或者全部被设置为不透明区域,该窗口中覆盖显示屏的其他区域被设置为透明区域,位于显示屏边沿的不同不透明区域各自对应一个应用程序。窗口与显示屏的位置关系、不透明区域的具体位置以及窗口对应应用程序等内容请参见上述针对图1和图2的相关描述,在此不再重复说明。6 is a schematic diagram of another device for quickly launching an application, in accordance with one embodiment. The apparatus of Figure 6 includes: at least one shortcut window located at the topmost level of the desktop, part or all of the area overlapping the at least one edge area of the display screen being set as an opaque area, the window covering the other of the display screen The area is set to a transparent area, and the different opaque areas on the edge of the display each correspond to an application. For the content relationship between the window and the display screen, the specific location of the opaque area, and the window corresponding application, please refer to the related descriptions of FIG. 1 and FIG. 2 above, and the description is not repeated here.
本实施例的装置还包括:窗口设置模块600、鼠标事件处理模块610以及可视状态控制模块620。窗口设置模块600具体执行的操作可以参见上述图5中针对窗口设置模块600的相关描述。在此不再重复说明,下面对本实施例的鼠标事件处理模块610和可视状态控制模块620分别进行说明。The apparatus of this embodiment further includes: a window setting module 600, a mouse event processing module 610, and a visual state control module 620. For details of the operations performed by the window setting module 600, refer to the related description of the window setting module 600 in FIG. 5 above. The description of the mouse event processing module 610 and the visual state control module 620 of the present embodiment will be respectively described below.
鼠标事件处理模块610主要用于在窗口设置模块600确定鼠标事件为预定鼠标事件后,确定与该鼠标事件所在的不透明区域相对应的应用程序的窗口当前处于非可视状态,还是处于可视状态。The mouse event processing module 610 is mainly configured to determine, after the window setting module 600 determines that the mouse event is a predetermined mouse event, whether the window of the application corresponding to the opaque area where the mouse event is located is currently in a non-visual state or in a visible state. .
在一个实施方式中,每一个具有对应的应用程序的不透明区域具有特定的坐标范围,从而鼠标事件处理模块610可以根据鼠标事件的坐标信息以及各不透明区域的坐标范围,确定发生了鼠标事件的不透明区域,进而鼠标事件处理模块610可以确定与接收到该鼠标事件的该不透明区域相对应的应用程序。In one embodiment, each opaque region having a corresponding application has a specific coordinate range, so that the mouse event processing module 610 can determine the opacity of the mouse event based on the coordinate information of the mouse event and the coordinate range of each opaque region. The region, and in turn mouse event processing module 610, can determine an application corresponding to the opaque region that received the mouse event.
在一个实施方式中,与不透明区域相对应的应用程序的窗口当前处于非可视状态可以包括:由于与不透明区域相对应的应用程序未被启动而导致其窗口不存在,从而处于非可视状态;或者,虽然与不透明区域相对应的应用程序当前已启动,但是由于该应用程序的窗口被隐藏或者被完全遮挡而处于非可视状态。该应用程序的窗口被隐藏包 括该应用程序的窗口被最小化或者该应用程序的窗口被收起等。In one embodiment, the window of the application corresponding to the opaque area is currently in a non-visual state, which may include: the window is not present because the application corresponding to the opaque area is not activated, thereby being in a non-visual state Or, although the application corresponding to the opaque area is currently activated, it is in a non-visual state because the application's window is hidden or completely occluded. The application's window is hidden, including the application's window being minimized or the application's window being collapsed.
在一个实施方式中,鼠标事件处理模块610可以在窗口设置模块600确定鼠标事件为预定鼠标事件后,向操作系统请求当前运行的进程(包括线程),以获得当前运行的所有进程的名称清单。在确定所述清单中并未包括有与上述不透明区域相对应的应用程序的进程名称后,鼠标事件处理模块610确定与该不透明区域相对应的应用程序当前未被启动。鼠标事件处理模块610也可以采用其他方式确定与不透明区域相对应的应用程序当前是否未被启动。In one embodiment, the mouse event processing module 610 can request the currently running process (including threads) from the operating system after the window setting module 600 determines that the mouse event is a predetermined mouse event to obtain a list of names of all processes currently running. After determining that the process name of the application corresponding to the opaque area is not included in the list, the mouse event processing module 610 determines that the application corresponding to the opaque area is not currently activated. The mouse event processing module 610 can also determine in other ways whether the application corresponding to the opaque area is currently not activated.
在一个实施方式中,鼠标事件处理模块610可以在窗口设置模块600确定鼠标事件为预定鼠标事件后,向操作系统请求当前运行的进程(包括线程)名称,以获得当前运行的所有进程的名称清单。鼠标事件处理模块610在确定所述清单中包括有与上述不透明区域相对应的应用程序的进程名称后,确定与不透明区域相对应的应用程序当前已被启动。鼠标事件处理模块610在确定应用程序当前已被启动后,可以采用多种方式确定与不透明区域相对应的应用程序的窗口是否处于隐藏状态或者处于完全被遮挡的状态。例如,鼠标事件处理模块610可以向操作系统请求窗口端点坐标位置窗口的句柄,来获得与不透明区域相对应的应用程序的窗口的四个端点坐标位置窗口的句柄,进而鼠标事件处理模块610可以确定四个端点坐标位置窗口的句柄是否包含有与不透明区域相对应的应用程序的窗口句柄(如窗口ID)。如果四个端点坐标位置窗口的句柄包含有与不透明区域相对应的应用程序的窗口句柄,则鼠标事件处理模块610可以确定与不透明区域相对应的应用程序的窗口未处于隐藏状态,也未被完全遮挡,而是处于至少部分窗口被显示的可视状态;而如果四个端点坐标位置窗口的句柄未包含有与不透明区域相对应的应用程序的窗口句柄,则鼠标事件处理模块610可以初步确定与不透明区域相对应的应用程序的窗口处于隐藏状态或者处于完全遮挡状态。本公开不限制鼠标事件处理模块610确定应用程序的窗口是否处于隐藏或者完全被遮挡的状态的具体实现 方式。In one embodiment, the mouse event processing module 610 may request the operating system to request the name of the currently running process (including the thread) after the window setting module 600 determines that the mouse event is a predetermined mouse event, to obtain a list of names of all processes currently running. . After determining that the process name of the application corresponding to the opaque area is included in the list, the mouse event processing module 610 determines that the application corresponding to the opaque area has been activated. After determining that the application has been launched, the mouse event processing module 610 can determine whether the window of the application corresponding to the opaque area is in a hidden state or in a completely occluded state in various ways. For example, the mouse event processing module 610 can request a handle of the window endpoint coordinate position window from the operating system to obtain a handle of the four endpoint coordinate position windows of the window of the application corresponding to the opaque region, and the mouse event processing module 610 can determine Whether the handle of the four endpoint coordinate position window contains the window handle of the application corresponding to the opaque area (such as the window ID). If the handle of the four endpoint coordinate position window contains the window handle of the application corresponding to the opaque area, the mouse event processing module 610 may determine that the window of the application corresponding to the opaque area is not hidden or completely Occlusion, but in a visual state in which at least part of the window is displayed; and if the handle of the four endpoint coordinate position window does not contain a window handle of the application corresponding to the opaque area, the mouse event processing module 610 may initially determine The window of the application corresponding to the opaque area is hidden or in a completely occluded state. The present disclosure does not limit the specific implementation of the mouse event processing module 610 determining whether the window of the application is in a hidden or fully occluded state.
在一个实施方式中,与不透明区域相对应的应用程序的窗口当前处于可视状态可以包括:与不透明区域相对应的应用程序当前已被启动,且由于该应用程序的窗口为当前活动窗口而处于可视状态;或者,与不透明区域相对应的应用程序当前已被启动,且由于该应用程序的窗口并不是当前活动窗口而被其他窗口部分遮挡,而处于部分窗口被显示的可视状态。In one embodiment, the window of the application corresponding to the opaque area is currently in a visible state, which may include: the application corresponding to the opaque area is currently activated, and the window of the application is in the current active window The visual state; or, the application corresponding to the opaque area is currently activated, and is partially obscured by other windows because the window of the application is not the currently active window, but is in a visible state in which part of the window is displayed.
在一个实施方式中,鼠标事件处理模块610可以在窗口设置模块600确定鼠标事件为预定鼠标事件后,通过向操作系统请求当前运行的进程(包括线程)名称,而获得当前运行的所有进程的名称清单。如果鼠标事件处理模块610确定所述清单中包括有与上述不透明区域相对应的应用程序的进程名称,则鼠标事件处理模块610确定与不透明区域相对应的应用程序当前已被启动。鼠标事件处理模块610也可以采用其他方式确定与不透明区域相对应的应用程序当前是否已被启动。In one embodiment, the mouse event processing module 610 may obtain the names of all currently running processes by requesting the operating system to request the currently running process (including the thread) name after the window setting module 600 determines that the mouse event is a predetermined mouse event. List. If the mouse event processing module 610 determines that the process name of the application corresponding to the opaque area is included in the list, the mouse event processing module 610 determines that the application corresponding to the opaque area is currently activated. The mouse event processing module 610 can also determine in other ways whether the application corresponding to the opaque area is currently activated.
在确定应用程序当前已被启动之后,鼠标事件处理模块610可以采用多种方式确定与不透明区域相对应的应用程序的窗口是否处于可视状态。例如,鼠标事件处理模块610可以向操作系统请求窗口端点坐标位置窗口的句柄,来获得与该不透明区域相对应的应用程序的窗口的四个端点坐标位置窗口的句柄。鼠标事件处理模块610可以确定四个端点坐标位置窗口的句柄是否包含有与不透明区域相对应的应用程序的窗口句柄(如窗口ID)。如果四个端点坐标位置窗口的句柄包含有与不透明区域相对应的应用程序的窗口句柄,则鼠标事件处理模块610可以确定与不透明区域相对应的应用程序的窗口未处于隐藏状态,也未被完全遮挡,而是当前处于至少部分窗口被显示的可视状态。本公开不限制鼠标事件处理模块610确定应用程序的窗口当前处于可视状态的具体实现方式。After determining that the application has been launched, the mouse event processing module 610 can determine whether the window of the application corresponding to the opaque area is in a visible state in a variety of ways. For example, the mouse event processing module 610 can request a handle to the window endpoint coordinate location window from the operating system to obtain a handle to the four endpoint coordinate position windows of the application's window corresponding to the opaque region. The mouse event processing module 610 can determine whether the handle of the four endpoint coordinate position window contains a window handle (such as a window ID) of the application corresponding to the opaque area. If the handle of the four endpoint coordinate position window contains the window handle of the application corresponding to the opaque area, the mouse event processing module 610 may determine that the window of the application corresponding to the opaque area is not hidden or completely Occlusion, but currently in a visible state in which at least part of the window is displayed. The present disclosure does not limit the specific implementation of the mouse event processing module 610 to determine that the window of the application is currently in a visible state.
可视状态控制模块620主要用于在窗口设置模块600确定鼠标事件为预定鼠标事件,且鼠标事件处理模块610确定与鼠标事件所在的不透明区域相对应的应用程序的窗口当前处于非可视状态后,执行显示该应用程序的窗口的操作。具体的,可视状态控制模块620可以在鼠标事件处理模块610确定与鼠标事件所在的不透明区域相对应的应用程序当前未被启动后,通过执行启动该不透明区域对应的应用程序的操作,使该应用程序的窗口成为当前活动窗口,而处于可视状态。可视状态控制模块620可以在鼠标事件处理模块610确定与不透明区域相对应的应用程序当前已启动,且该应用程序的窗口被隐藏或者完全被遮挡后,通过执行当前活动窗口切换操作,使该应用程序的窗口成为当前活动窗口,而处于可视状态。The visual state control module 620 is mainly configured to determine, in the window setting module 600, that the mouse event is a predetermined mouse event, and the mouse event processing module 610 determines that the window of the application corresponding to the opaque region where the mouse event is located is currently in a non-visual state. , the operation of displaying the window of the application. Specifically, the visual state control module 620 can perform the operation of starting the application corresponding to the opaque area after the mouse event processing module 610 determines that the application corresponding to the opaque area where the mouse event is located is not currently activated. The application's window becomes the current active window and is visible. The visual state control module 620 can determine, after the mouse event processing module 610 determines that the application corresponding to the opaque area is currently activated, and the window of the application is hidden or completely occluded, by performing a current active window switching operation. The application's window becomes the current active window and is visible.
可视状态控制模块620还用于在窗口设置模块600确定鼠标事件为预定鼠标事件,且鼠标事件处理模块610确定与鼠标事件所在的不透明区域相对应的应用程序的窗口当前处于可视状态的情况下,执行取消所述应用程序的窗口的可视状态的操作。具体的,可视状态控制模块620在鼠标事件处理模块610确定与不透明区域相对应的应用程序当前已启动,且该应用程序的窗口当前处于可视状态后,可以通过执行隐藏该应用程序的窗口的操作或者执行关闭该应用程序的操作,而使该应用程序的窗口处于隐藏状态或者关闭状态。可视状态控制模块620所执行的隐藏该应用程序的窗口的操作可以具体为收起该应用程序的窗口的操作,也可以具体为最小化该应用程序的窗口的操作等。The visual state control module 620 is further configured to determine, in the window setting module 600, that the mouse event is a predetermined mouse event, and the mouse event processing module 610 determines that the window of the application corresponding to the opaque region where the mouse event is located is currently in a visible state. Next, an operation of canceling the visual state of the window of the application is performed. Specifically, the visual state control module 620 determines, after the mouse event processing module 610 determines that the application corresponding to the opaque area is currently activated, and the window of the application is currently in a visible state, may execute a window that hides the application. The operation or the operation of closing the application, leaving the application's window hidden or closed. The operation of hiding the window of the application executed by the visual state control module 620 may be specifically an operation of retracting the window of the application, or may be specifically an operation of minimizing the window of the application.
以下描述的是有关如前所述的快捷启动应用程序的方法及装置的一个具体应用场景。Described below is a specific application scenario of the method and apparatus for a quick launch application as described above.
在计算机的显示屏中当前未显示浏览器窗口。此时,如果用户利用鼠标左键单击显示屏的上边沿,则浏览器窗口可以以由上至下滑动的方式从显示屏上边沿滑入显示屏,并以最大化状态显示。另一方面, 在计算机的显示屏中当前显示了浏览器窗口。此时,如果用户利用鼠标左键单击显示屏的上边沿,则浏览器窗口可以以由下至上滑动的方式从显示屏上边沿滑出显示屏,从而使得浏览器窗口被隐藏。The browser window is not currently displayed in the computer's display. At this time, if the user clicks the upper edge of the display with the left mouse button, the browser window can slide from the upper edge of the display screen to the display screen in a top-down manner and display in a maximized state. On the other hand, the browser window is currently displayed in the display of the computer. At this time, if the user clicks the upper edge of the display with the left mouse button, the browser window can slide out from the upper edge of the display screen in a bottom-up manner, so that the browser window is hidden.
在计算机的显示屏当前未显示桌面环境的主视窗(即包含有快捷图标的非操作系统提供的计算机桌面等,且主视窗包含的快捷图标可以是用户使用频率较高的快捷图标)的情况下,如果用户利用鼠标左键单击显示屏的左边沿,则主视窗可以以由左向右滑动的方式从显示屏左边沿滑入显示屏,并以最大化状态显示。在显示屏当前显示主视窗的情况下,如果用户利用鼠标左键单击显示屏的左边沿,则主视窗可以以由右向左滑动的方式从显示屏左边沿滑出显示屏,从而隐藏主视窗。If the main window of the desktop environment (that is, the computer desktop provided by the non-operating system including the shortcut icon, etc., and the shortcut icon included in the main window can be a shortcut icon with a high frequency of use by the user) is not currently displayed on the display screen of the computer. If the user clicks the left edge of the display with the left mouse button, the main window can slide from the left edge of the display screen into the display screen by sliding from left to right and display in a maximized state. In the case that the main window is currently displayed on the display, if the user clicks the left edge of the display with the left mouse button, the main window can slide out from the left side of the display screen by sliding from right to left, thereby hiding the main Windows.
在计算机的显示屏当前未显示桌面环境的副视窗(即包含有快捷图标的非操作系统提供的计算机桌面等,且副视窗包含的快捷图标可以是用户使用频率较低的快捷图标)的情况下,如果用户利用鼠标左键单击显示屏右边沿的下端或者右下角位置处(如下端的高度通常可以为显示屏的任务栏的高度),则副视窗可以以由右下向左上的滑动方式从显示屏右下边沿滑入显示屏,并以最大化状态显示。在显示屏当前显示副视窗的情况下,如果用户利用鼠标左键单击显示屏右边沿的下端或者右下角位置处,则副视窗可以以由左上向右下滑动的方式从显示屏右下边沿滑出显示屏,从而隐藏副视窗。In the case where the display screen of the computer does not currently display the secondary window of the desktop environment (that is, the computer desktop provided by the non-operating system including the shortcut icon, and the shortcut icon included in the secondary window may be a shortcut icon with a lower frequency of use by the user) If the user clicks the left end or the lower right corner of the right edge of the display with the left mouse button (the height of the following end can usually be the height of the taskbar of the display), the secondary window can be swiped from the lower right to the upper left. The lower right edge of the display slides into the display and is displayed in a maximized state. In the case that the display currently displays the secondary window, if the user clicks the lower end or the lower right corner of the right edge of the display with the left mouse button, the secondary window can be swiped from the upper left to the lower right edge from the lower right edge of the display screen. Slide out the display to hide the secondary window.
在计算机的显示屏当前未显示屏幕保护窗口的情况下,如果用户利用鼠标左键双击显示屏下边沿,则可以启动屏幕保护程序,并全屏显示屏幕保护窗口。由于屏幕保护窗口会覆盖不透明区域,因此,在当前显示屏幕保护窗口的情况下,不会接收到鼠标事件,从而用户可以使用现有的退出屏幕保护的方式,来关闭屏幕保护窗口。If the screen saver window is not currently displayed on the computer's display screen, if the user double-clicks the lower edge of the display with the left mouse button, the screen saver can be launched and the screen saver window can be displayed in full screen. Since the screen saver window will cover the opaque area, the mouse event will not be received when the screen saver window is currently displayed, so that the user can use the existing exit screen saver mode to close the screen saver window.
图7示出了适于实现以上所述的方法和装置的示例性电子设备 700(如计算机)。图7中,电子设备700包括一个或者多个处理器、通信部等,所述一个或者多个处理器可以为:一个或者多个中央处理单元(CPU)701和/或一个或者多个图像描述模型的训练器(GPU)713等,处理器可以根据存储在只读存储器(ROM)702中的可执行指令或者从存储部分708加载到随机访问存储器(RAM)703中的可执行指令而执行各种适当的动作和处理。通信部712可以包括但不限于网卡,所述网卡可以包括但不限于IB(Infiniband)网卡。处理器可与ROM702和/或RAM703通信,以执行可执行指令,通过总线704与通信部712相连、并经通信部712与其他目标设备通信,从而完成该方法中的相应步骤。FIG. 7 illustrates an exemplary electronic device 700 (e.g., a computer) suitable for implementing the methods and apparatus described above. In FIG. 7, electronic device 700 includes one or more processors, communication portions, etc., which may be: one or more central processing units (CPUs) 701 and/or one or more image descriptions The model's trainer (GPU) 713 or the like, the processor may execute each according to executable instructions stored in read only memory (ROM) 702 or executable instructions loaded from random access memory (RAM) 703 from storage portion 708. Proper action and processing. The communication unit 712 can include, but is not limited to, a network card, which can include, but is not limited to, an IB (Infiniband) network card. The processor can communicate with ROM 702 and/or RAM 703 to execute executable instructions, connect to communication portion 712 via bus 704, and communicate with other target devices via communication portion 712 to accomplish the corresponding steps in the method.
此外,在RAM 703中,还可以存储有电子设备操作所需的各种程序及数据。CPU701、ROM702以及RAM703通过总线704彼此相连。在有RAM703的情况下,ROM702为可选模块。RAM703存储可执行指令,或在运行时向ROM702中写入可执行指令,可执行指令使中央处理单元701执行上述计算机桌面环境中的窗口切换方法所包括的步骤。输入/输出(I/O)接口705也连接至总线704。通信部712可以集成设置,也可以设置为具有多个子模块(例如,多个IB网卡),并分别与总线连接。Further, in the RAM 703, various programs and data required for the operation of the electronic device can be stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. In the case of RAM 703, ROM 702 is an optional module. The RAM 703 stores executable instructions or writes executable instructions to the ROM 702 at runtime, the executable instructions causing the central processing unit 701 to perform the steps included in the window switching method in the computer desktop environment described above. An input/output (I/O) interface 705 is also coupled to bus 704. The communication unit 712 can be integrated, or can be configured to have a plurality of sub-modules (for example, a plurality of IB network cards) and be respectively connected to the bus.
以下部件连接至I/O接口705:包括键盘、鼠标等输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)以及扬声器等输出部分707;包括硬盘等存储部分708;以及包括诸如LAN卡、调制解调器等网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装在存储部分708中。The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage portion 708 including a hard disk; and A communication portion 709 of a network interface card such as a LAN card or a modem. The communication section 709 performs communication processing via a network such as the Internet. Driver 710 is also connected to I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like is mounted on the drive 710 as needed so that a computer program read therefrom is installed in the storage portion 708 as needed.
需要特别说明的是,如图7所示的架构仅为一种可选实现方式, 在具体实践过程中,可根据实际需要对上述图7的部件数量以及类型进行选择、删减、增加或替换;在不同功能部件设置上,也可采用分离设置或集成设置等实现方式,例如,GPU和CPU可分离设置,再例如,可以将GPU集成在CPU上,通信部可分离设置,也可集成设置在CPU或GPU上等。这些可替换的实施方式均落入本申请的保护范围。It should be specially noted that the architecture shown in FIG. 7 is only an optional implementation manner. In a specific practice, the number and types of the components in FIG. 7 may be selected, deleted, added, or replaced according to actual needs. In different function component settings, separate implementations such as separate settings or integrated settings can also be used. For example, the GPU and the CPU can be separated. For example, the GPU can be integrated on the CPU, and the communication unit can be separated or integrated. On the CPU or GPU, etc. These alternative embodiments are all within the scope of the present application.
特别地,根据一些实施方式,上文参考流程图描述的过程可以被实现为计算机软件程序,例如,一些实施方式包括一种计算机程序产品,其包含有形地包含在机器可读介质上的计算机程序,计算机程序包含用于执行流程图所示的步骤的程序代码,程序代码在被执行时,方法实施方式中的各步骤被执行。In particular, according to some embodiments, the processes described above with reference to flowchart illustrations may be implemented as a computer software program, for example, some embodiments include a computer program product comprising a computer program tangibly embodied on a machine readable medium The computer program contains program code for executing the steps shown in the flowchart, and when the program code is executed, the steps in the method embodiment are executed.
在这样的实施方式中,该计算机程序可以通过通信部分709从网络上被下载及安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行如上所记载的指令。In such an embodiment, the computer program can be downloaded and installed from the network via communication portion 709, and/or installed from removable media 711. When the computer program is executed by the central processing unit (CPU) 701, the instructions as described above are executed.
需要注意的是,本公开的创新想法的一部分可以被实现为计算机程序产品,例如计算机程序指令,当其被智能电子设备(如计算机或者服务器等)执行时,通过该智能电子设备的操作可以调用或者提供根据如上所述的方法和/或技术方案。而调用如上所述的方法的程序指令,可能被存储在固定的或可移动的记录介质中,和/或通过广播或者其他信号承载媒体中的数据流而被传输,和/或被存储在根据所述程序指令运行的智能电子设备的工作存储器中。在此,本公开的创新想法的一个实施例包括一个装置,该装置包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于如上所述的本公开的多个实施例的方法和/或技术方案。It should be noted that a part of the innovative idea of the present disclosure can be implemented as a computer program product, such as computer program instructions, which can be called by an operation of the intelligent electronic device when it is executed by an intelligent electronic device (such as a computer or a server). Alternatively, methods and/or technical solutions according to the above are provided. The program instructions that invoke the method as described above may be stored in a fixed or removable recording medium, and/or transmitted by a data stream in a broadcast or other signal bearing medium, and/or stored in accordance with The program instructions are run in a working memory of an intelligent electronic device. Herein, an embodiment of the innovative idea of the present disclosure includes a device including a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor The method and/or technical solution that triggers the device to operate based on various embodiments of the present disclosure as described above.
对于本领域技术人员而言,显然本公开并不局限于上述示范性实施例的细节,而且在不背离本公开的精神或者基本特征的情况下,能 够以其他的具体形式实现本公开中的各个创新想法。因此,无论从哪一点来看,均应将本公开中的实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或者步骤,且单数不排除复数。装置权利要求中陈述的多个单元或者装置或者模块也可以由一个单元或者装置或者模块通过软件或者硬件来实现。第一,第二等词语仅用来表示名称,而并不表示任何特定的顺序。It is obvious to those skilled in the art that the present disclosure is not limited to the details of the above-described exemplary embodiments, and that various aspects of the present disclosure can be implemented in other specific forms without departing from the spirit or essential characteristics of the present disclosure. Innovative ideas. Therefore, the embodiments of the present disclosure are to be considered as illustrative and not restrictive, and the scope of the present application is defined by the appended claims instead All changes that come within the meaning and range of equivalents of the claims are included. Any reference signs in the claims should not be construed as limiting the claim. In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. The plurality of units or devices or modules recited in the device claims may also be implemented by a unit or device or module in software or hardware. The first, second, and the like are only used to indicate names, and do not denote any particular order.

Claims (15)

  1. 一种快捷启动应用程序的方法,包括:A quick way to launch an application, including:
    由一个或多个处理器在呈现在计算机的显示屏上的桌面环境中设置与一个或多个应用程序相对应的一个或多个窗口,其中每个窗口位于所述桌面环境中的最顶层并且与所述显示屏的至少一个边沿区域相重叠、该窗口中的重叠区域中的至少部分被设置为不透明区域、并且该窗口中覆盖所述显示屏的其他区域被设置为透明区域;One or more windows corresponding to one or more applications are located in a desktop environment presented on a display screen of the computer by one or more processors, wherein each window is located at the topmost level in the desktop environment and Overlying at least one edge region of the display screen, at least a portion of the overlapping regions in the window being disposed as an opaque region, and other regions of the window covering the display screen being disposed as transparent regions;
    响应于在所述一个或多个窗口中的特定窗口的不透明区域上检测到鼠标事件,由所述一个或多个处理器确定所述鼠标事件是否为与所述特定窗口相关联的预定鼠标事件;Detecting, by the one or more processors, whether the mouse event is a predetermined mouse event associated with the particular window in response to detecting a mouse event on an opaque region of a particular window in the one or more windows ;
    响应于确定所述鼠标事件为所述预定鼠标事件,基于与所述特定窗口相对应的特定应用程序的应用程序窗口的当前状态,由所述一个或多个处理器对所述应用程序窗口在可视状态和非可视状态之间进行切换,其中,Responsive to determining that the mouse event is the predetermined mouse event, based on a current state of an application window of a particular application corresponding to the particular window, by the one or more processors Switch between visual state and non-visual state, where
    如果所述应用程序窗口当前处于所述非可视状态,所述应用程序窗口被切换至所述可视状态;以及The application window is switched to the visual state if the application window is currently in the non-visual state;
    如果所述应用程序窗口当前处于所述可视状态,所述应用程序窗口被切换至所述非可视状态。The application window is switched to the non-visual state if the application window is currently in the visual state.
  2. 根据权利要求1所述的方法,其中,所述预定鼠标事件包括:鼠标左键的单击或双击事件。The method of claim 1, wherein the predetermined mouse event comprises a click of a left mouse button or a double click event.
  3. 根据权利要求1所述的方法,其中,所述一个或多个应用程序中的每一个是缺省设置的应用程序、或者用户自定义的应用程序。The method of claim 1, wherein each of the one or more applications is an application that is set by default, or a user-defined application.
  4. 根据权利要求1所述的方法,其中,将所述应用程序窗口切换至所述可视状态包括以下之一:The method of claim 1 wherein switching the application window to the visual state comprises one of:
    在确定所述鼠标事件为所述预定鼠标事件、且所述特定应用程序 当前未启动后,在所述桌面环境中启动所述特定应用程序;以及Initiating the particular application in the desktop environment after determining that the mouse event is the predetermined mouse event and the particular application is not currently launched;
    在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动、且所述应用程序窗口被隐藏或者完全被遮挡后,将所述应用程序窗口设为所述桌面环境中的当前活动窗口。Setting the application window to be in the desktop environment after determining that the mouse event is the predetermined mouse event, the particular application is currently launched, and the application window is hidden or completely occluded The current active window.
  5. 根据权利要求1至4中任一项所述的方法,其中,将所述应用程序窗口切换为所述非可视状态包括以下之一:The method of any one of claims 1 to 4, wherein switching the application window to the non-visual state comprises one of:
    在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动且所述应用程序窗口为当前活动窗口后,隐藏所述应用程序窗口或者退出所述特定应用程序;以及Hiding the application window or exiting the specific application after determining that the mouse event is the predetermined mouse event, the particular application is currently launched, and the application window is the currently active window;
    在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动且所述应用程序窗口被部分遮挡后,隐藏所述应用程序窗口或者退出所述特定应用程序。After determining that the mouse event is the predetermined mouse event, the particular application is currently launched, and the application window is partially occluded, the application window is hidden or the particular application is exited.
  6. 一种快捷启动应用程序的方法,包括:A quick way to launch an application, including:
    由一个或多个处理器在呈现在计算机的显示屏上的桌面环境中设置与多个应用程序相对应的一个或多个窗口,其中,所述一个或多个窗口中的每个窗口位于所述桌面环境中的最顶层并且与所述显示屏的至少一个边沿区域相重叠,该窗口中的重叠区域中的至少部分被设置为不透明区域,并且该窗口中覆盖所述显示屏的其他区域被设置为透明区域,并且其中,所述一个或多个窗口中的至少一个特定窗口具有多个不同的不透明区域的分段并且所述多个不同的不透明区域的分段各自对应相应的应用程序;One or more windows corresponding to the plurality of applications are disposed by the one or more processors in a desktop environment presented on a display screen of the computer, wherein each of the one or more windows is located Depicting a topmost layer in the desktop environment and overlapping at least one edge region of the display screen, at least a portion of the overlapping regions in the window being set as an opaque region, and other regions of the window covering the display screen being Provided as a transparent area, and wherein at least one of the one or more windows has a segment of a plurality of different opaque regions and the segments of the plurality of different opaque regions each correspond to a corresponding application;
    响应于在所述至少一个特定窗口的一个不透明区域的分段上检测到鼠标事件,由所述一个或多个处理器确定所述鼠标事件是否为预定鼠标事件;Detecting, by the one or more processors, whether the mouse event is a predetermined mouse event in response to detecting a mouse event on a segment of an opaque region of the at least one particular window;
    响应于确定所述鼠标事件为所述预定鼠标事件、基于与所述不透明区域的分段相对应的特定应用程序的应用程序窗口的当前状态,由所述一个或多个处理器对所述应用程序窗口在可视状态和非可视状态之间进行切换,其中,Responsive to the application by the one or more processors in response to determining that the mouse event is the predetermined mouse event, based on a current state of an application window of a particular application corresponding to the segment of the opaque region The program window switches between a visible state and a non-visual state, wherein
    如果所述应用程序窗口当前处于所述非可视状态,所述应用程序窗口被切换至所述可视状态;以及The application window is switched to the visual state if the application window is currently in the non-visual state;
    如果所述应用程序窗口当前处于所述可视状态,所述应用程序窗口被切换至所述非可视状态。The application window is switched to the non-visual state if the application window is currently in the visual state.
  7. 根据权利要求6所述的方法,其中,所述至少一个特定窗口中位于所述显示屏的同一边沿的不同的不透明区域的分段各自对应一个应用程序。The method of claim 6 wherein the segments of the different opaque regions of the same edge of the display screen in the at least one particular window each correspond to an application.
  8. 根据权利要求6所述的方法,其中,所述预定鼠标事件包括:鼠标左键的单击事件或双击事件。The method of claim 6, wherein the predetermined mouse event comprises a click event of a left mouse button or a double click event.
  9. 根据权利要求6所述的方法,其中,所述多个应用程序中的每一个是缺省设置的应用程序、或者用户自定义的应用程序。The method of claim 6, wherein each of the plurality of applications is a default set application or a user-defined application.
  10. 根据权利要求6所述的方法,其中,将所述应用程序窗口切换至所述可视状态包括以下之一:The method of claim 6 wherein switching the application window to the visual state comprises one of:
    在确定所述鼠标事件为所述预定鼠标事件、且所述特定应用程序当前未启动后,在所述桌面环境中启动所述特定应用程序;The specific application is launched in the desktop environment after determining that the mouse event is the predetermined mouse event and the specific application is not currently started;
    在确定所述鼠标事件为预定鼠标鼠标事件、且所述特定应用程序当前已启动、且所述应用程序窗口被隐藏或完全被遮挡后,将所述应用程序窗口设为所述桌面环境中的当前活动窗口。Setting the application window to be in the desktop environment after determining that the mouse event is a predetermined mouse and mouse event, and the specific application is currently launched, and the application window is hidden or completely occluded The current active window.
  11. 根据权利要求6至10中任一项所述的方法,其中,将所述应用程序窗口切换为所述非可视状态包括以下之一:The method of any one of claims 6 to 10, wherein switching the application window to the non-visual state comprises one of the following:
    在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动且所述应用程序窗口为当前活动窗口后,隐藏所述应用程序窗口或者退出所述特定应用程序;以及Hiding the application window or exiting the specific application after determining that the mouse event is the predetermined mouse event, the particular application is currently launched, and the application window is the currently active window;
    在确定所述鼠标事件为所述预定鼠标事件、所述特定应用程序当前已启动且所述应用程序窗口被部分遮挡后,隐藏所述应用程序窗口 或者退出所述特定应用程序。After determining that the mouse event is the predetermined mouse event, the particular application is currently launched, and the application window is partially occluded, the application window is hidden or the particular application is exited.
  12. 一种快捷启动应用程序的装置,包括:A device that quickly launches an application, including:
    窗口设置模块,用于在呈现在计算机的显示屏上的桌面环境中设置与一个或多个应用程序相对应的一个或多个窗口,其中每个窗口位于所述桌面环境中的最顶层并且与所述显示屏的至少一个边沿区域相重叠、该窗口中的重叠区域中的至少部分被设置为不透明区域、并且该窗口中覆盖所述显示屏的其他区域被设置为透明区域;a window setting module for setting one or more windows corresponding to one or more applications in a desktop environment presented on a display screen of the computer, wherein each window is located at a topmost level in the desktop environment and At least one edge region of the display screen overlaps, at least a portion of the overlap region in the window is set as an opaque region, and other regions of the window covering the display screen are set as transparent regions;
    鼠标事件处理模块,响应于在所述一个或多个窗口中的特定窗口的不透明区域上检测到鼠标事件,确定所述鼠标事件是否为与所述特定窗口相关联的预定鼠标事件;a mouse event processing module responsive to detecting a mouse event on an opaque region of a particular one of the one or more windows, determining whether the mouse event is a predetermined mouse event associated with the particular window;
    可视状态控制模块,用于响应于确定所述鼠标事件为所述预定鼠标事件,基于与所述特定窗口相对应的特定应用程序的应用程序窗口的当前状态,对所述应用程序窗口在可视状态和非可视状态之间进行切换,其中,a visual state control module responsive to determining that the mouse event is the predetermined mouse event, based on a current state of an application window of a specific application corresponding to the specific window, Switch between visual state and non-visual state, where
    如果所述应用程序窗口当前处于所述非可视状态,所述应用程序窗口被切换至所述可视状态;以及The application window is switched to the visual state if the application window is currently in the non-visual state;
    如果所述应用程序窗口当前处于所述可视状态,所述应用程序窗口被切换至所述非可视状态。The application window is switched to the non-visual state if the application window is currently in the visual state.
  13. 一种快捷启动应用程序的装置,包括:A device that quickly launches an application, including:
    窗口设置模块,用于在呈现在计算机的显示屏上的桌面环境中设置与多个应用程序相对应的一个或多个窗口,其中,所述一个或多个窗口中的每个窗口位于所述桌面环境中的最顶层并且与所述显示屏的至少一个边沿区域相重叠,该窗口中的重叠区域中的至少部分被设置为不透明区域,并且该窗口中覆盖所述显示屏的其他区域被设置为透明区域,并且其中,所述一个或多个窗口中的至少一个特定窗口具有多个不同的不透明区域的分段并且所述多个不同的不透明区域的分段各自对应相应的应用程序;a window setting module for setting one or more windows corresponding to the plurality of applications in a desktop environment presented on a display screen of the computer, wherein each of the one or more windows is located a topmost layer in the desktop environment and overlapping at least one edge region of the display screen, at least a portion of the overlapping regions in the window being set as an opaque region, and other regions of the window covering the display screen being set a transparent area, and wherein at least one of the one or more windows has a segment of a plurality of different opaque regions and the segments of the plurality of different opaque regions each correspond to a respective application;
    鼠标事件处理模块,用于响应于在所述至少一个特定窗口的一个 不透明区域的分段上检测到鼠标事件,确定所述鼠标事件是否为预定鼠标事件;a mouse event processing module for determining whether the mouse event is a predetermined mouse event in response to detecting a mouse event on a segment of an opaque region of the at least one particular window;
    可视状态控制模块,用于响应于确定所述鼠标事件为所述预定鼠标事件、基于与所述不透明区域的分段相对应的特定应用程序的应用程序窗口的当前状态,对所述应用程序窗口在可视状态和非可视状态之间进行切换,其中,a visual state control module responsive to determining that the mouse event is the predetermined mouse event, based on a current state of an application window of a particular application corresponding to the segment of the opaque region, the application The window switches between a visible state and a non-visual state, wherein
    如果所述应用程序窗口当前处于所述非可视状态,所述应用程序窗口被切换至所述可视状态;以及The application window is switched to the visual state if the application window is currently in the non-visual state;
    如果所述应用程序窗口当前处于所述可视状态,所述应用程序窗口被切换至所述非可视状态。The application window is switched to the non-visual state if the application window is currently in the visual state.
  14. 一种电子设备,包括:An electronic device comprising:
    一个或多个处理器;One or more processors;
    存储器,用于存储指令,所述指令在被所述一个或多个处理器执行时使得所述电子设备实现上述权利要求1-11中任一项所述的方法。A memory for storing instructions that, when executed by the one or more processors, cause the electronic device to implement the method of any of the preceding claims 1-11.
  15. 一种其上存储有指令的非易失性计算机可读存储介质,所述指令在被一个或多个处理器执行时实现上述权利要求1-11中任一项所述的方法。A non-transitory computer readable storage medium having stored thereon instructions that, when executed by one or more processors, implement the method of any of the preceding claims.
PCT/CN2018/114905 2017-11-09 2018-11-09 Method, apparatus, and device for quickly starting application program, and storage medium WO2019091467A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711099628.1A CN109766034B (en) 2017-11-09 2017-11-09 Method, device and equipment for quickly starting application program and storage medium
CN201711099628.1 2017-11-09

Publications (1)

Publication Number Publication Date
WO2019091467A1 true WO2019091467A1 (en) 2019-05-16

Family

ID=66438754

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/114905 WO2019091467A1 (en) 2017-11-09 2018-11-09 Method, apparatus, and device for quickly starting application program, and storage medium

Country Status (2)

Country Link
CN (1) CN109766034B (en)
WO (1) WO2019091467A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035271B (en) * 2019-06-04 2023-10-10 杭州海康威视数字技术股份有限公司 User operation information processing method and device, electronic equipment and storage medium
CN111880879B (en) * 2020-07-24 2023-04-07 上海米哈游天命科技有限公司 Playing method, device, equipment and storage medium of dynamic wallpaper
CN113342412A (en) * 2021-05-31 2021-09-03 湖北亿咖通科技有限公司 Method and device for quickly starting vehicle-mounted application, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298417A (en) * 2013-07-19 2015-01-21 北京三星通信技术研究有限公司 Application program view management method and device by mobile terminal
CN105094534A (en) * 2015-06-30 2015-11-25 青岛海信移动通信技术股份有限公司 Method and device for window display switching of intelligent hand-held equipment
WO2016101810A1 (en) * 2014-12-23 2016-06-30 阿里巴巴集团控股有限公司 Method for switching display object in multi-window system and device thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9298474B2 (en) * 2004-10-06 2016-03-29 International Business Machines Corporation System and method for managing a floating window
CN100462909C (en) * 2006-03-31 2009-02-18 腾讯科技(深圳)有限公司 Method and device for controlling window interface display
CN1838052A (en) * 2006-04-12 2006-09-27 魏新成 Method for executing corresponding function operation by clicking mouse key at computer screen edge
CN102208179A (en) * 2011-06-02 2011-10-05 智比特信息技术(镇江)有限公司 Method for displaying multiple windows on small screen simultaneously
CN102508609A (en) * 2011-11-17 2012-06-20 潘天华 Method for controlling displaying and hiding of computer application program window

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298417A (en) * 2013-07-19 2015-01-21 北京三星通信技术研究有限公司 Application program view management method and device by mobile terminal
WO2016101810A1 (en) * 2014-12-23 2016-06-30 阿里巴巴集团控股有限公司 Method for switching display object in multi-window system and device thereof
CN105094534A (en) * 2015-06-30 2015-11-25 青岛海信移动通信技术股份有限公司 Method and device for window display switching of intelligent hand-held equipment

Also Published As

Publication number Publication date
CN109766034B (en) 2020-08-11
CN109766034A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
US11698721B2 (en) Managing an immersive interface in a multi-application immersive environment
US9658766B2 (en) Edge gesture
EP2815299B1 (en) Thumbnail-image selection of applications
US10303325B2 (en) Multi-application environment
US9329774B2 (en) Switching back to a previously-interacted-with application
US9146670B2 (en) Progressively indicating new content in an application-selectable user interface
EP2715491B1 (en) Edge gesture
US8259080B2 (en) Information handling system display device and methods thereof
US8933952B2 (en) Pre-rendering new content for an application-selectable user interface
US20120299968A1 (en) Managing an immersive interface in a multi-application immersive environment
US20110214063A1 (en) Efficient navigation of and interaction with a remoted desktop that is larger than the local screen
EP2715504A1 (en) Edge gesture
EP2715503A1 (en) Multi-application environment
US10957107B2 (en) Snapping, virtual inking, and accessibility in augmented reality
US20120278712A1 (en) Multi-input gestures in hierarchical regions
WO2019091467A1 (en) Method, apparatus, and device for quickly starting application program, and storage medium
CN113360064A (en) Method and device for searching local area of picture, medium and electronic equipment
US20230289048A1 (en) Managing An Immersive Interface in a Multi-Application Immersive Environment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18875279

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.08.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18875279

Country of ref document: EP

Kind code of ref document: A1