CN106970739B - Method and system for calling application function through global suspension tool - Google Patents
Method and system for calling application function through global suspension tool Download PDFInfo
- Publication number
- CN106970739B CN106970739B CN201710147045.5A CN201710147045A CN106970739B CN 106970739 B CN106970739 B CN 106970739B CN 201710147045 A CN201710147045 A CN 201710147045A CN 106970739 B CN106970739 B CN 106970739B
- Authority
- CN
- China
- Prior art keywords
- function
- contextual model
- global
- application program
- configuration file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
Abstract
The invention relates to a method and a system for calling application functions through a global hover tool, wherein the method comprises the following steps: step S1: adding a global floating tool through a window manager; step S2: the global suspension tool monitors the current topmost active window, and if the application program corresponding to the current topmost active window has a predefined contextual model, the step S3 is continued; step S3: and switching the global hover tool to display the function button corresponding to the predefined contextual model. According to the method for calling the application functions through the global hover tool, the global hover tool can display different function buttons corresponding to different application programs, so that the functions can be quickly used, and the working efficiency is improved.
Description
Technical Field
The invention relates to a window management technology of intelligent electronic equipment, in particular to a method and a system for calling application functions through a global floating tool.
Background
The intelligent electronic equipment is provided with a plurality of application programs for executing different tasks, and the functions of each application program are displayed in an active window of the application program according to a mode preset by a developer of the application program, wherein the display mode can be displayed in a multi-level menu mode. When a function is used, it needs to be found in the active window. For different users, some functions in the application program may be frequently used, and some functions are rarely used or even not used, and if the frequently used functions are located in the lower level menu of the multi-level menu, the frequently used functions need to be opened step by step to find the functions, which results in reduced work efficiency.
Disclosure of Invention
In order to solve the technical problem of low working efficiency caused by the fact that a menu needs to be opened step by step when an application program is used, the embodiment of the invention provides a method and a system for calling an application function through a global suspension tool.
A method for invoking application functions via a global hover tool, the method comprising:
step S1: adding a global floating tool through a window manager;
step S2: the global suspension tool monitors the current topmost active window, and if the application program corresponding to the current topmost active window has a predefined contextual model, the step S3 is continued;
step S3: and switching the global hover tool to display the function button corresponding to the predefined contextual model.
Further, in step S1, a profile is defined for the application program through the view add operation of the window manager, and the view attribute of the function button corresponding to the profile displayed on the global hover tool is configured, and the generated configuration file is saved in the local database of the application program in association with the profile.
Further, in step S2, the global hover tool continuously polls and detects the current topmost active window during running, and searches whether a predefined contextual model exists in the local database of the application program corresponding to the current topmost active window, and if so, continues to step S3;
or, in step S2, the global hover tool continuously polls and detects the current topmost active window, and searches whether a predefined contextual model exists in the local database of the application program corresponding to the current topmost active window, if so, determines whether the configuration file of the function button corresponding to the contextual model is consistent with the configuration file of the function button displayed on the global hover tool, and if not, continues to step S3.
Further, in step S3, if the application program corresponding to the current topmost active window does not have the predefined contextual model, a default function button is displayed on the global hover tool.
Further, the method further includes step S4: and if the function button displayed on the global hover tool is triggered, performing interprocess communication through broadcasting, sending an instruction corresponding to the function button to the target program, and performing corresponding operation by the target program according to the instruction.
Further, the method further includes step S5: and when the application is monitored to exit the current topmost active window, the contextual model is restored to the default function button.
Further, in step S2, the function buttons displayed on the global hover tool are automatically updated or prompted to be updated by the user according to the usage frequency of each function in the application, the view attributes of the newly added function buttons are configured, a corresponding configuration file is generated, and the generated configuration file is added to the existing configuration file in the local database of the application.
Further, the scene mode is customized by a user, and the method comprises the following steps:
step S31: entering a self-defined contextual model management interface;
step S32: and managing the functions corresponding to the contextual model according to the operation selected by the user, and modifying and storing the configuration file.
Further, the operation is an addition operation, and the step S32 includes the steps of:
step S41: when the user-defined contextual model management interface monitors that the adding operation is selected, reading a list of all application programs supporting the user-defined contextual model in the system;
step S42: when it is monitored that the application program in the list is selected, reading a function which is supported by the selected application program and can be added to the contextual model;
step S43: selecting a desired function, selecting an icon as a function button representing the function, and selecting a character representing the function button for the function button;
step S44: judging whether functions needing to be added to the contextual model are not set, if so, returning to the step S42 and the step S43, and setting the rest functions needing to be added to the contextual model; if not, go to step S45;
step S45: configuring view attributes for each added function button, generating a configuration file, and adding the generated configuration file into an existing configuration file in a local database of the application program if the application program has defined the contextual model; and if the contextual model of the application program is not defined, storing the generated configuration file in a local database of the application program in association with the contextual model.
A system for invoking application functions through a global hover tool, the system implementing the method of any of the preceding claims.
The invention has the beneficial effects that: according to the method for calling the application function through the global suspension tool, the global suspension tool can display different function buttons corresponding to different application programs, so that the functions can be quickly used, the working efficiency is improved, and the function buttons of the different application programs have uniform entries and are convenient for a user to operate. In addition, the invention can also customize the contextual model of the application program, can meet the use scenes of different users, and meet the individual requirements of different crowds to the greatest extent, thereby improving the expandability of the system.
Drawings
FIG. 1 is a flowchart of an embodiment of a method for invoking application functions via a global hover tool according to the present invention;
FIG. 2 is a flowchart of another embodiment of a method for invoking application functions via a global hover tool according to the present invention;
fig. 3 is a flowchart of a method for managing a contextual model according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for performing an add operation in a management profile according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for executing a delete operation in a management profile according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for performing a renaming operation in a management profile according to an embodiment of the present invention;
FIG. 7 is a block diagram illustrating an embodiment of a system for invoking application functionality via a global hover tool;
fig. 8 is a block diagram illustrating another embodiment of a system for invoking application functions through a global hover tool according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings. Those skilled in the art will appreciate that the present invention is not limited to the drawings and the following examples.
Example 1:
the invention provides a method for calling application functions through a global suspension tool, which comprises the following steps as shown in figure 1:
step S11, obtain window manager (WindowManager):
wManager=(WindowManager)getApplicationContext().getSystemService(Context.WINDOW_SERVICE)。
step S12, adding a global suspension tool:
a global hover tool is added through a window manager, a scene mode is defined for an application program through the view adding operation addView () of the window manager, a view (view) attribute of a function button corresponding to the scene mode and displayed on the global hover tool is configured, and a generated configuration file is stored in a local database of the application program in a manner of being associated with the scene mode. And expanding the function button by clicking the global suspension tool, and retracting the function button by clicking the global suspension tool again. The function button may correspond to a function exclusive to the application program, may also correspond to a function with high use frequency or recently used in the application program, and may also correspond to a function corresponding to a user-defined profile for the application program.
In general, according to an application corresponding to a current top-most Activity window, a function button corresponding to a scenario defined by the application is displayed on the global hover tool. If the application program corresponding to the current topmost active window does not define the contextual model, default function buttons may be displayed on the global hover tool, or function buttons may not be displayed. The default function buttons may be set according to the application of the system, for example, in an electronic whiteboard, the default function buttons may be a return button, a home page, and a latest application.
Step S13, monitoring the current top-most active window:
and continuously polling and detecting the current topmost active window during the running of the global hover tool, searching whether a predefined contextual model exists in a local database of an application program corresponding to the current topmost active window, if so, entering a step S14, otherwise, continuing to the step S13, and monitoring the current topmost active window.
Step S14, switching the function buttons displayed by the global hover tool:
and switching the functional buttons displayed on the global suspension tool into the functional buttons corresponding to the contextual model according to the contextual model predefined by the application program corresponding to the current topmost active window. For example: in the whiteboard software, functional buttons such as recently used colors, paintbrushes, color extractors and the like are displayed on a global suspension tool; or in the browser software, the function buttons of forward, backward, refreshing, home page and the like are displayed on the global hover tool.
Step S15, sending an instruction corresponding to the selected function button:
if the user clicks a certain function button displayed on the global hover tool, if the function button corresponds to a calling target program, the interprocess communication is carried out through broadcasting (Broadcast), an instruction corresponding to the function button is sent to the target program, and the target program carries out corresponding operation according to the instruction.
And step S16, when the situation that the user exits the current topmost active window is monitored, the scene mode is recovered to the default function button or the function button is not displayed, and the step S13 is returned. The exit may be that the user closes the current topmost active window, or that the user selects an active window that is drunk by other applications as the current topmost active window.
In step S12, the system will automatically update or prompt the user to update the function buttons displayed on the global hover tool according to the frequency of use of each function in the application, configure the view attributes of the newly added function buttons, generate corresponding configuration files, and add the generated configuration files to the existing configuration files in the local database of the application.
According to the method, a global suspension tool is added through a Windows manager, and the application program corresponding to the current topmost active window is dynamically monitored during running. If the application program corresponding to the current topmost active window is matched with the configuration file stored in the system, the function button displayed on the global hover tool is switched to the function button of the application program corresponding to the current topmost active window, and a user can use the function button displayed on the global hover tool to quickly call the function corresponding to the function button.
Example 2:
the invention provides another method for calling application functions through a global hover tool, as shown in fig. 2, the method comprises the following steps:
step S21, acquiring window manager:
wManager=(WindowManager)getApplicationContext().getSystemService(Context.WINDOW_SERVICE)。
step S22, adding a global suspension tool:
and adding a global hover tool through a window manager, defining a scene mode for the application program through the view adding operation addView () of the window manager, configuring view attributes of function buttons which are displayed on the global hover tool and correspond to the scene mode, and storing a generated configuration file in a local database of the application program in a manner of being associated with the scene mode. And expanding the function button by clicking the global suspension tool, and retracting the function button by clicking the global suspension tool again. The function button may correspond to a function exclusive to the application program, may also correspond to a function with high use frequency or recently used in the application program, and may also correspond to a function corresponding to a user-defined profile for the application program.
In general, according to an application program corresponding to a current topmost active window, a function button corresponding to a contextual model defined by the application program is displayed on the global hover tool. If the application program corresponding to the current topmost active window does not define the contextual model, default function buttons may be displayed on the global hover tool, or function buttons may not be displayed. The default function buttons may be set according to the application of the system, for example, in an electronic whiteboard, the default function buttons may be a return button, a home page, and a latest application.
Step S23, monitoring the current top-most active window:
continuously polling and detecting the current topmost active window when the global hover tool runs, searching whether a predefined contextual model exists in a local database of an application program corresponding to the current topmost active window, and if not, continuing to step S23 to monitor the current topmost active window; if yes, judging whether the configuration file of the function button corresponding to the scene mode is consistent with the configuration file of the function button displayed on the global hover tool, and if yes, entering step S25; if not, the process proceeds to step S24.
Step S24, switching the function buttons displayed by the global hover tool:
and switching the functional buttons displayed on the global suspension tool into the functional buttons corresponding to the contextual model according to the contextual model predefined by the application program corresponding to the current topmost active window. For example: in the whiteboard software, functional buttons such as recently used colors, paintbrushes, color extractors and the like are displayed on a global suspension tool; or in the browser software, the function buttons of forward, backward, refreshing, home page and the like are displayed on the global hover tool.
Step S25, sending an instruction corresponding to the selected function button:
if the user clicks a certain function button displayed on the global hover tool, if the function button corresponds to a calling target program, inter-process communication is carried out through broadcasting, an instruction corresponding to the function button is sent to the target program, and the target program carries out corresponding operation according to the instruction.
And step S26, when the situation that the user exits the current topmost active window is monitored, the scene mode is recovered to the default function button or the function button is not displayed, and the step S23 is returned. The exit may be that the user closes the current topmost active window, or that the user selects an active window that is drunk by other applications as the current topmost active window.
In step S22, the system will automatically update or prompt the user to update the function buttons displayed on the global hover tool according to the frequency of use of each function in the application, configure the view attributes of the newly added function buttons, generate corresponding configuration files, and add the generated configuration files to the existing configuration files in the local database of the application.
Example 3:
embodiment 3 describes a method for customizing a contextual model for an application by a user in embodiment 1 and embodiment 2. As shown in fig. 3, the method comprises the steps of:
step S31, entering a custom scene mode management interface:
through the function of the custom contextual model provided by the global suspension tool, a user can enter a custom contextual model management interface, the contextual models corresponding to all application programs can be listed under the interface, the user can manage the functions corresponding to the contextual models, including operations such as adding, deleting, renaming and the like, but the built-in common functions of the system are not allowed to be modified generally.
Step S32, manage profile: and according to the operation selected by the user, correspondingly managing the function corresponding to the contextual model and modifying the configuration file. The modification includes addition, deletion, or update.
For the "add" operation, a new profile may be added to the application, or a new function may be added to the existing profile, as shown in fig. 4, including the following steps:
step S41: when monitoring that a user selects to add in a custom contextual model management interface, reading a list of all application programs supporting the custom contextual model in a system;
step S42: when monitoring that a user selects a certain application program in the list, reading a function which is supported by the selected application program and can be added to the contextual model, wherein the function needs to be recorded in a local database of the application program in advance, and providing a function data list for the global suspension tool through a ContentProvider;
step S43: selecting a required function, selecting one icon from a series of default icons (icon) provided by the system as a function button for representing the function, and selecting a text (text) representing the function button for the function button, thereby completing the addition setting of one function;
step S44: whether functions needing to be added to the scene mode exist is not set, if so, the method returns to the step S42 and the step S43, and the rest functions needing to be added to the scene mode are set; if not, go to step S45;
step S45: configuring view attributes for each added function button, generating a configuration file, and adding the generated configuration file into an existing configuration file in a local database of the application program if the application program has defined the contextual model; and if the contextual model of the application program is not defined, storing the generated configuration file in a local database of the application program in association with the contextual model.
Once the configuration file is saved to the application's local database, it is validated in real-time. In embodiment 1 and embodiment 2, the function button displayed on the global hover tool is switched to the function button corresponding to the latest scene mode.
For the "delete" operation, the profile of the application program may be deleted, or some functions corresponding to the profile may be deleted, as shown in fig. 5, including the following steps:
step S51: when the situation that a user selects to delete in a user-defined contextual model management interface is monitored, reading a list of all application programs supporting the user-defined contextual model in a system;
step S52: when monitoring that a user selects a certain application program in the list, reading a function list which can be deleted in a contextual model corresponding to the selected application program;
step S53: selecting a function to be deleted or the whole function list, and performing deletion operation;
step S54: if part of functions are deleted, generating a configuration file according to the rest functions, and replacing the existing configuration file in the local database of the application program; if the entire function list is deleted (i.e., the profile is deleted), the existing configuration files in the local database of the application are deleted.
For the "rename" operation, the text representing the function button may be renamed, and the icon of the function button may be reselected, as shown in fig. 6, including the following steps:
step S61: when monitoring that a user selects to rename in a custom contextual model management interface, reading a list of all application programs supporting the custom contextual model in a system;
step S62: when monitoring that a user selects a certain application program in the list, reading a renameable function list in a contextual model corresponding to the selected application program;
step S63: selecting a function to be renamed;
step S64: the selected function is renamed and a configuration file is regenerated to replace the existing configuration file in the local database of the application.
The invention supports the addition of a custom mode, can add certain functions of a certain application program into a configuration file, or delete certain functions or even a scene mode, or rename characters representing function buttons, or reselect icons representing function buttons, and meets the personalized requirements of different crowds to the greatest extent.
Example 4:
the present invention provides a system for invoking application functions through a global hover tool, as shown in fig. 7, the system includes: an acquisition module 71, an addition module 72, a monitoring module 73, a first switching module 74, a communication module 75, and a recovery module 76:
the acquisition module 71 is used to acquire the windows manager: acquiring a window manager according to wManager (WindowManager) getApplication Context (), getsysteservice (context.window _ SERVICE);
the add module 72 is used to add global hover tools: a global hover tool is added through a window manager, a scene mode is defined for an application program through the view adding operation addView () of the window manager, a view (view) attribute of a function button corresponding to the scene mode and displayed on the global hover tool is configured, and a generated configuration file is stored in a local database of the application program in a manner of being associated with the scene mode. And expanding the function button by clicking the global suspension tool, and retracting the function button by clicking the global suspension tool again. The function button may correspond to a function exclusive to the application program, may also correspond to a function with high use frequency or recently used in the application program, and may also correspond to a function corresponding to a user-defined profile for the application program.
In general, according to an application corresponding to a current top-most Activity window, a function button corresponding to a scenario defined by the application is displayed on the global hover tool. If the application program corresponding to the current topmost active window does not define the contextual model, default function buttons may be displayed on the global hover tool, or function buttons may not be displayed. The default function buttons may be set according to the application of the system, for example, in an electronic whiteboard, the default function buttons may be a return button, a home page, and a latest application.
The monitoring module 73 is used for monitoring the current top-most active window: and the global suspension tool continuously polls and detects the current topmost active window during running, searches whether a predefined contextual model exists in a local database of an application program corresponding to the current topmost active window, and if so, informs the first switching module 74 to switch, otherwise, continuously monitors the current topmost active window.
The first switching module 74 is used for switching the function buttons of the global hover tool display: and switching the functional buttons displayed on the global suspension tool into the functional buttons corresponding to the contextual model according to the contextual model predefined by the application program corresponding to the current topmost active window. For example: in the whiteboard software, functional buttons such as recently used colors, paintbrushes, color extractors and the like are displayed on a global suspension tool; or in the browser software, the function buttons of forward, backward, refreshing, home page and the like are displayed on the global hover tool.
The communication module 75 is configured to send an instruction corresponding to the selected function button: if the user clicks a certain function button displayed on the global hover tool, if the function button corresponds to a calling target program, the interprocess communication is carried out through broadcasting (Broadcast), an instruction corresponding to the function button is sent to the target program, and the target program carries out corresponding operation according to the instruction.
The restoring module 76 is configured to notify the monitoring module 73 to continue monitoring when the user exits from the currently topmost active window and the contextual model is restored to the default function button or the function button is not displayed. The exit may be that the user closes the current topmost active window, or that the user selects an active window that is drunk by other applications as the current topmost active window.
Further, the adding module 72 may also automatically update or prompt the user to update the function buttons displayed on the global hover tool according to the frequency of use of each function in the application program, configure the view attributes of the newly added function buttons, generate a corresponding configuration file, and add the generated configuration file to the existing configuration file in the local database of the application program.
According to the method, a global suspension tool is added through a Windows manager, and the application program corresponding to the current topmost active window is dynamically monitored during running. If the application program corresponding to the current topmost active window is matched with the configuration file stored in the system, the function button displayed on the global hover tool is switched to the function button of the application program corresponding to the current topmost active window, and a user can use the function button displayed on the global hover tool to quickly call the function corresponding to the function button.
Example 5:
the present invention provides another system for invoking application functions through a global hover tool, as shown in fig. 8, the system includes: an acquisition module 81, an adding module 82, a monitoring module 83, a second switching module 84, a communication module 85 and a recovery module 86;
the obtaining module 81 is used for obtaining the window manager: acquiring a window manager according to wManager (WindowManager) getApplication Context (), getsysteservice (context.window _ SERVICE);
the add module 82 is used to add global hover tools: and adding a global hover tool through a window manager, defining a scene mode for the application program through the view adding operation addView () of the window manager, configuring view attributes of function buttons which are displayed on the global hover tool and correspond to the scene mode, and storing a generated configuration file in a local database of the application program in a manner of being associated with the scene mode. And expanding the function button by clicking the global suspension tool, and retracting the function button by clicking the global suspension tool again. The function button may correspond to a function exclusive to the application program, may also correspond to a function with high use frequency or recently used in the application program, and may also correspond to a function corresponding to a user-defined profile for the application program.
In general, according to an application program corresponding to a current topmost active window, a function button corresponding to a contextual model defined by the application program is displayed on the global hover tool. If the application program corresponding to the current topmost active window does not define the contextual model, default function buttons may be displayed on the global hover tool, or function buttons may not be displayed. The default function buttons may be set according to the application of the system, for example, in an electronic whiteboard, the default function buttons may be a return button, a home page, and a latest application.
The monitoring module 83 is configured to monitor the currently top-most active window: continuously polling and detecting the current topmost active window when the global suspension tool runs, searching whether a predefined contextual model exists in a local database of an application program corresponding to the current topmost active window, and if not, continuously monitoring the current topmost active window; if the configuration file of the function button corresponding to the contextual model is consistent with the configuration file of the function button displayed on the global hover tool, if so, the communication module 85 is informed to send an instruction; if not, the second switching module 84 is notified to switch.
The second switching module 84 is used for switching the function buttons of the global hover tool display: and switching the functional buttons displayed on the global suspension tool into the functional buttons corresponding to the contextual model according to the contextual model predefined by the application program corresponding to the current topmost active window. For example: in the whiteboard software, functional buttons such as recently used colors, paintbrushes, color extractors and the like are displayed on a global suspension tool; or in the browser software, the function buttons of forward, backward, refreshing, home page and the like are displayed on the global hover tool.
The communication module 85 is configured to send an instruction corresponding to the selected function button: if the user clicks a certain function button displayed on the global hover tool, if the function button corresponds to a calling target program, inter-process communication is carried out through broadcasting, an instruction corresponding to the function button is sent to the target program, and the target program carries out corresponding operation according to the instruction.
The restoring module 86 is configured to monitor that the user exits from the currently top-most active window, and the contextual model is restored to the default function button or the non-display function button, so as to notify the monitoring module 83 to continue monitoring. The exit may be that the user closes the current topmost active window, or that the user selects an active window that is drunk by other applications as the current topmost active window.
Further, the adding module 82 may further automatically update or prompt the user to update the function buttons displayed on the global hover tool according to the frequency of use of each function in the application program, configure the view attributes of the newly added function buttons, generate a corresponding configuration file, and add the generated configuration file to the existing configuration file in the local database of the application program.
The method for customizing the profile for the application by the user in embodiments 4 and 5 may refer to the corresponding description in embodiment 3, and is not described herein again.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The embodiments of the present invention have been described above. However, the present invention is not limited to the above embodiment. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for invoking an application function via a global hover tool, the method comprising:
step S1: adding a global floating tool through a window manager;
step S2: the global suspension tool monitors the current topmost active window, and if the application program corresponding to the current topmost active window has a predefined contextual model, the step S3 is continued;
step S3: switching the functional buttons displayed on the global suspension tool into the functional buttons corresponding to the contextual model according to the contextual model predefined by the application program corresponding to the current topmost active window; the contextual model is customized by a user and comprises the following steps: entering a self-defined contextual model management interface; managing the functions corresponding to the contextual model according to the operation selected by the user, and modifying and storing the configuration file; the operations include: add operations, delete operations, and/or rename operations;
wherein, responding to the operation as an adding operation, and managing, modifying and saving the function corresponding to the contextual model according to the operation selected by the user, comprises:
step S41: when the user-defined contextual model management interface monitors that the adding operation is selected, reading a list of all application programs supporting the user-defined contextual model in the system;
step S42: when it is monitored that the application program in the list is selected, reading a function which is supported by the selected application program and can be added to the contextual model;
step S43: selecting a desired function, selecting an icon as a function button representing the function, and selecting a character representing the function button for the function button;
step S44: judging whether functions needing to be added to the contextual model are not set, if so, returning to the step S42 and the step S43, and setting the rest functions needing to be added to the contextual model; if not, go to step S45;
step S45: configuring view attributes for each added function button, generating a configuration file, and adding the generated configuration file into an existing configuration file in a local database of the application program if the application program has defined the contextual model; if the application program does not define the contextual model, saving the generated configuration file in a local database of the application program in a mode of being associated with the contextual model;
responding to the operation as a deleting operation, and managing the function corresponding to the contextual model according to the operation selected by the user, modifying and saving the configuration file, wherein the method comprises the following steps:
step S51: when the situation that a user selects to delete in a user-defined contextual model management interface is monitored, reading a list of all application programs supporting the user-defined contextual model in a system;
step S52: when monitoring that a user selects a certain application program in the list, reading a function list which can be deleted in a scene mode corresponding to the selected application program;
step S53: selecting a function to be deleted or the whole function list, and performing deletion operation;
step S54: if part of functions are deleted, generating a configuration file according to the rest functions, and replacing the existing configuration file in the local database of the application program; if the whole function list is deleted, deleting the existing configuration file in the local database of the application program;
responding to the operation as a renaming operation, and managing, modifying and saving the function corresponding to the contextual model according to the operation selected by the user, wherein the step of managing, modifying and saving the configuration file comprises the following steps:
step S61: when monitoring that a user selects to rename in a custom contextual model management interface, reading a list of all application programs supporting the custom contextual model in a system;
step S62: when it is monitored that a user selects a certain application program in the list, reading a function list which can be renamed in a contextual model corresponding to the selected application program;
step S63: selecting a function to be renamed;
step S64: the selected function is renamed and a configuration file is regenerated to replace the existing configuration file in the local database of the application.
2. The method according to claim 1, wherein in step S1, the view adding operation through the windows manager defines a scene mode for the application program, and configures the view attribute of the function button corresponding to the scene mode displayed on the global hover tool, and the generated configuration file is saved in the local database of the application program in association with the scene mode.
3. The method according to claim 2, wherein in step S2, the global hover tool continuously polls and detects the current topmost active window, and searches whether a predefined contextual model exists in the local database of the application corresponding to the current topmost active window, and if so, continues to step S3;
or, in step S2, the global hover tool continuously polls and detects the current topmost active window, and searches whether a predefined contextual model exists in the local database of the application program corresponding to the current topmost active window, if so, determines whether the configuration file of the function button corresponding to the contextual model is consistent with the configuration file of the function button displayed on the global hover tool, and if not, continues to step S3.
4. The method according to claim 3, wherein in step S3, if the application program corresponding to the current topmost active window does not have the predefined contextual model, displaying a default function button on the global hover tool.
5. The method according to claim 4, further comprising step S4: and if the function button displayed on the global hover tool is triggered, performing interprocess communication through broadcasting, sending an instruction corresponding to the function button to the target program, and performing corresponding operation by the target program according to the instruction.
6. The method according to claim 5, further comprising step S5: and when the application is monitored to exit the current topmost active window, the contextual model is restored to the default function button.
7. The method according to any one of claims 2 to 6, wherein in step S2, the function buttons displayed on the global hover tool are automatically updated or the user is prompted to update according to the usage frequency of each function in the application, the view attribute of the newly added function button is configured, a corresponding configuration file is generated, and the generated configuration file is added to the configuration file existing in the local database of the application.
8. The method of claim 1, wherein the function button corresponds to a function specific to the application, or corresponds to a function that is frequently or recently used in the application, or corresponds to a function to which a user customizes a profile for the application.
9. The method of claim 6, wherein the exiting comprises the user closing the currently topmost active window, or wherein the exiting comprises the user selecting the active window corresponding to the other application as the currently topmost active window.
10. A system for invoking an application function through a global hover tool, the system implementing the method of any of claims 1-9, the system comprising:
the adding module is used for adding a global floating tool through the window manager;
the monitoring module is used for monitoring the current topmost active window through a global suspension tool, and informing the first switching module to switch if the application program corresponding to the current topmost active window has a predefined contextual model; and
the first switching module is used for switching the functional buttons displayed on the global suspension tool into the functional buttons corresponding to the contextual model according to the contextual model predefined by the application program corresponding to the current topmost active window.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710147045.5A CN106970739B (en) | 2017-03-13 | 2017-03-13 | Method and system for calling application function through global suspension tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710147045.5A CN106970739B (en) | 2017-03-13 | 2017-03-13 | Method and system for calling application function through global suspension tool |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106970739A CN106970739A (en) | 2017-07-21 |
CN106970739B true CN106970739B (en) | 2020-10-23 |
Family
ID=59329335
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710147045.5A Active CN106970739B (en) | 2017-03-13 | 2017-03-13 | Method and system for calling application function through global suspension tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106970739B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832102B (en) * | 2017-10-31 | 2020-12-29 | 廊坊市朔程燃气有限公司 | Contextual model operation method and device and computer-readable storage medium |
CN108052262A (en) * | 2017-12-12 | 2018-05-18 | 平安科技(深圳)有限公司 | Edit page content color amending method, device, terminal and storage medium |
CN108108078B (en) * | 2017-12-18 | 2021-03-12 | Oppo广东移动通信有限公司 | Electronic equipment, display control method and related product |
CN108874279B (en) * | 2018-05-04 | 2020-11-03 | 珠海格力电器股份有限公司 | Selection method and device, terminal equipment and readable storage medium |
CN110309005B (en) * | 2019-06-28 | 2022-03-25 | 百度在线网络技术(北京)有限公司 | Function calling method and device, terminal equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981768A (en) * | 2012-12-04 | 2013-03-20 | 中兴通讯股份有限公司 | Method and system for realizing suspendedsuspending global button on touch screen terminal interface |
CN105979069A (en) * | 2016-04-25 | 2016-09-28 | 乐视控股(北京)有限公司 | Application shortcut operating method and application shortcut operating device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324390B (en) * | 2013-06-03 | 2016-12-28 | 贝壳网际(北京)安全技术有限公司 | Interaction method for page browsing, browser device and mobile terminal |
CN104636152B (en) * | 2013-11-06 | 2018-07-27 | 青岛海信移动通信技术股份有限公司 | A kind of application call method and apparatus based on floating layer |
CN104065814A (en) * | 2014-06-13 | 2014-09-24 | 北京金山安全软件有限公司 | Information display method and terminal |
-
2017
- 2017-03-13 CN CN201710147045.5A patent/CN106970739B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981768A (en) * | 2012-12-04 | 2013-03-20 | 中兴通讯股份有限公司 | Method and system for realizing suspendedsuspending global button on touch screen terminal interface |
CN105979069A (en) * | 2016-04-25 | 2016-09-28 | 乐视控股(北京)有限公司 | Application shortcut operating method and application shortcut operating device |
Also Published As
Publication number | Publication date |
---|---|
CN106970739A (en) | 2017-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106970739B (en) | Method and system for calling application function through global suspension tool | |
JP6640909B2 (en) | Theme display method and related devices | |
US9495071B2 (en) | Wireless communication apparatus and method of adding a widget therefor | |
CN101770399B (en) | Electronic equipment, method and device for switching operating system desktop | |
CN102043618B (en) | Method and device for controlling display style of window object | |
CN109062479A (en) | Split screen application switching method, device, storage medium and electronic equipment | |
CN106557230A (en) | A kind of collocation method and terminal of screen split screen | |
JP2015523648A (en) | User interface management method, user interface management apparatus, program, and recording medium | |
EP2821909A1 (en) | Electronic device and method for displaying status notification information | |
US20060036569A1 (en) | Method and apparatus for changing background screen in gui operating system | |
US20170269823A1 (en) | Control Display Method and Device, and Terminal | |
US20150324095A1 (en) | Dynamic, optimized placement of computer-based windows | |
CN105988860A (en) | Method for executing application program and mobile device | |
CN106095227A (en) | Desktop wallpaper changing method and device | |
CN108459880A (en) | voice assistant awakening method, device, equipment and storage medium | |
CN105955770A (en) | Application program uninstalling method and terminal | |
US20050080793A1 (en) | Information organization navigation | |
CN111124583A (en) | Function interface editing method, mobile terminal and readable storage medium | |
CN104935714A (en) | Method and device for setting state of contact in address list | |
CN106155768A (en) | Split screen runs the method and device of application | |
CN112817676B (en) | Information processing method and electronic device | |
CN104516618B (en) | Interface function analysis display method and device | |
US8972533B1 (en) | Activating touch-sensitive keys utilizing configuration settings | |
CN113721936B (en) | Application management method, intelligent terminal, device and storage medium | |
CN104750381A (en) | Method, device and terminal for operating application items quickly |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |