Information prompting method, device, electronic device and storage medium
By activating the target window in the human-computer interaction interface and highlighting its task icon in the system taskbar, the preview window cannot render content correctly, improving user experience and display success rate.
Patent Information
- Application Number
- CN202210740137.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-06-28
AI Technical Summary
In the human-computer interactive interface, the preview window often fails to present the content correctly, resulting in a degradation of the user experience.
Activate the target window and make its activation state last for a preset duration, set it in an area outside the screen coverage, and highlight the target task icon in the system taskbar. Response to the preview command to display the preview window based on the system taskbar.
It effectively improves the display success rate of the preview window, reduces the failure to obtain status information, and improves the user experience.
Smart Images

Figure CN115145433B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an information prompting method, device, electronic equipment and storage medium. Background Art
[0002] Today, computers have become an indispensable tool in people's work and life. Users can communicate and operate the system through the human-computer interaction interface of the computer system.
[0003] In the human-computer interaction interface, the operating system taskbar often flashes to prompt users that new information needs to be displayed. Users can usually hover the mouse over the flashing taskbar to suspend and display the preview window corresponding to the information prompt window, so as to preview the content in the window. However, when presenting the preview window, the preview content in the window often cannot be presented, and the preview window is displayed as blank, which greatly reduces the user experience. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide an information prompting method, device, electronic device and storage medium, which can effectively improve the display success rate of the preview window corresponding to the information to be prompted and effectively improve the user experience.
[0005] In a first aspect, an embodiment of the present invention provides an information prompt method, comprising: activating a target window and maintaining the activation state of the target window for a preset time period, wherein the target window is used to carry the information to be prompted, and the display position of the target window is set to an area outside the screen coverage area; in a system taskbar, a target task icon corresponding to the target window is highlighted to prompt that there is information to be prompted in the target window; in response to a preview instruction for the target window, a preview window of the target window is displayed based on the floating of the system taskbar.
[0006] In one embodiment, before activating the target window and maintaining the activation state of the target window for a preset period of time, the method also includes: obtaining the information to be prompted and creating a corresponding target window for the information to be prompted, and the target window is in an inactive state by default; saving the handle of the first window in the current desktop that is in an activated state; after activating the target window and maintaining the activation state of the target window for a preset period of time, the method also includes: restoring the first window to an activated state according to the saved handle of the first window.
[0007] In one embodiment, before highlighting the target task icon corresponding to the target window in the system taskbar, the method also includes: detecting whether there is default prompt information and a second window for carrying the default prompt information in the operating system; in response to the existence of the default prompt information and the second window, hiding or closing the second window.
[0008] In one implementation, the size of the preview window is set by an operating system, and an absolute value of a difference between the size of the target window and the size of the preview window is smaller than a preset threshold.
[0009] In one implementation, highlighting the target task icon corresponding to the target window includes: performing at least one of the following operations on the target task icon corresponding to the target window: flashing display, changing color, and changing pattern.
[0010] In one embodiment, after activating the target window and maintaining the activation state of the target window for a preset period of time, before responding to a preview instruction for the target window and displaying a preview window of the target window based on the system taskbar in a suspended manner, the method further includes: in response to the activation of the target window, capturing state information of the target window through an operating system and saving the state information; in response to the preview instruction for the target window, displaying a preview window of the target window based on the system taskbar in a suspended manner includes: in response to a hovering operation of the mouse over the target task icon, displaying a preview window of the target window in a suspended manner above the system taskbar according to the state information.
[0011] In one embodiment, after the preview window of the target window is displayed in a floating manner based on the system taskbar, the method further includes: in response to a click operation on the target task icon or the preview window, presenting the target window within the coverage area of the screen; or, in response to a close operation on the target task icon or the preview window, closing the target window.
[0012] In one implementation, the preset duration ranges from 30 milliseconds to 300 milliseconds.
[0013] In the second aspect, an embodiment of the present invention further provides an information prompting device, comprising: an activation unit, used to activate a target window and maintain the activation state of the target window for a preset time period, wherein the target window is used to carry the information to be prompted, and the display position of the target window is set in an area outside the screen coverage area; a highlighting unit, used to highlight the target task icon corresponding to the target window in the system taskbar to prompt that there is information to be prompted in the target window; and a preview display unit, in response to a preview instruction for the target window, floatingly displaying a preview window of the target window based on the system taskbar.
[0014] In one embodiment, the information prompt device provided by an embodiment of the present invention also includes: an acquisition unit, which is used to acquire the information to be prompted and create a corresponding target window for the information to be prompted before activating the target window and maintaining the activation state of the target window for a preset period of time, and the target window is in an inactive state by default; a saving unit, which is used to save the handle of the first window in the current desktop that is in an activated state; and a recovery unit, which is used to restore the first window to an activated state according to the saved handle of the first window after activating the target window and maintaining the activation state of the target window for a preset period of time.
[0015] In one embodiment, the information prompt device provided by an embodiment of the present invention also includes: a detection unit, used to detect whether there is default prompt information and a second window for carrying the default prompt information in the operating system before highlighting the target task icon corresponding to the target window in the system taskbar; a hiding or closing unit, used to hide or close the second window in response to the existence of the default prompt information and the second window.
[0016] In one implementation, the size of the preview window is set by an operating system, and an absolute value of a difference between the size of the target window and the size of the preview window is smaller than a preset threshold.
[0017] In one implementation, the highlighting unit is specifically configured to perform at least one of the following operations on the target task icon corresponding to the target window: flashing display, changing color, and changing pattern.
[0018] In one embodiment, the information prompt device provided by an embodiment of the present invention also includes: a capture unit, which is used to capture the status information of the target window and save the status information through the operating system in response to the activation of the target window after activating the target window and maintaining the activation state of the target window for a preset period of time, and before responding to a preview instruction for the target window and suspending and displaying the preview window of the target window based on the system taskbar; the preview display unit is specifically used to respond to a hovering operation of the mouse on the target task icon, and suspend and display the preview window of the target window above the system taskbar according to the status information.
[0019] In one embodiment, the information prompt device provided by an embodiment of the present invention also includes: a presentation unit, which is used to present the target window within the coverage of the screen in response to a click operation on the target task icon or the preview window after the preview window of the target window is displayed in a floating manner based on the system taskbar; or, a closing unit, which is used to close the target window in response to a close operation on the target task icon or the preview window after the preview window of the target window is displayed in a floating manner based on the system taskbar.
[0020] In one implementation, the preset duration ranges from 30 milliseconds to 300 milliseconds.
[0021] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the housing, and the processor and the memory are arranged on the circuit board; a power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute any one of the information prompt methods provided in the embodiments of the present invention.
[0022] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any information prompt method provided by an embodiment of the present invention.
[0023] The information prompt method, device, electronic device and storage medium provided by the embodiments of the present invention can activate the target window carrying the information to be prompted and make the activation state of the target window last for a preset time, highlight the target task icon corresponding to the target window in the system task bar to prompt that there is information to be prompted in the target window, and when a preview instruction for the target window is received, the preview window of the target window can be displayed based on the floating display of the system task bar. In this way, since the target window is activated, the operating system can more easily capture the status information of the target window, thereby effectively reducing or avoiding the situation where the status information of the target window fails to be obtained, and improving the display success rate of the preview window. Since the display position of the target window is set in an area outside the screen coverage range, the user will not see the target window on the screen, thereby minimizing the impact of the activation of the target window on the user. Therefore, the technical solution provided by the embodiments of the present invention can effectively improve the display success rate of the preview window corresponding to the information to be prompted, and greatly improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 A flow chart of an information prompting method provided by an embodiment of the present invention;
[0026] Figure 2 A detailed flow chart of the information prompting method provided by an embodiment of the present invention;
[0027] Figure 3 A schematic diagram of the structure of an information prompting device provided by an embodiment of the present invention;
[0028] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0030] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] In a first aspect, an embodiment of the present invention provides an information prompting method, which can effectively improve the display success rate of the preview window corresponding to the information to be prompted, and effectively improve the user experience.
[0032] like Figure 1 As shown, an information prompting method provided by an embodiment of the present invention may include:
[0033] S11, activating a target window and maintaining the activation state of the target window for a preset time period, wherein the target window is used to carry information to be prompted, and the display position of the target window is set to an area outside the screen coverage range;
[0034] In an embodiment of the present invention, information prompt may refer to the presence of information to be prompted in an electronic device that needs to be displayed to a user. When the user allows the information to be prompted to be displayed, the electronic device may display the information to be prompted on the screen for the user to view. When the information to be prompted is displayed on the screen, it may be carried by a target window, that is, the information to be prompted may be displayed on the screen through the target window.
[0035] Optionally, there may be one or more windows in the current screen, but only one window may be in an activated state, and the other windows are in an inactivated state. The activated state may refer to a state in which the user can currently operate the window, and the inactivated state may refer to a state in which the user cannot currently operate the window. As the window state changes, the operating system will also perform corresponding maintenance operations on the window.
[0036] In this step, when there is information to be prompted, the target window carrying the information to be prompted can be activated, and the activation state of the target window can be maintained for a preset time period so that the operating system can track and maintain the state of the target window. At the same time, since the information to be prompted is only information that needs to be displayed, but whether it is displayed or not still requires the consent of the user, therefore, in an embodiment of the present invention, although the target window carrying the information to be prompted is already in an activated state, since the user has not yet allowed the information to be prompted to be displayed, in this step, the display position of the target window is still set to an area outside the screen coverage range, so that the user cannot see the target window. For example, in one example, the pixel coordinates of the upper left corner of the screen are (0, 0), then in order to prevent the user from seeing the target window, the pixel coordinates of the lower right corner of the target window can be set to (-100, -100), so that the entire target window is located in the upper left corner outside the screen, and the user cannot see the target window on the screen.
[0037] S12, highlighting the target task icon corresponding to the target window in the system task bar to prompt that there is information to be prompted in the target window;
[0038] In order to let the user know that there is information to be prompted, so as to further display the information to be prompted or close the information to be prompted according to the user's choice, in this step, the target task icon corresponding to the target window carrying the information to be prompted can be highlighted in the system task bar, thereby guiding the user to perform further operations on the target task icon, such as mouse clicking, mouse hovering, shortcut key viewing, and other operations.
[0039] S13, in response to a preview instruction for the target window, displaying a preview window of the target window in a suspended manner based on the system taskbar.
[0040] Optionally, the preview instruction for the target window can be issued through a variety of ways, for example, the preview instruction can be issued by hovering the mouse over the target task icon corresponding to the target window in the system taskbar, or by a specific shortcut key. After receiving the preview instruction for the target window, in this step, according to the preview instruction, a preview window of the target window can be displayed in a suspended manner based on the system taskbar. For example, the preview window of the target window can be displayed in a suspended manner above or next to the target task icon in the system taskbar. Among them, the preview window and the target window can be in one-to-one correspondence, and the preview window generally has a smaller window area, and a reduced snapshot of the target window can be displayed in the window.
[0041] The information prompt method provided by the embodiment of the present invention can activate the target window carrying the information to be prompted and make the activation state of the target window last for a preset time, highlight the target task icon corresponding to the target window in the system task bar, so as to prompt that there is information to be prompted in the target window, and when a preview instruction for the target window is received, the preview window of the target window can be displayed based on the floating display of the system task bar. In this way, since the target window is activated, the operating system can more easily capture the status information of the target window, so that the situation of failure to obtain the status information of the target window can be effectively reduced or avoided, and the display success rate of the preview window can be improved. Since the display position of the target window is set in an area outside the screen coverage range, the user will not see the target window on the screen, thereby minimizing the impact of the activation of the target window on the user. Therefore, the information prompt method provided by the embodiment of the present invention can effectively improve the display success rate of the preview window corresponding to the information to be prompted, and greatly improve the user experience.
[0042] Specifically, when the operating system or some applications in the operating system need to display the information to be prompted to the user, there may already be an activated window on the desktop. In order to provide information prompts, in one embodiment of the present invention, before activating the target window in step S11 and maintaining the activation state of the target window for a preset time, the information prompt method provided by the embodiment of the present invention may also include: obtaining the information to be prompted and creating a corresponding target window for the information to be prompted, and the target window is in an inactive state by default; saving the handle of the first window in the current desktop in an activated state. Since only one desktop window is allowed to be activated at the same time in the Windows system, when the target window is activated in step S11, the first window automatically becomes inactive. Based on this, after activating the target window and maintaining the activation state of the target window for a preset time, the information prompt method provided by the embodiment of the present invention may also include: restoring the first window to an activated state according to the saved handle of the first window. In this way, the state of the first window in the current desktop in an activated state can be saved before the target window is activated, and when the target window is activated and the activation state of the target window is maintained for a preset time, the activation state of the first window is restored in time, so as not to affect the original window state of the desktop.
[0043] Furthermore, in order to minimize the impact of changes in the activation window on the user and make the user unaware of it, in an embodiment of the present invention, the preset time duration that the target window is in the activation state can be set to a suitable value. For example, the preset time duration can be 30 milliseconds to 300 milliseconds. Since people have reaction time, they are basically unaware of the window state changes within this time duration. Therefore, by setting the preset time duration to a suitable value, it is beneficial to the preview display of the target window without causing substantial impact on the user's perception and operation, thereby further improving the user experience.
[0044] After the target window is activated and the activation state of the target window is maintained for a preset period of time, the target task icon corresponding to the target window can be highlighted in the system task bar in step S12, wherein the highlighting can include all display effects that can attract the user's attention. For example, in one embodiment of the present invention, the target task icon corresponding to the target window can be subjected to one or more of the following operations: flashing display, changing color, changing pattern, etc. After the target task icon is highlighted, the user can be guided to perform further operations on the highlighted icon, for example, viewing the target window corresponding to the icon, closing the target window corresponding to the icon, issuing an instruction to display a preview window, etc.
[0045] In order to avoid the situation where the default prompt information in the system appears blank during preview, resulting in unsuccessful preview, thereby reducing the user experience, in one or more embodiments of the present invention, before step S12 highlights the target task icon corresponding to the target window in the system taskbar, the information prompt method provided by the embodiment of the present invention may also include: detecting whether there is default prompt information and a second window for carrying the default prompt information in the operating system; in response to the existence of the default prompt information and the second window, hiding or closing the second window.
[0046] For example, in one embodiment of the present invention, application A needs to display the prompt message message1 through the target window WIN1. Before the prompt is made through the system taskbar, if it is detected that the operating system is about to display the default prompt message message2 through the second window WIN2, the second window WIN2 can be hidden or closed through the corresponding window control command. After the second window WIN2 is hidden or closed, the second window WIN2 will not be previewed according to the preview instruction, but only the preview window of the target window WIN1 will be suspended and displayed according to the preview instruction of the target window WIN1, thereby effectively avoiding the default prompt information in the system from being blank during preview, and other unsuccessful preview situations.
[0047] Further, in one or more embodiments of the present invention, when the preview window of the target window is displayed based on the system taskbar, even if there is no blank in the preview window, sometimes the preview content may not be clearly displayed in the preview window due to the limited area of the preview window, thereby affecting the user's information acquisition efficiency. In order to allow the user to clearly view the preview content in the preview window as much as possible, in one embodiment of the present invention, the target window carrying the information to be prompted can be configured or adjusted. Specifically, when the preview window of the target window is displayed based on the system taskbar, the size of the preview window is set by the operating system, that is, no matter whether the size of the window body corresponding to the preview window is large or small, the size of each preview window is the same, for example, 100*200 pixels. In view of this, in order to allow the information to be prompted carried in the target window to be clearly displayed in the preview window, in one embodiment of the present invention, the target window can be set to a preset size, and the absolute value of the difference between the preset size and the size of the preview window is less than a preset threshold, so that the size of the target window is closer to the size of the preview window. In this way, when the target window corresponding to the preview window is suspended, the display content in the target window, such as the information to be prompted, will not be scaled too much, so it can be displayed more clearly in the preview window. Optionally, the preset threshold can be adjusted according to the size of the screen and the user's demand for preview clarity, for example, the preset threshold can be 5 pixels, 10 pixels, etc.
[0048] In an embodiment of the present invention, the preview window of the target window displayed based on the system task bar is realized by the operating system. In order to improve the situation that the preview window is easily blank when it is displayed, the information prompt method provided by the embodiment of the present invention activates the target window carrying the information to be prompted, and makes the activation state last for a preset time, so that the operating system can more effectively capture the state of the target window, thereby facilitating the smooth display of the preview window. Specifically, in an embodiment of the present invention, after activating the target window and making the activation state of the target window last for a preset time, before responding to the preview instruction of the target window and suspending and displaying the preview window of the target window based on the system task bar, the information prompt method provided by the embodiment of the present invention may also include: responding to the activation of the target window, capturing the state information of the target window through the operating system and saving the state information; based on this, step S13 responding to the preview instruction of the target window and suspending and displaying the preview window of the target window based on the system task bar may specifically include: responding to the hovering operation of the mouse on the target task icon, according to the state information, suspending and displaying the preview window of the target window above the system task bar.
[0049] Furthermore, after the preview window of the target window is displayed in a suspended manner based on the system task bar in step S13, the information prompt method provided by the embodiment of the present invention may also include: in response to a click operation on the target task icon or the preview window, presenting the target window within the coverage of the screen; or, in response to a close operation on the target task icon or the preview window, closing the target window. That is to say, when the user issues a preview instruction for the target window and browses the preview window, he or she will have a general understanding of the display content in the target window. Therefore, according to needs, an instruction to display the target window normally on the screen can be issued based on the system task bar, or an instruction to ignore the target window or not display the target window normally on the screen can be issued, thereby effectively improving the user's processing efficiency and accuracy in treating prompt information.
[0050] The information prompting method provided by the embodiment of the present invention is described in detail below through a specific embodiment.
[0051] like Figure 2 As shown, the information prompting method provided by the embodiment of the present invention may include:
[0052] S201, obtaining information to be prompted and creating a corresponding target window for the information to be prompted, where the target window is in an inactive state by default;
[0053] S202, saving the handle of the first window in the current desktop that is in an activated state;
[0054] S203, activating the target window and making the activation state of the target window last for a preset time, wherein the display position of the target window is set to an area outside the screen coverage range;
[0055] Optionally, the preset duration may be, for example, 100 milliseconds.
[0056] S204, in response to activation of the target window, capturing state information of the target window through the operating system and saving the state information;
[0057] S205, restoring the first window to an activated state according to the saved handle of the first window;
[0058] S206, detecting whether there is default prompt information and a second window for carrying the default prompt information in the operating system;
[0059] S207: In response to the existence of the default prompt information and the second window, hiding or closing the second window;
[0060] S208, highlighting the target task icon corresponding to the target window in the system task bar to prompt that there is information to be prompted in the target window;
[0061] Optionally, one or more of the following operations may be performed on the target task icon corresponding to the target window: flashing display, changing color, changing pattern, etc.
[0062] S209, in response to a hovering operation of the mouse on the target task icon, displaying a preview window of the target window in a suspended manner above the system task bar according to the state information captured and saved by the operating system;
[0063] S210. In response to a click operation on the target task icon or the preview window, present the target window within the coverage of the screen; or, in response to a close operation on the target task icon or the preview window, close the target window.
[0064] It should be noted that in order to make the user as unaware as possible, in this embodiment, the target window is in the activated state for a very short time, but as long as the target window is activated, the operating system captures the state of the target window and saves it. Subsequently, even if the target window becomes inactive, the operating system still saves the previously captured state and displays the floating window based on the saved state.
[0065] In a second aspect, an embodiment of the present invention provides an information prompting device, which can effectively improve the display success rate of the preview window corresponding to the information to be prompted, and effectively improve the user experience.
[0066] like Figure 3 As shown, the information prompting device provided by the embodiment of the present invention may include:
[0067] An activation unit 31, configured to activate a target window and keep the activation state of the target window for a preset time period, wherein the target window is used to carry the information to be prompted, and the display position of the target window is set to an area outside the coverage range of the screen;
[0068] A highlighting unit 32, used for highlighting a target task icon corresponding to the target window in a system task bar to prompt that there is information to be prompted in the target window;
[0069] The preview display unit 33, in response to the preview instruction of the target window, suspends and displays the preview window of the target window based on the system task bar.
[0070] The information prompting device provided by the embodiment of the present invention can activate the target window carrying the information to be prompted and make the activation state of the target window last for a preset time, highlight the target task icon corresponding to the target window in the system task bar, so as to prompt that there is information to be prompted in the target window, and when a preview instruction for the target window is received, the preview window of the target window can be displayed based on the floating system task bar. In this way, since the target window is activated, the operating system can more easily capture the status information of the target window, so that the situation of failure to obtain the status information of the target window can be effectively reduced or avoided, and the display success rate of the preview window can be improved. Since the display position of the target window is set in an area outside the screen coverage range, the user will not see the target window on the screen, thereby minimizing the impact of the activation of the target window on the user. Therefore, the information prompting device provided by the embodiment of the present invention can effectively improve the display success rate of the preview window corresponding to the information to be prompted, and greatly improve the user experience.
[0071] In one implementation, the information prompting device provided by the embodiment of the present invention may further include:
[0072] An acquiring unit, configured to acquire the information to be prompted and create a corresponding target window for the information to be prompted before activating the target window and making the activation state of the target window last for a preset time period, wherein the target window is in an inactive state by default;
[0073] A saving unit, used for saving the handle of the first window in the current desktop which is in an activated state;
[0074] The restoring unit is used to restore the first window to the activated state according to the saved handle of the first window after activating the target window and making the activation state of the target window continue for a preset time period.
[0075] In one implementation, the information prompting device provided by the embodiment of the present invention may further include:
[0076] A detection unit, used for detecting whether there is a default prompt information and a second window for carrying the default prompt information in the operating system before highlighting the target task icon corresponding to the target window in the system task bar;
[0077] A hiding or closing unit is used to hide or close the second window in response to the existence of the default prompt information and the second window.
[0078] In one implementation, the size of the preview window is set by an operating system, and an absolute value of a difference between the size of the target window and the size of the preview window is smaller than a preset threshold.
[0079] In one implementation, the highlighting unit 32 is specifically configured to perform at least one of the following operations on the target task icon corresponding to the target window: flashing display, changing color, and changing pattern.
[0080] In one implementation, the information prompting device provided by the embodiment of the present invention may further include:
[0081] a capture unit, configured to capture state information of the target window through the operating system and save the state information in response to the activation of the target window, after activating the target window and maintaining the activation state of the target window for a preset time period, and before suspending and displaying a preview window of the target window based on the system taskbar in response to a preview instruction for the target window;
[0082] The preview display unit 33 is specifically configured to respond to a hovering operation of the mouse on the target task icon and to display a preview window of the target window floating above the system task bar according to the status information.
[0083] In one implementation, the information prompting device provided by the embodiment of the present invention may further include:
[0084] a presenting unit, configured to present the target window within a coverage range of the screen in response to a click operation on the target task icon or the preview window after the preview window of the target window is displayed in a suspended manner based on the system task bar;
[0085] or,
[0086] The closing unit is configured to close the target window in response to a closing operation on the target task icon or the preview window after the preview window of the target window is displayed in a suspended manner based on the system task bar.
[0087] In one implementation, the preset duration ranges from 30 milliseconds to 300 milliseconds.
[0088] In a third aspect, an embodiment of the present invention provides an electronic device that can effectively improve the display success rate of the preview window corresponding to the information to be prompted, thereby effectively improving the user experience.
[0089] like Figure 4 As shown, the electronic device provided by an embodiment of the present invention may include: a shell 51, a processor 52, a memory 53, a circuit board 54 and a power supply circuit 55, wherein the circuit board 54 is arranged inside the space enclosed by the shell 51, and the processor 52 and the memory 53 are arranged on the circuit board 54; the power supply circuit 55 is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory 53 is used to store executable program codes; the processor 52 runs the program corresponding to the executable program code by reading the executable program code stored in the memory 53, so as to execute the information prompt method provided by any of the aforementioned embodiments.
[0090] The specific execution process of the above steps by the processor 52 and the steps further executed by the processor 52 by running the executable program code can be found in the description of the previous embodiment, which will not be repeated here.
[0091] The above electronic devices exist in many forms, including but not limited to:
[0092] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0093] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0094] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.
[0095] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0096] (5) Other electronic devices with data interaction functions.
[0097] Correspondingly, in the fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of the information prompt methods provided in the aforementioned embodiments, thereby also being able to achieve the corresponding technical effects, which have been described in detail above and will not be repeated here.
[0098] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0099] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0100] In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0101] For the convenience of description, the above device is described by dividing the functions into various units / modules. Of course, when implementing the present invention, the functions of each unit / module can be implemented in the same or multiple software and / or hardware.
[0102] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0103] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. An information prompting method, It is characterized in that include: Activating a target window and maintaining the activation state of the target window for a preset time period, wherein the target window is used to carry the information to be prompted, and the display position of the target window is set to an area outside the coverage range of the screen; In the system task bar, highlighting the target task icon corresponding to the target window to prompt that there is information to be prompted in the target window; In response to a preview instruction for the target window, suspending and displaying a preview window of the target window based on the system taskbar; Before activating the target window and making the activation state of the target window last for a preset time, the method further includes: acquiring the information to be prompted and creating a corresponding target window for the information to be prompted, wherein the target window is in an inactive state by default; saving the handle of the first window in the current desktop that is in an activated state; after activating the target window and making the activation state of the target window last for a preset time, the method further includes: restoring the first window to an activated state according to the saved handle of the first window; Before highlighting the target task icon corresponding to the target window, the method also includes: detecting whether there is default prompt information and a second window for carrying the default prompt information in the operating system; in response to the existence of the default prompt information and the second window, hiding or closing the second window.
2. The method according to claim 1, It is characterized in that The size of the preview window is set by an operating system, and an absolute value of a difference between the size of the target window and the size of the preview window is smaller than a preset threshold.
3. The method according to claim 1, It is characterized in that The highlighting of the target task icon corresponding to the target window includes: Perform at least one of the following operations on the target task icon corresponding to the target window: flashing display, changing color, and changing pattern.
4. The method according to any one of claims 1 to 3, It is characterized in that After activating the target window and maintaining the activation state of the target window for a preset period of time, and before responding to a preview instruction for the target window and suspending and displaying a preview window of the target window based on the system taskbar, the method further includes: In response to the activation of the target window, capturing state information of the target window through an operating system and saving the state information; In response to the preview instruction for the target window, the preview window of the target window is displayed based on the system taskbar in a suspended manner, including: In response to a hovering operation of the mouse on the target task icon, a preview window of the target window is displayed suspended above the system task bar according to the status information.
5. The method according to any one of claims 1 to 3, It is characterized in that After the preview window of the target window is displayed in a suspended manner based on the system taskbar, the method further includes: In response to a click operation on the target task icon or the preview window, presenting the target window within a coverage range of the screen; or, In response to a closing operation on the target task icon or the preview window, the target window is closed.
6. The method according to any one of claims 1 to 3, It is characterized in that The preset duration ranges from 30 milliseconds to 300 milliseconds.
7. An information prompting device, It is characterized in that include: an activation unit, configured to activate a target window and maintain the activation state of the target window for a preset time period, wherein the target window is used to carry the information to be prompted, and the display position of the target window is set to an area outside the coverage range of the screen; A highlighting unit, used for highlighting a target task icon corresponding to the target window in a system task bar to prompt that there is information to be prompted in the target window; A preview display unit, in response to a preview instruction for the target window, suspending and displaying a preview window of the target window based on the system taskbar; The system further comprises: an acquisition unit, used for acquiring the information to be prompted and creating a corresponding target window for the information to be prompted before activating the target window and making the activation state of the target window continue for a preset time, wherein the target window is in an inactive state by default; a saving unit, used for saving the handle of the first window in the current desktop in an activated state; and a recovery unit, used for restoring the first window to an activated state according to the saved handle of the first window after activating the target window and making the activation state of the target window continue for a preset time; It also includes: a detection unit, which is used to detect whether there is default prompt information and a second window for carrying the default prompt information in the operating system before highlighting the target task icon corresponding to the target window in the system taskbar; and a hiding or closing unit, which is used to hide or close the second window in response to the existence of the default prompt information and the second window.
8. The device according to claim 7, It is characterized in that The size of the preview window is set by an operating system, and an absolute value of a difference between the size of the target window and the size of the preview window is smaller than a preset threshold.
9. The device according to claim 7, It is characterized in that The highlighting unit is specifically used to perform at least one of the following operations on the target task icon corresponding to the target window: flashing display, changing color, and changing pattern.
10. The device according to any one of claims 7 to 9, It is characterized in that Also includes: a capture unit, configured to capture state information of the target window through the operating system and save the state information in response to the activation of the target window, after activating the target window and maintaining the activation state of the target window for a preset time period, and before suspending and displaying a preview window of the target window based on the system taskbar in response to a preview instruction for the target window; The preview display unit is specifically configured to respond to a hovering operation of the mouse on the target task icon and to display a preview window of the target window floating above the system task bar according to the status information.
11. The device according to any one of claims 7 to 9, It is characterized in that Also includes: a presenting unit, configured to present the target window within a coverage range of the screen in response to a click operation on the target task icon or the preview window after the preview window of the target window is displayed in a suspended manner based on the system task bar; or, The closing unit is configured to close the target window in response to a closing operation on the target task icon or the preview window after the preview window of the target window is displayed in a suspended manner based on the system task bar.
12. The device according to any one of claims 7 to 9, It is characterized in that The preset duration ranges from 30 milliseconds to 300 milliseconds.
13. An electronic device, It is characterized in that The electronic device comprises: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the housing, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the information prompt method described in any one of claims 1 to 6.
14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the information prompt method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Page content display method and electronic device
CN106155507A
Application program pre-loading method and device, storage medium and terminal
CN108614722A
Portable terminal and control method thereof
KR1020140104316A
System and method for providing a preview of message content on a mobile device
US20080171535A1
Method and electronic device for preview play
US20170195710A1
