CN114253441B - Methods and devices for enabling target functions, storage media, and electronic devices - Google Patents
Methods and devices for enabling target functions, storage media, and electronic devices Download PDFInfo
- Publication number
- CN114253441B CN114253441B CN202111450816.0A CN202111450816A CN114253441B CN 114253441 B CN114253441 B CN 114253441B CN 202111450816 A CN202111450816 A CN 202111450816A CN 114253441 B CN114253441 B CN 114253441B
- Authority
- CN
- China
- Prior art keywords
- target
- function
- target function
- shortcut
- information
- 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
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/04817—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 using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明提供了一种目标功能的启用方法及装置、存储介质、电子装置,上述方法包括:确定目标对象待进行快捷访问的目标功能,其中,目标功能为终端设备上安装的目标应用所具有的功能;在终端设备的显示界面运行目标功能的情况下,通过显示界面上的设置按键生成目标功能的统一资源定位符,并确定目标功能的图标信息;根据统一资源定位符、图标信息对设置按键对应的预设快捷模板文件进行替换,得到目标功能对应的目标快捷文件;在目标快捷文件通过目标浏览器成功跳转至目标功能的情况下,根据目标浏览器的辅助功能生成目标功能的快捷图标,解决了现有技术中无法对目标应用中的目标功能进行指定访问等问题。
The present invention provides a target function enabling method and device, storage medium, and electronic device. The above method includes: determining the target function to be quickly accessed by the target object, wherein the target function is a target application installed on the terminal device. Function; when the display interface of the terminal device runs the target function, generate the uniform resource locator of the target function through the setting button on the display interface, and determine the icon information of the target function; set the button according to the uniform resource locator and icon information The corresponding preset shortcut template file is replaced to obtain the target shortcut file corresponding to the target function; when the target shortcut file successfully jumps to the target function through the target browser, the shortcut icon of the target function is generated according to the auxiliary function of the target browser. , which solves the problem in the existing technology that the target function in the target application cannot be designated to access.
Description
技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种目标功能的启用方法及装置、存储介质、电子装置。The present invention relates to the field of communications, and specifically, to a method and device for enabling a target function, a storage medium, and an electronic device.
背景技术Background technique
现在使用app内部的某个功能,通常都是打开app,然后按照习惯找到某个功能或者搜索关键字找到某个功能,进而这样很费时间,倘若功能修改或者关键字错误都无法使用功能,难免影响app的功能体验。相关技术中快速打开app的方式都是通过发送短信,或者推送通知,然后通过点击,打开固定的功能,短信和通知容易被忽略被屏蔽。Nowadays, to use a certain function inside the app, you usually open the app, and then find a certain function according to your habits or search for keywords to find a certain function. This is very time-consuming. If the function is modified or the keyword is wrong, the function cannot be used. It is inevitable that Affects the functional experience of the app. In related technologies, the ways to quickly open an app are by sending text messages or push notifications, and then clicking to open fixed functions. Text messages and notifications are easily ignored and blocked.
针对相关技术中,无法对目标应用中的目标功能进行指定访问等问题,尚未提出有效的技术方案。In view of the problems in related technologies such as the inability to provide specified access to the target functions in the target application, no effective technical solution has yet been proposed.
发明内容Contents of the invention
本发明实施例提供了一种目标功能的启用方法及装置、存储介质、电子装置,以至少解决相关技术中,无法对目标应用中的目标功能进行指定访问等问题。Embodiments of the present invention provide a method and device, a storage medium, and an electronic device for enabling a target function, so as to at least solve the problem in related technologies that the target function in the target application cannot be designated to access.
根据本发明的一个实施例,提供了一种目标功能的启用方法,包括:确定目标对象待进行快捷访问的目标功能,其中,所述目标功能为终端设备上安装的目标应用所具有的功能;在所述终端设备的显示界面运行所述目标功能的情况下,通过所述显示界面上的设置按键生成所述目标功能的统一资源定位符,并确定所述目标功能的图标信息;根据所述统一资源定位符、所述图标信息对所述设置按键对应的预设快捷模板文件进行替换,得到所述目标功能对应的目标快捷文件;在所述目标快捷文件通过目标浏览器成功跳转至所述目标功能的情况下,根据所述目标浏览器的辅助功能生成所述目标功能的快捷图标。According to an embodiment of the present invention, a method for enabling a target function is provided, including: determining a target function to be quickly accessed by a target object, wherein the target function is a function of a target application installed on the terminal device; When the display interface of the terminal device runs the target function, a uniform resource locator of the target function is generated through a setting button on the display interface, and the icon information of the target function is determined; according to the The unified resource locator and the icon information replace the preset shortcut template file corresponding to the setting button to obtain the target shortcut file corresponding to the target function; after the target shortcut file successfully jumps to the target through the target browser, In the case of the target function, a shortcut icon of the target function is generated according to the auxiliary function of the target browser.
在一个示例性实施例中,确定所述目标功能的图标信息,包括:接收所述目标对象为所述目标功能设置的显示信息,其中,所述显示信息至少包括以下之一:快捷图标对应的编码位数、快捷图标的图标名称;在接收到所述显示信息的情况下,确定所述目标功能所在目标应用的页面跳转协议;根据所述显示信息以及所述页面跳转协议确定所述目标功能的图标信息。In an exemplary embodiment, determining the icon information of the target function includes: receiving display information set by the target object for the target function, wherein the display information includes at least one of the following: a shortcut icon corresponding to The number of coding bits and the icon name of the shortcut icon; upon receiving the display information, determine the page jump protocol of the target application where the target function is located; determine the page jump protocol according to the display information and the page jump protocol. Icon information for the target function.
在一个示例性实施例中,在接收到所述显示信息的情况下,确定所述目标功能所在目标应用的页面跳转协议,包括:确定所述目标应用在所述终端设备上的运行函数,其中,所述运行函数用于指示目标应用运行时不同功能之间进行切换的跳转信息;根据所述运行函数和所述显示信息确定所述目标功能所在目标应用的页面跳转协议。In an exemplary embodiment, after receiving the display information, determining the page jump protocol of the target application where the target function is located includes: determining the running function of the target application on the terminal device, Wherein, the running function is used to indicate jump information for switching between different functions when the target application is running; and the page jump protocol of the target application where the target function is located is determined based on the running function and the display information.
在一个示例性实施例中,在所述终端设备的显示界面运行所述目标功能的情况下,通过所述显示界面上的设置按键生成所述目标功能的统一资源定位符,包括:确定所述显示界面对应的参数信息;根据所述参数信息确定所述显示界面的网页链接字符;在所述网页链接字符中添加所述目标功能对应的功能字符,得到所述目标功能的统一资源定位符。In an exemplary embodiment, when the display interface of the terminal device runs the target function, generating a uniform resource locator of the target function through a setting button on the display interface includes: determining the Display the parameter information corresponding to the interface; determine the web page link character of the display interface according to the parameter information; add the function character corresponding to the target function to the web page link character to obtain the unified resource locator of the target function.
在一个示例性实施例中,根据所述统一资源定位符、所述图标信息对所述设置按键对应的预设快捷模板文件进行替换,得到所述目标功能对应的目标快捷文件之前,上述方法还包括:确定所述终端设备上设置的本地服务端口,其中,所述本地服务端口用于指示所述预设快捷模板的模板文件所在的根目录;将所述本地服务端口与所述设置按键关联,以在所述设置按键启用后执行所述预设快捷模板的调用。In an exemplary embodiment, before replacing the preset shortcut template file corresponding to the setting button according to the uniform resource locator and the icon information to obtain the target shortcut file corresponding to the target function, the above method further The method includes: determining a local service port set on the terminal device, wherein the local service port is used to indicate the root directory where the template file of the preset shortcut template is located; associating the local service port with the setting button , to execute the calling of the preset shortcut template after the setting button is enabled.
在一个示例性实施例中,在所述目标快捷文件通过目标浏览器成功跳转至所述目标功能,包括:启用所述目标快捷文件中的统一资源定位符;在所述统一资源定位符启动所述目标浏览器的情况下,确定所述目标浏览器显示页面的显示结果;根据所述显示结果确定所述目标快捷文件的页面跳转。In an exemplary embodiment, successfully jumping to the target function through the target shortcut file through the target browser includes: enabling the Uniform Resource Locator in the target shortcut file; starting the Uniform Resource Locator in the target shortcut file. In the case of the target browser, the display result of the page displayed by the target browser is determined; and the page jump of the target shortcut file is determined based on the display result.
在一个示例性实施例中,根据所述显示结果确定所述目标快捷文件的页面跳转,包括:在所述显示结果包含所述目标功能的情况下,确定所述目标快捷文件对应页面跳转成功;在所述显示结果不包含所述目标功能的情况下,确定所述目标快捷文件对应页面跳转失败,并向所述目标对象发出提示信息,其中,所述提示信息用于指示目标快捷文件需要重新生成。In an exemplary embodiment, determining the page jump of the target shortcut file according to the display result includes: when the display result contains the target function, determining the page jump corresponding to the target shortcut file. Success; when the display result does not include the target function, it is determined that the page corresponding to the target shortcut file fails to jump, and a prompt message is sent to the target object, where the prompt information is used to indicate the target shortcut file. The file needs to be regenerated.
根据本发明的另一个实施例,提供了一种目标功能的启用装置,包括:确定模块,用于确定目标对象待进行快捷访问的目标功能,其中,所述目标功能为终端设备上安装的目标应用所具有的功能;生成模块,用于在所述终端设备的显示界面运行所述目标功能的情况下,通过所述显示界面上的设置按键生成所述目标功能的统一资源定位符,并确定所述目标功能的图标信息;替换模块,用于根据所述统一资源定位符、所述图标信息对所述设置按键对应的预设快捷模板文件进行替换,得到所述目标功能对应的目标快捷文件;跳转模块,用于在所述目标快捷文件通过目标浏览器成功跳转至所述目标功能的情况下,根据所述目标浏览器的辅助功能生成所述目标功能的快捷图标。According to another embodiment of the present invention, a target function enabling device is provided, including: a determination module for determining the target function to be quickly accessed by the target object, wherein the target function is a target installed on the terminal device Functions possessed by the application; a generation module, configured to generate a unified resource locator of the target function through a setting button on the display interface when the target function is run on the display interface of the terminal device, and determine The icon information of the target function; a replacement module, used to replace the preset shortcut template file corresponding to the setting button according to the uniform resource locator and the icon information to obtain the target shortcut file corresponding to the target function. ; Jump module, used to generate a shortcut icon of the target function according to the auxiliary function of the target browser when the target shortcut file successfully jumps to the target function through the target browser.
在一个示例性实施例中,上述生成模块,还用于接收所述目标对象为所述目标功能设置的显示信息,其中,所述显示信息至少包括以下之一:快捷图标对应的编码位数、快捷图标的图标名称;在接收到所述显示信息的情况下,确定所述目标功能所在目标应用的页面跳转协议;根据所述显示信息以及所述页面跳转协议确定所述目标功能的图标信息。In an exemplary embodiment, the above-mentioned generation module is also used to receive display information set by the target object for the target function, wherein the display information includes at least one of the following: the number of coding digits corresponding to the shortcut icon, The icon name of the shortcut icon; upon receiving the display information, determining the page jump protocol of the target application where the target function is located; determining the icon of the target function based on the display information and the page jump protocol information.
在一个示例性实施例中,上述生成模块还包括:函数单元,用于确定所述目标应用在所述终端设备上的运行函数,其中,所述运行函数用于指示目标应用运行时不同功能之间进行切换的跳转信息;根据所述运行函数和所述显示信息确定所述目标功能所在目标应用的页面跳转协议。In an exemplary embodiment, the above generation module further includes: a function unit, used to determine the running function of the target application on the terminal device, wherein the running function is used to indicate one of the different functions of the target application when running. Jump information for switching between; determining the page jump protocol of the target application where the target function is located according to the running function and the display information.
在一个示例性实施例中,上述生成模块,还用于确定所述显示界面对应的参数信息;根据所述参数信息确定所述显示界面的网页链接字符;在所述网页链接字符中添加所述目标功能对应的功能字符,得到所述目标功能的统一资源定位符。In an exemplary embodiment, the above-mentioned generation module is also used to determine the parameter information corresponding to the display interface; determine the web page link characters of the display interface according to the parameter information; and add the web page link characters to the web page link characters. The function character corresponding to the target function is used to obtain the uniform resource locator of the target function.
在一个示例性实施例中,上述装置还包括:端口模块,用于确定所述终端设备上设置的本地服务端口,其中,所述本地服务端口用于指示所述预设快捷模板的模板文件所在的根目录;将所述本地服务端口与所述设置按键关联,以在所述设置按键启用后执行所述预设快捷模板的调用。In an exemplary embodiment, the above device further includes: a port module, configured to determine a local service port set on the terminal device, wherein the local service port is used to indicate where the template file of the preset shortcut template is located. the root directory; associate the local service port with the setting button to execute the invocation of the preset shortcut template after the setting button is enabled.
在一个示例性实施例中,上述跳转模块,还用于在启用所述目标快捷文件中的统一资源定位符;在所述统一资源定位符启动所述目标浏览器的情况下,确定所述目标浏览器显示页面的显示结果;根据所述显示结果确定所述目标快捷文件的页面跳转。In an exemplary embodiment, the above-mentioned jump module is also used to enable the Uniform Resource Locator in the target shortcut file; when the Uniform Resource Locator starts the target browser, determine the The target browser displays the display result of the page; and determines the page jump of the target shortcut file according to the display result.
在一个示例性实施例中,上述跳转模块,还用于在所述显示结果包含所述目标功能的情况下,确定所述目标快捷文件对应页面跳转成功;在所述显示结果不包含所述目标功能的情况下,确定所述目标快捷文件对应页面跳转失败,并向所述目标对象发出提示信息,其中,所述提示信息用于指示目标快捷文件需要重新生成。In an exemplary embodiment, the above-mentioned jump module is also used to determine that the page corresponding to the target shortcut file jumps successfully when the display result contains the target function; In the case of the above target function, it is determined that the page corresponding to the target shortcut file fails to jump, and a prompt message is sent to the target object, wherein the prompt information is used to indicate that the target shortcut file needs to be regenerated.
根据本发明的又一个实施例,还提供了一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to another embodiment of the present invention, a storage medium is also provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above. Steps in method embodiments.
通过本发明,确定目标对象待进行快捷访问的目标功能,其中,目标功能为终端设备上安装的目标应用所具有的功能;在终端设备的显示界面运行目标功能的情况下,通过显示界面上的设置按键生成目标功能的统一资源定位符,并确定目标功能的图标信息;根据统一资源定位符、图标信息对设置按键对应的预设快捷模板文件进行替换,得到目标功能对应的目标快捷文件;在目标快捷文件通过目标浏览器成功跳转至目标功能的情况下,根据目标浏览器的辅助功能生成目标功能的快捷图标,也就是说,通过显示界面上的设置按键确定所述目标功能的统一资源定位符,进而对预设快捷模板文件中进行替换,通过浏览器中的辅助功能使用替换后的预设快捷模板文件生成目标功能的快捷图标,因此,可以解决现有技术中无法对目标应用中的目标功能进行指定访问等问题,提升了目标功能的访问效率,提升了目标对象的使用体验。Through the present invention, the target function to be quickly accessed by the target object is determined, wherein the target function is the function of the target application installed on the terminal device; when the display interface of the terminal device runs the target function, through the display interface Set the button to generate a unified resource locator for the target function, and determine the icon information of the target function; replace the preset shortcut template file corresponding to the set button according to the unified resource locator and icon information to obtain the target shortcut file corresponding to the target function; in When the target shortcut file successfully jumps to the target function through the target browser, the shortcut icon of the target function is generated according to the auxiliary function of the target browser. That is to say, the unified resource of the target function is determined through the setting button on the display interface. locator, and then replace the preset shortcut template file, and use the replaced preset shortcut template file to generate the shortcut icon of the target function through the auxiliary function in the browser. Therefore, it can solve the problem of the existing technology that cannot be used in the target application. It improves the access efficiency of the target function and improves the user experience of the target object.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present invention and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached picture:
图1是本发明实施例的一种目标功能的启用方法的计算机终端的硬件结构框图;Figure 1 is a hardware structure block diagram of a computer terminal of a method for enabling target functions according to an embodiment of the present invention;
图2是根据本发明实施例的目标功能的启用方法的流程图;Figure 2 is a flow chart of a method for enabling target functions according to an embodiment of the present invention;
图3是根据本发明可选实施例的桌面快捷方式创建流程的流程图;Figure 3 is a flow chart of a desktop shortcut creation process according to an optional embodiment of the present invention;
图4是根据本发明可选实施例的桌面快捷方式进行调用的流程图;Figure 4 is a flow chart of calling a desktop shortcut according to an optional embodiment of the present invention;
图5是根据本发明实施例的目标功能的启用装置的结构框图。Figure 5 is a structural block diagram of a target function enabling device according to an embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present invention will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of this application can be combined with each other.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
本申请实施例所提供的方法实施例可以在计算机终端或者设备终端类似的运算装置中执行。以运行在计算机终端上为例,图1是本发明实施例的一种目标功能的启用方法的计算机终端的硬件结构框图。如图1所示,计算机终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,在一个示例性实施例中,上述计算机终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述计算机终端的结构造成限定。例如,计算机终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。The method embodiments provided in the embodiments of this application can be executed in a computing device similar to a computer terminal or a device terminal. Taking running on a computer terminal as an example, FIG. 1 is a hardware structure block diagram of a computer terminal of a method for enabling target functions according to an embodiment of the present invention. As shown in Figure 1, the computer terminal may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned computer terminal may also include a transmission device 106 for communication functions and an input and output device 108. Persons of ordinary skill in the art can understand that the structure shown in Figure 1 is only illustrative, and it does not limit the structure of the above-mentioned computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1 , or have a different configuration with equivalent functions or more functions than shown in FIG. 1 .
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的目标功能的启用方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for enabling the target function in the embodiment of the present invention. The processor 102 runs the computer program stored in the memory 104, thereby Execute various functional applications and data processing, that is, implement the above methods. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely relative to the processor 102, and these remote memories may be connected to the computer terminal through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.
在本实施例中提供了一种目标功能的启用方法,图2是根据本发明实施例的目标功能的启用方法的流程图,该流程包括如下步骤:This embodiment provides a method for enabling a target function. Figure 2 is a flow chart of a method for enabling a target function according to an embodiment of the present invention. The process includes the following steps:
步骤S202,确定目标对象待进行快捷访问的目标功能,其中,所述目标功能为终端设备上安装的目标应用所具有的功能;Step S202: Determine the target function to be quickly accessed by the target object, where the target function is a function of the target application installed on the terminal device;
步骤S204,在所述终端设备的显示界面运行所述目标功能的情况下,通过所述显示界面上的设置按键生成所述目标功能的统一资源定位符,并确定所述目标功能的图标信息;Step S204, when the display interface of the terminal device runs the target function, generate a uniform resource locator of the target function through the setting button on the display interface, and determine the icon information of the target function;
可以理解的是,为了在同一目标应用上对前端页面进行跳转,继而显示不同的容器对应的展示界面,首先确定出前端页面待跳转至页面的页面类型,并根据页面类型在目标应用中包含的页面管理模块中确定对应的用于执行跳转接口(相当于本发明实施例中的调用接口);It is understandable that in order to jump to the front-end page on the same target application and then display the display interface corresponding to different containers, first determine the page type of the page to which the front-end page is to be jumped, and use the page type in the target application according to the page type. The included page management module determines the corresponding interface for executing the jump (equivalent to the calling interface in the embodiment of the present invention);
步骤S206,根据所述统一资源定位符、所述图标信息对所述设置按键对应的预设快捷模板文件进行替换,得到所述目标功能对应的目标快捷文件;Step S206: Replace the preset shortcut template file corresponding to the setting button according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function;
步骤S208,在所述目标快捷文件通过目标浏览器成功跳转至所述目标功能的情况下,根据所述目标浏览器的辅助功能生成所述目标功能的快捷图标。Step S208: When the target shortcut file successfully jumps to the target function through the target browser, generate a shortcut icon for the target function according to the auxiliary function of the target browser.
通过上述步骤,确定目标对象待进行快捷访问的目标功能,其中,目标功能为终端设备上安装的目标应用所具有的功能;在终端设备的显示界面运行目标功能的情况下,通过显示界面上的设置按键生成目标功能的统一资源定位符,并确定目标功能的图标信息;根据统一资源定位符、图标信息对设置按键对应的预设快捷模板文件进行替换,得到目标功能对应的目标快捷文件;在目标快捷文件通过目标浏览器成功跳转至目标功能的情况下,根据目标浏览器的辅助功能生成目标功能的快捷图标,也就是说,通过显示界面上的设置按键确定所述目标功能的统一资源定位符,进而对预设快捷模板文件中进行替换,通过浏览器中的辅助功能使用替换后的预设快捷模板文件生成目标功能的快捷图标,因此,可以解决现有技术中无法对目标应用中的目标功能进行指定访问等问题,提升了目标功能的访问效率,提升了目标对象的使用体验。Through the above steps, the target function to be quickly accessed by the target object is determined, where the target function is the function of the target application installed on the terminal device; when the target function is run on the display interface of the terminal device, through the display interface Set the button to generate a unified resource locator for the target function, and determine the icon information of the target function; replace the preset shortcut template file corresponding to the set button according to the unified resource locator and icon information to obtain the target shortcut file corresponding to the target function; in When the target shortcut file successfully jumps to the target function through the target browser, the shortcut icon of the target function is generated according to the auxiliary function of the target browser. That is to say, the unified resource of the target function is determined through the setting button on the display interface. locator, and then replace the preset shortcut template file, and use the replaced preset shortcut template file to generate the shortcut icon of the target function through the auxiliary function in the browser. Therefore, it can solve the problem of the existing technology that cannot be used in the target application. It improves the access efficiency of the target function and improves the user experience of the target object.
在一个示例性实施例中,确定所述目标功能的图标信息,包括:接收所述目标对象为所述目标功能设置的显示信息,其中,所述显示信息至少包括以下之一:快捷图标对应的编码位数、快捷图标的图标名称;在接收到所述显示信息的情况下,确定所述目标功能所在目标应用的页面跳转协议;根据所述显示信息以及所述页面跳转协议确定所述目标功能的图标信息。In an exemplary embodiment, determining the icon information of the target function includes: receiving display information set by the target object for the target function, wherein the display information includes at least one of the following: a shortcut icon corresponding to The number of coding bits and the icon name of the shortcut icon; upon receiving the display information, determine the page jump protocol of the target application where the target function is located; determine the page jump protocol according to the display information and the page jump protocol. Icon information for the target function.
例如,在确定需要进行快捷访问的目标功能后,确定对应的信息,如:传递桌面图标(图标为base64编码)、图标名称、需要跳转的当前界面的URL(Uniform resourceLocator,同一资源定位符,简称URL)内容,到桌面快捷方式HTML(Hyper Text Markuplanguage,超文件标记语言,简称HTML)模版里面,替换掉模版里面的指定内容;保存模版文件到沙盒里面,其中,所述模板内容还包含跳转APP的页面跳转协议Scheme。For example, after determining the target function that requires quick access, determine the corresponding information, such as: passing the desktop icon (the icon is base64 encoded), the icon name, the URL of the current interface that needs to be jumped (Uniform resourceLocator, the same resource locator, URL) content into the desktop shortcut HTML (Hyper Text Markup Language, HTML for short) template, and replace the specified content in the template; save the template file to the sandbox, where the template content also includes Jump APP's page jump protocol Scheme.
在一个示例性实施例中,在接收到所述显示信息的情况下,确定所述目标功能所在目标应用的页面跳转协议,包括:确定所述目标应用在所述终端设备上的运行函数,其中,所述运行函数用于指示目标应用运行时不同功能之间进行切换的跳转信息;根据所述运行函数和所述显示信息确定所述目标功能所在目标应用的页面跳转协议。In an exemplary embodiment, after receiving the display information, determining the page jump protocol of the target application where the target function is located includes: determining the running function of the target application on the terminal device, Wherein, the running function is used to indicate jump information for switching between different functions when the target application is running; and the page jump protocol of the target application where the target function is located is determined based on the running function and the display information.
可选的,当点击桌面快捷方式的时候,桌面快捷方式通过系统设置的App的scheme方案启动App,然后App里面通过open URL函数获取到scheme的整体内容,根据自己字符串拼接规则截取跳转目标URL,然后跳转到对应功能界面。Optional, when you click the desktop shortcut, the desktop shortcut starts the App through the App scheme set by the system, and then the App obtains the overall content of the scheme through the open URL function, and intercepts the jump target according to its own string splicing rules. URL, and then jump to the corresponding function interface.
在一个示例性实施例中,在所述终端设备的显示界面运行所述目标功能的情况下,通过所述显示界面上的设置按键生成所述目标功能的统一资源定位符,包括:确定所述显示界面对应的参数信息;根据所述参数信息确定所述显示界面的网页链接字符;在所述网页链接字符中添加所述目标功能对应的功能字符,得到所述目标功能的统一资源定位符。In an exemplary embodiment, when the display interface of the terminal device runs the target function, generating a uniform resource locator of the target function through a setting button on the display interface includes: determining the Display the parameter information corresponding to the interface; determine the web page link character of the display interface according to the parameter information; add the function character corresponding to the target function to the web page link character to obtain the unified resource locator of the target function.
在一个示例性实施例中,根据所述统一资源定位符、所述图标信息对所述设置按键对应的预设快捷模板文件进行替换,得到所述目标功能对应的目标快捷文件之前,上述方法还包括:确定所述终端设备上设置的本地服务端口,其中,所述本地服务端口用于指示所述预设快捷模板的模板文件所在的根目录;将所述本地服务端口与所述设置按键关联,以在所述设置按键启用后执行所述预设快捷模板的调用。In an exemplary embodiment, before replacing the preset shortcut template file corresponding to the setting button according to the uniform resource locator and the icon information to obtain the target shortcut file corresponding to the target function, the above method further The method includes: determining a local service port set on the terminal device, wherein the local service port is used to indicate the root directory where the template file of the preset shortcut template is located; associating the local service port with the setting button , to execute the calling of the preset shortcut template after the setting button is enabled.
在一个示例性实施例中,在所述目标快捷文件通过目标浏览器成功跳转至所述目标功能,包括:启用所述目标快捷文件中的统一资源定位符;在所述统一资源定位符启动所述目标浏览器的情况下,确定所述目标浏览器显示页面的显示结果;根据所述显示结果确定所述目标快捷文件的页面跳转。In an exemplary embodiment, successfully jumping to the target function through the target shortcut file through the target browser includes: enabling the Uniform Resource Locator in the target shortcut file; starting the Uniform Resource Locator in the target shortcut file. In the case of the target browser, the display result of the page displayed by the target browser is determined; and the page jump of the target shortcut file is determined based on the display result.
在一个示例性实施例中,根据所述显示结果确定所述目标快捷文件的页面跳转,包括:在所述显示结果包含所述目标功能的情况下,确定所述目标快捷文件对应页面跳转成功;在所述显示结果不包含所述目标功能的情况下,确定所述目标快捷文件对应页面跳转失败,并向所述目标对象发出提示信息,其中,所述提示信息用于指示目标快捷文件需要重新生成。In an exemplary embodiment, determining the page jump of the target shortcut file according to the display result includes: when the display result contains the target function, determining the page jump corresponding to the target shortcut file. Success; when the display result does not include the target function, it is determined that the page corresponding to the target shortcut file fails to jump, and a prompt message is sent to the target object, where the prompt information is used to indicate the target shortcut file. The file needs to be regenerated.
为了更好的理解上述目标功能的启用方法的过程,以下结合几个可选实施例对上述目标功能的启用方法流程进行说明。In order to better understand the process of the method for enabling the above target function, the process of the method for enabling the above target function will be described below with reference to several optional embodiments.
本发明可选实施例中,主要提供了一种创建功能快捷方式的方法,通过在桌面创建这个功能的快捷方式,点击快捷方式,就可以自动打开app的指定功能界面,不用担心功能位置被移动或者找不到。In the optional embodiment of the present invention, a method of creating a function shortcut is mainly provided. By creating a shortcut of this function on the desktop and clicking the shortcut, the designated function interface of the app can be automatically opened without worrying about the function position being moved. Or it can't be found.
可选的,如图3所示为本发明可选实施例的桌面快捷方式创建流程的流程图,具体如下:Optionally, Figure 3 shows a flow chart of the desktop shortcut creation process according to an optional embodiment of the present invention, as follows:
当进入到某一个功能界面的时候,这个界面有桌面快捷方式设置功能;When entering a certain function interface, this interface has a desktop shortcut setting function;
步骤1、点击桌面快捷方式功能。Step 1. Click the desktop shortcut function.
步骤2、确定对应的信息,如:传递桌面图标(图标为base64编码)、图标名称、需要跳转的当前界面的URL(Uniform resource Locator,同一资源定位符,简称URL)内容,到桌面快捷方式HTML(HyperText Markup language,超文件标记语言,简称HTML)模版里面,替换掉模版里面的指定内容;保存模版文件到沙盒里面,其中,所述模板内容还包含跳转APP的页面跳转协议Scheme。Step 2. Determine the corresponding information, such as: transfer the desktop icon (the icon is base64 encoded), the icon name, the URL (Uniform resource Locator, URL for short) of the current interface that needs to be jumped, to the desktop shortcut In the HTML (HyperText Markup language, HTML for short) template, replace the specified content in the template; save the template file in the sandbox, where the template content also contains the page jump protocol Scheme for jumping the APP .
步骤3、启动本地服务,设置本地服务端口、本地服务根目录为模版文件的沙盒目录。Step 3. Start the local service, set the local service port and the local service root directory as the sandbox directory of the template file.
步骤4、通过本地路径,获取模板网页。Step 4. Obtain the template web page through the local path.
步骤5、从App通过open URL启动浏览器访问模版文件;这时候就会跳转到手机浏览器。Step 5. Start the browser through the open URL from the App to access the template file; at this time, it will jump to the mobile browser.
步骤6、使用浏览器的辅助功能里面的创建桌面快捷方式,创建当前网页的桌面快捷方式。Step 6. Use Create Desktop Shortcut in the browser's accessibility function to create a desktop shortcut for the current web page.
可选的,如图4所示为本发明可选实施例的桌面快捷方式进行调用的流程图。包括以下步骤:Optionally, Figure 4 shows a flow chart of invoking a desktop shortcut according to an optional embodiment of the present invention. Includes the following steps:
步骤S302:点击桌面快捷图标。Step S302: Click the desktop shortcut icon.
步骤S304:快捷图标启动scheme协议,调起APP。Step S304: The shortcut icon starts the scheme protocol and calls up the APP.
步骤S306:APP内部通过scheme获取到要跳转的地址URL。Step S306: The APP internally obtains the address URL to be redirected through the scheme.
步骤S308;跳转到指定界面。Step S308; Jump to the specified interface.
具体的,当点击桌面快捷方式的时候,桌面快捷方式通过系统设置的App的scheme方案启动App,然后App里面通过open URL函数获取到scheme的整体内容,根据自己字符串拼接规则截取跳转目标URL,然后跳转到对应功能界面。Specifically, when a desktop shortcut is clicked, the desktop shortcut starts the App through the App scheme set by the system, and then the App obtains the overall content of the scheme through the open URL function, and intercepts the jump target URL according to its own string splicing rules. , and then jump to the corresponding function interface.
综上,通过本发明可选实施例,提供了一种应App桌面快捷方式的建立方法,通过App传输信息给模版界面,修改模版界面内容。通过本地路径获取到修改模版界面后得到的模版网页,将常用功能界面做成桌面快捷方式,直接通过桌面快捷方式,直接打开App的指定功能,跳转到app的指定功能界面,不需要其他复杂的操作。避免了手机里面App众多,App里面功能现在越来越复杂,界面变更频繁,升级版本以后,经常找不到指定功能在哪个位置问题的发生,提升了目标对象的使用体验。In summary, through optional embodiments of the present invention, a method for establishing a desktop shortcut for an App is provided, which transmits information to the template interface through the App and modifies the content of the template interface. Obtain the template web page obtained after modifying the template interface through the local path, and make the commonly used function interface into a desktop shortcut. Directly open the designated function of the App through the desktop shortcut, and jump to the designated function interface of the App without any other complications. operation. It avoids the problem that there are many apps on mobile phones, the functions in the apps are becoming more and more complex, and the interface changes frequently. After upgrading the version, it is often difficult to find the location of the specified function, which improves the user experience of the target audience.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is Better implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.
在本实施例中还提供了一种目标功能的启用装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。This embodiment also provides a target function enabling device, which is used to implement the above embodiments and preferred implementations. What has already been described will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
图5是根据本发明实施例的目标功能的启用装置的结构框图,如图5所示,该装置包括:Figure 5 is a structural block diagram of a target function enabling device according to an embodiment of the present invention. As shown in Figure 5, the device includes:
确定模块52,用于确定目标对象待进行快捷访问的目标功能,其中,所述目标功能为终端设备上安装的目标应用所具有的功能;The determination module 52 is used to determine the target function to be quickly accessed by the target object, wherein the target function is the function of the target application installed on the terminal device;
生成模块54,用于在所述终端设备的显示界面运行所述目标功能的情况下,通过所述显示界面上的设置按键生成所述目标功能的统一资源定位符,并确定所述目标功能的图标信息;Generating module 54, configured to generate a uniform resource locator of the target function through a setting button on the display interface when the display interface of the terminal device runs the target function, and determine the uniform resource locator of the target function. icon information;
替换模块56,用于根据所述统一资源定位符、所述图标信息对所述设置按键对应的预设快捷模板文件进行替换,得到所述目标功能对应的目标快捷文件;The replacement module 56 is configured to replace the preset shortcut template file corresponding to the setting button according to the uniform resource locator and the icon information to obtain the target shortcut file corresponding to the target function;
跳转模块58,用于在所述目标快捷文件通过目标浏览器成功跳转至所述目标功能的情况下,根据所述目标浏览器的辅助功能生成所述目标功能的快捷图标。The jump module 58 is configured to generate a shortcut icon of the target function according to the auxiliary function of the target browser when the target shortcut file successfully jumps to the target function through the target browser.
通过上述装置,确定目标对象待进行快捷访问的目标功能,其中,目标功能为终端设备上安装的目标应用所具有的功能;在终端设备的显示界面运行目标功能的情况下,通过显示界面上的设置按键生成目标功能的统一资源定位符,并确定目标功能的图标信息;根据统一资源定位符、图标信息对设置按键对应的预设快捷模板文件进行替换,得到目标功能对应的目标快捷文件;在目标快捷文件通过目标浏览器成功跳转至目标功能的情况下,根据目标浏览器的辅助功能生成目标功能的快捷图标,也就是说,通过显示界面上的设置按键确定所述目标功能的统一资源定位符,进而对预设快捷模板文件中进行替换,通过浏览器中的辅助功能使用替换后的预设快捷模板文件生成目标功能的快捷图标,因此,可以解决现有技术中无法对目标应用中的目标功能进行指定访问等问题,提升了目标功能的访问效率,提升了目标对象的使用体验。Through the above device, the target function to be quickly accessed by the target object is determined, wherein the target function is the function of the target application installed on the terminal device; when the target function is run on the display interface of the terminal device, through the display interface on the display interface Set the button to generate a unified resource locator for the target function, and determine the icon information of the target function; replace the preset shortcut template file corresponding to the set button according to the unified resource locator and icon information to obtain the target shortcut file corresponding to the target function; in When the target shortcut file successfully jumps to the target function through the target browser, the shortcut icon of the target function is generated according to the auxiliary function of the target browser. That is to say, the unified resource of the target function is determined through the setting button on the display interface. locator, and then replace the preset shortcut template file, and use the replaced preset shortcut template file to generate the shortcut icon of the target function through the auxiliary function in the browser. Therefore, it can solve the problem of the existing technology that cannot be used in the target application. It improves the access efficiency of the target function and improves the user experience of the target object.
在一个示例性实施例中,上述生成模块,还用于接收所述目标对象为所述目标功能设置的显示信息,其中,所述显示信息至少包括以下之一:快捷图标对应的编码位数、快捷图标的图标名称;在接收到所述显示信息的情况下,确定所述目标功能所在目标应用的页面跳转协议;根据所述显示信息以及所述页面跳转协议确定所述目标功能的图标信息。例如,在确定需要进行快捷访问的目标功能后,确定对应的信息,如:传递桌面图标(图标为base64编码)、图标名称、需要跳转的当前界面的URL(Uniform resource Locator,同一资源定位符,简称URL)内容,到桌面快捷方式HTML(Hyper Text Markup language,超文件标记语言,简称HTML)模版里面,替换掉模版里面的指定内容;保存模版文件到沙盒里面,其中,所述模板内容还包含跳转APP的页面跳转协议Scheme;In an exemplary embodiment, the above-mentioned generation module is also used to receive display information set by the target object for the target function, wherein the display information includes at least one of the following: the number of coding digits corresponding to the shortcut icon, The icon name of the shortcut icon; upon receiving the display information, determining the page jump protocol of the target application where the target function is located; determining the icon of the target function based on the display information and the page jump protocol information. For example, after determining the target function that requires quick access, determine the corresponding information, such as: passing the desktop icon (the icon is base64 encoded), the icon name, the URL of the current interface that needs to be jumped (Uniform resource Locator, the same resource locator (URL) content into the desktop shortcut HTML (Hyper Text Markup Language, HTML for short) template, replacing the specified content in the template; save the template file to the sandbox, where the template content It also includes the page jump protocol Scheme for jumping APP;
在一个示例性实施例中,上述生成模块还包括:函数单元,用于确定所述目标应用在所述终端设备上的运行函数,其中,所述运行函数用于指示目标应用运行时不同功能之间进行切换的跳转信息;根据所述运行函数和所述显示信息确定所述目标功能所在目标应用的页面跳转协议。In an exemplary embodiment, the above generation module further includes: a function unit, used to determine the running function of the target application on the terminal device, wherein the running function is used to indicate one of the different functions of the target application when running. Jump information for switching between; determining the page jump protocol of the target application where the target function is located according to the running function and the display information.
在一个示例性实施例中,上述生成模块,还用于确定所述显示界面对应的参数信息;根据所述参数信息确定所述显示界面的网页链接字符;在所述网页链接字符中添加所述目标功能对应的功能字符,得到所述目标功能的统一资源定位符。In an exemplary embodiment, the above-mentioned generation module is also used to determine the parameter information corresponding to the display interface; determine the web page link characters of the display interface according to the parameter information; and add the web page link characters to the web page link characters. The function character corresponding to the target function is used to obtain the uniform resource locator of the target function.
在一个示例性实施例中,上述装置还包括:端口模块,用于确定所述终端设备上设置的本地服务端口,其中,所述本地服务端口用于指示所述预设快捷模板的模板文件所在的根目录;将所述本地服务端口与所述设置按键关联,以在所述设置按键启用后执行所述预设快捷模板的调用。In an exemplary embodiment, the above device further includes: a port module, configured to determine a local service port set on the terminal device, wherein the local service port is used to indicate where the template file of the preset shortcut template is located. the root directory; associate the local service port with the setting button to execute the invocation of the preset shortcut template after the setting button is enabled.
在一个示例性实施例中,上述跳转模块,还用于在启用所述目标快捷文件中的统一资源定位符;在所述统一资源定位符启动所述目标浏览器的情况下,确定所述目标浏览器显示页面的显示结果;根据所述显示结果确定所述目标快捷文件的页面跳转。In an exemplary embodiment, the above-mentioned jump module is also used to enable the Uniform Resource Locator in the target shortcut file; when the Uniform Resource Locator starts the target browser, determine the The target browser displays the display result of the page; and determines the page jump of the target shortcut file according to the display result.
在一个示例性实施例中,上述跳转模块,还用于在所述显示结果包含所述目标功能的情况下,确定所述目标快捷文件对应页面跳转成功;在所述显示结果不包含所述目标功能的情况下,确定所述目标快捷文件对应页面跳转失败,并向所述目标对象发出提示信息,其中,所述提示信息用于指示目标快捷文件需要重新生成。In an exemplary embodiment, the above-mentioned jump module is also used to determine that the page corresponding to the target shortcut file jumps successfully when the display result contains the target function; In the case of the above target function, it is determined that the page corresponding to the target shortcut file fails to jump, and a prompt message is sent to the target object, wherein the prompt information is used to indicate that the target shortcut file needs to be regenerated.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but is not limited to this: the above modules are all located in the same processor; or the above modules can be implemented in any combination. The forms are located in different processors.
本发明的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present invention also provide a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
在一个示例性实施例中,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:In an exemplary embodiment, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
S1,确定目标对象待进行快捷访问的目标功能,其中,所述目标功能为终端设备上安装的目标应用所具有的功能;S1. Determine the target function to be quickly accessed by the target object, where the target function is a function of the target application installed on the terminal device;
S2,在所述终端设备的显示界面运行所述目标功能的情况下,通过所述显示界面上的设置按键生成所述目标功能的统一资源定位符,并确定所述目标功能的图标信息;S2, when the display interface of the terminal device runs the target function, generate a unified resource locator of the target function through the setting button on the display interface, and determine the icon information of the target function;
S3,根据所述统一资源定位符、所述图标信息对所述设置按键对应的预设快捷模板文件进行替换,得到所述目标功能对应的目标快捷文件;S3: Replace the preset shortcut template file corresponding to the setting button according to the uniform resource locator and the icon information to obtain the target shortcut file corresponding to the target function;
S4,在所述目标快捷文件通过目标浏览器成功跳转至所述目标功能的情况下,根据所述目标浏览器的辅助功能生成所述目标功能的快捷图标。S4: When the target shortcut file successfully jumps to the target function through the target browser, generate a shortcut icon for the target function according to the auxiliary function of the target browser.
在一个示例性实施例中,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, in this embodiment, the above-mentioned storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as Various media that can store computer programs such as RAM), removable hard drives, magnetic disks or optical disks.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
在一个示例性实施例中,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:In an exemplary embodiment, in this embodiment, the above-mentioned processor may be configured to perform the following steps through a computer program:
S1,确定目标对象待进行快捷访问的目标功能,其中,所述目标功能为终端设备上安装的目标应用所具有的功能;S1. Determine the target function to be quickly accessed by the target object, where the target function is a function of the target application installed on the terminal device;
S2,在所述终端设备的显示界面运行所述目标功能的情况下,通过所述显示界面上的设置按键生成所述目标功能的统一资源定位符,并确定所述目标功能的图标信息;S2, when the display interface of the terminal device runs the target function, generate a unified resource locator of the target function through the setting button on the display interface, and determine the icon information of the target function;
S3,根据所述统一资源定位符、所述图标信息对所述设置按键对应的预设快捷模板文件进行替换,得到所述目标功能对应的目标快捷文件;S3: Replace the preset shortcut template file corresponding to the setting button according to the uniform resource locator and the icon information to obtain the target shortcut file corresponding to the target function;
S4,在所述目标快捷文件通过目标浏览器成功跳转至所述目标功能的情况下,根据所述目标浏览器的辅助功能生成所述目标功能的快捷图标。S4: When the target shortcut file successfully jumps to the target function through the target browser, generate a shortcut icon for the target function according to the auxiliary function of the target browser.
在一个示例性实施例中,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above-mentioned embodiments and optional implementations, and details will not be described again in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,在一个示例性实施例中,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented using general-purpose computing devices. They can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. In one exemplary embodiment, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device for execution by the computing device, and in some cases may be implemented in a format different from The steps shown or described here are performed sequentially, or are implemented as separate integrated circuit modules, or multiple modules or steps among them are implemented as a single integrated circuit module. As such, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention shall be included in the protection scope of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111450816.0A CN114253441B (en) | 2021-11-30 | 2021-11-30 | Methods and devices for enabling target functions, storage media, and electronic devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111450816.0A CN114253441B (en) | 2021-11-30 | 2021-11-30 | Methods and devices for enabling target functions, storage media, and electronic devices |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114253441A CN114253441A (en) | 2022-03-29 |
CN114253441B true CN114253441B (en) | 2023-12-19 |
Family
ID=80791518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111450816.0A Active CN114253441B (en) | 2021-11-30 | 2021-11-30 | Methods and devices for enabling target functions, storage media, and electronic devices |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114253441B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115150662B (en) * | 2022-06-20 | 2024-05-14 | 北京奇艺世纪科技有限公司 | Data processing method, system, device, readable storage medium and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853540A (en) * | 2012-12-04 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for accessing third-party application on operating system desktop |
CN105867925A (en) * | 2016-03-29 | 2016-08-17 | 联想(北京)有限公司 | Shortcut establishing method and electronic device |
CN108062412A (en) * | 2017-12-30 | 2018-05-22 | 北京百度网讯科技有限公司 | Shortcut generation method, device and the terminal device of Web page application program |
CN110837616A (en) * | 2019-09-27 | 2020-02-25 | 云深互联(北京)科技有限公司 | Method, system and storage medium for managing browser kernel |
CN112860273A (en) * | 2019-11-27 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Page display method and device |
EP3828682A1 (en) * | 2019-11-28 | 2021-06-02 | Beijing Xiaomi Mobile Software Co., Ltd. | Method, apparatus for adding shortcut plug-in, and intelligent device |
CN113467862A (en) * | 2020-03-30 | 2021-10-01 | 腾讯科技(深圳)有限公司 | Desktop shortcut generation method and device, mobile terminal and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102052605B1 (en) * | 2012-11-13 | 2019-12-06 | 네이버 주식회사 | Method and system of installing shortcut through mobile application |
-
2021
- 2021-11-30 CN CN202111450816.0A patent/CN114253441B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103853540A (en) * | 2012-12-04 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and system for accessing third-party application on operating system desktop |
CN105867925A (en) * | 2016-03-29 | 2016-08-17 | 联想(北京)有限公司 | Shortcut establishing method and electronic device |
CN108062412A (en) * | 2017-12-30 | 2018-05-22 | 北京百度网讯科技有限公司 | Shortcut generation method, device and the terminal device of Web page application program |
CN110837616A (en) * | 2019-09-27 | 2020-02-25 | 云深互联(北京)科技有限公司 | Method, system and storage medium for managing browser kernel |
CN112860273A (en) * | 2019-11-27 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Page display method and device |
EP3828682A1 (en) * | 2019-11-28 | 2021-06-02 | Beijing Xiaomi Mobile Software Co., Ltd. | Method, apparatus for adding shortcut plug-in, and intelligent device |
CN113467862A (en) * | 2020-03-30 | 2021-10-01 | 腾讯科技(深圳)有限公司 | Desktop shortcut generation method and device, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114253441A (en) | 2022-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111158818B (en) | Page rendering method and device | |
US10713034B2 (en) | Updating web resources | |
US8656417B2 (en) | Interface for telecommunication services using uniform resource identifiers | |
CN102567516B (en) | Script loading method and device | |
US9367403B2 (en) | Terminal and application restoring method | |
US20160170712A1 (en) | Method for integrally implementing development and release of APP | |
CN110113391B (en) | Client online method and device and client operation method and device | |
CN105700925B (en) | A kind of interface implementing method and device of APP | |
CN108647032B (en) | Application loading method and apparatus, computer apparatus and computer-readable storage medium | |
CN111897564A (en) | Application updating method and system | |
US11379446B1 (en) | Session-based data storage for chat-based communication sessions | |
US10372512B2 (en) | Method and apparatus for automatic processing of service requests on an electronic device | |
CN105893073A (en) | Update method and system used for application program, and business server and pushing server used for updating application program | |
CN108804100B (en) | Method and device for creating interface element, storage medium and mobile terminal | |
CN113760278B (en) | Page management method and device | |
CN112235132B (en) | Method, device, medium and server for dynamically configuring service | |
CN106713395A (en) | Data downloading method and apparatus | |
CN114253441B (en) | Methods and devices for enabling target functions, storage media, and electronic devices | |
CN113434233B (en) | Interface jump method and device, storage medium and electronic device | |
CN112905225A (en) | Method and device for creating continuous integration tool construction task | |
CN103917951B (en) | Application invocation method, operating system and browser | |
CN113342341A (en) | Page creating method, device and system and storage medium | |
CN108804101B (en) | Method and device for creating interface element, storage medium and mobile terminal | |
CN113778546A (en) | Method and device for gray scale optimization | |
US11456983B2 (en) | Interactive operation method, and transmitter machine, receiver machine and interactive operation system using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |