WO2018001068A1 - Web page link access method and device, and mobile terminal - Google Patents

Web page link access method and device, and mobile terminal Download PDF

Info

Publication number
WO2018001068A1
WO2018001068A1 PCT/CN2017/087631 CN2017087631W WO2018001068A1 WO 2018001068 A1 WO2018001068 A1 WO 2018001068A1 CN 2017087631 W CN2017087631 W CN 2017087631W WO 2018001068 A1 WO2018001068 A1 WO 2018001068A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage link
content
pasteboard
string
desktop
Prior art date
Application number
PCT/CN2017/087631
Other languages
French (fr)
Chinese (zh)
Inventor
田昊
Original Assignee
北京金山安全软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Publication of WO2018001068A1 publication Critical patent/WO2018001068A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations

Definitions

  • the present application relates to the field of computer software, and in particular, to a webpage link access method, device, and mobile terminal.
  • the embodiment of the present application provides a webpage link access method, device, and mobile terminal, which automatically reads the content in the system pasteboard by listening to the return desktop broadcast sent by the terminal system, and determines that the webpage exists in the content.
  • the system browser is called to open the webpage link, thereby simplifying the operation of the webpage link access and improving the user experience of the terminal.
  • an embodiment of the present application provides a webpage link access method, including:
  • the content in the system pasteboard is read, and it is determined whether the content of the pasteboard includes a character string
  • the webpage link is extracted from the string and the system browser is invoked to open the webpage link.
  • the method before the returning to the desktop broadcast by the widget monitoring system hidden in the system desktop, the method further includes:
  • the widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
  • the content in the system pasteboard is read, including:
  • the broadcast receiving function When the broadcast receiving function receives the return desktop broadcast issued by the system, the content read function is called, and the content in the system pasteboard is read by the content read function.
  • the determining whether the string includes a webpage link includes:
  • the format of the English string matches the webpage link format, it is determined that the string includes a webpage link.
  • the method further includes:
  • the embodiment of the present application provides a webpage link access apparatus, including:
  • a broadcast monitoring module for returning a desktop broadcast by a widget monitoring system hidden in the system desktop
  • the content reading module is configured to read the content in the system pasteboard when the returning desktop broadcast sent by the system is monitored, and determine whether the content of the pasteboard includes a character string;
  • a link identification module configured to determine, when the character string of the pasteboard includes a character string, whether the webpage link is included in the string
  • the link extraction module is configured to extract the webpage link from the string when the webpage link is included in the string, and invoke a system browser to open the webpage link.
  • the device further includes:
  • a component building module for creating a widget and hiding the widget on a system desktop
  • the widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
  • the content reading module is further configured to: when the broadcast receiving function receives a return desktop broadcast sent by the system, invoke the content reading function, and paste the system by the content reading function.
  • the content in the board is further configured to: when the broadcast receiving function receives a return desktop broadcast sent by the system, invoke the content reading function, and paste the system by the content reading function. The content in the board.
  • the link identification module includes:
  • a string extraction submodule configured to extract an English character string from a string included in the content of the pasteboard
  • the webpage link matching sub-module is configured to determine whether the format of the English character string matches the webpage link format; and when the format of the English character string matches the webpage link format, determine that the string includes the webpage link.
  • the device further includes:
  • a user prompting module configured to prompt the user whether to open the webpage link through the prompt window; and receive, by the prompting window, an instruction that the user agrees to open the webpage link.
  • an embodiment of the present application provides a mobile terminal, including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, a processor and the memory disposed on the circuit board; the power circuit for powering respective circuits or devices of the mobile terminal; the memory for storing executable program code; the processor reading by Executing program code stored in the memory to execute a program corresponding to the executable program code for performing the following steps:
  • the content in the system pasteboard is read, and it is determined whether the content of the pasteboard includes a character string
  • the webpage link is extracted from the string and the system browser is invoked to open the webpage link.
  • an embodiment of the present application provides a computer program product, when executed by an instruction processor in the computer program product, performing a webpage link access method, where the method includes: by using a window hidden in a system desktop Returning to the desktop broadcast sent by the component monitoring system; when listening to the returning desktop broadcast sent by the system, reading the content in the system pasteboard, and determining whether the content of the pasteboard contains a character string; when the content of the pasteboard When the string is included, it is determined whether the string contains a webpage link; when the string includes the webpage link, the webpage link is extracted from the string, and the system browser is called to open the webpage link.
  • an embodiment of the present application provides a storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, to enable the mobile terminal to perform a webpage link access method, where the method includes: Hidden in The desktop desktop widget listens to the returning desktop broadcast sent by the system; when listening to the returning desktop broadcast sent by the system, reads the content in the system pasteboard, and determines whether the content of the pasteboard contains a string; When the content of the pasteboard includes a character string, it is determined whether the webpage link is included in the character string; when the webpage link is included in the string, the webpage link is extracted from the string, and the system browser is invoked Open the web page link.
  • the webpage link access method, device and mobile terminal provided by the embodiment of the present application monitor the returning desktop by setting a hidden widget on the system desktop and listening to the returning desktop broadcast sent by the widget through the widget During the broadcast, the content in the pasteboard is automatically read, and when it is determined that the webpage link exists in the content, the webpage link is extracted, and the webpage link is opened by calling the system browser, thereby effectively simplifying the webpage link access.
  • the operation step is to improve the user experience of the mobile terminal.
  • FIG. 1 is a first schematic flowchart of a webpage link access method provided by an embodiment of the present application
  • FIG. 2 is a second schematic flowchart of a webpage link access method provided by an embodiment of the present application.
  • FIG. 3 is a third schematic flowchart of a webpage link access method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a first structure of a webpage link access apparatus according to an embodiment of the present application.
  • FIG. 5 is a second schematic structural diagram of a webpage link access apparatus according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
  • a first embodiment of the present application provides a webpage link access method, including:
  • Step S12 returning the desktop broadcast by the widget monitoring system hidden in the system desktop
  • Step S14 When listening to the return desktop broadcast sent by the system, reading the content in the system pasteboard, and determining whether the content of the pasteboard includes a character string;
  • Step S16 When the content of the pasteboard includes a character string, determine whether the string includes a webpage link;
  • Step S18 When the webpage link is included in the character string, the webpage link is extracted from the character string, and the web browser is invoked to open the webpage link.
  • the widget can perform real-time monitoring on the returned desktop broadcast sent by the system.
  • the system When the system performs a return to desktop operation, the system will issue a return desktop broadcast.
  • the widget After receiving the returning desktop broadcast sent by the system, the widget reads the currently copied content from the pasteboard of the system, and determines whether the content of the pasteboard includes a character string. When the content of the pasteboard includes a character string, it is determined whether the webpage link is included in the character string. If the webpage link is included in the character string, extracting the webpage link from the character string, and calling a system browser to open the webpage link, thereby realizing automatic identification and access of the webpage link in the pasteboard, simplifying the webpage The steps when linking access.
  • the method further includes: before the returning to the desktop broadcast by the widget monitoring system hidden in the system desktop, the method further includes:
  • Step S11 Create a widget and hide the widget on the system desktop.
  • the widget is a widget widget.
  • the widget widget does not perform layout drawing on the system desktop, that is, the graphical interface of the widget widget is not displayed on the system desktop, but is active in the system process, thereby achieving the effect of being hidden on the system desktop.
  • the widget widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading a system pasteboard.
  • the broadcast receiving function is always active in the system process and monitors in real time whether the system issues a return desktop broadcast.
  • the content in the system pasteboard is read, including:
  • the broadcast receiving function When the broadcast receiving function receives the return desktop broadcast issued by the system, the content read function is called, and the content in the system pasteboard is read by the content read function.
  • the current listening process is ended, and the next round of returning desktop broadcast monitoring is restarted.
  • the content in the content reading function reading system pasteboard is not empty, it is determined whether the content of the pasteboard includes a character string, and if the content of the pasteboard does not include a character string, the current monitoring is ended. Flowing, and restarting the next round of returning desktop broadcast monitoring; if the content of the pasteboard includes a character string, extracting the character string from the content of the pasteboard to further determine the string Whether to include web links.
  • the content in the system pasteboard may include only webpage links, and may also include text content and webpage links of non-webpage links.
  • the included webpage link is a webpage link obtained by reading the content in the pasteboard.
  • the webpage link needs to be further extracted. In this way, when the user copies the webpage link, the webpage link can be copied without absolute precision, and the webpage link can be included in the selected copy content, thereby effectively saving the time required for selecting the webpage link.
  • the determining whether the string includes a webpage link includes:
  • Step S161 extract an English character string from a character string included in the content of the pasteboard
  • Step S163 determining whether the format of the English character string matches the webpage link format
  • Step S165 If the format of the English character string matches the webpage link format, it is determined that the character string includes a webpage link.
  • the content of the pasteboard may include Chinese, English, special symbols, etc.
  • analysis is needed to determine whether a webpage link is included therein.
  • the webpage link is usually a character string composed of an English number and a special symbol.
  • extracting an English character string from a character string included in the content of the pasteboard it is determined whether the format of the English character string is The webpage link format matches to determine whether the webpage link is included in the content of the pasteboard. It can be understood that extracting an English character string from a character string contained in the content of the pasteboard may include a combination of one or more of consecutive English, numbers, and special characters.
  • the determining whether the format of the English character string matches the webpage link format may be determined by a regular expression.
  • the method further includes:
  • the prompting window may also prompt the user whether the webpage link needs to be opened.
  • the prompt window may include an option for the user to select whether to open the webpage link.
  • a second embodiment of the present application provides a webpage link access apparatus 20, including:
  • a broadcast monitoring module 22 configured to return a desktop broadcast by a widget monitoring system hidden in a system desktop;
  • the content reading module 24 is configured to read the content in the system pasteboard when listening to the return desktop broadcast sent by the system, and determine whether the content of the pasteboard includes a character string;
  • the link identification module 26 is configured to determine, when the character string of the pasteboard includes a character string, whether the webpage link is included in the character string;
  • the link extraction module 28 is configured to extract the webpage link from the character string when the webpage link is included in the character string, and invoke the system browser to open the webpage link.
  • a webpage link accessing device 20' which further includes:
  • a component building module 21 configured to create a widget and hide the widget on a system desktop
  • the widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
  • the content reading module 24 is further configured to: when the broadcast receiving function receives a return desktop broadcast sent by the system, invoke the content reading function, and pass the content reading function. Read the contents of the system pasteboard.
  • the link identification module 26 includes:
  • a string extraction submodule 261 configured to extract an English character string from a string included in the content of the pasteboard
  • the webpage link matching sub-module 263 is configured to determine whether the format of the English character string matches the webpage link format; and when the format of the English character string matches the webpage link format, determine that the string includes the webpage link.
  • the webpage link accessing device 20' further includes:
  • the user prompting module 29 is configured to prompt the user whether to open the webpage link through the prompt window, and receive an instruction by the user to agree to open the webpage link through the prompting window.
  • a third embodiment of the present invention provides a mobile terminal 30, including: a casing (not shown), a processor 31, a memory 33, a circuit board (not shown), and a power circuit 35.
  • the circuit board is disposed inside the space enclosed by the casing, and the processor 31 and the memory 33 are disposed on the circuit board and electrically connected to each other; the power circuit 35 is configured to Each circuit or device of the mobile terminal 30 is powered; the memory 33 is used for storage
  • the program code is executed by the processor 31 by executing the executable program code stored in the memory 33 to execute a program corresponding to the executable program code for performing the following operations:
  • the content in the system pasteboard is read, and it is determined whether the content of the pasteboard includes a character string
  • the webpage link is extracted from the string and the system browser is invoked to open the webpage link.
  • the operation before the returning to the desktop broadcast by the widget monitoring system hidden in the system desktop, the operation further includes:
  • the widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
  • the content in the system pasteboard is read, including:
  • the broadcast receiving function When the broadcast receiving function receives the return desktop broadcast issued by the system, the content read function is called, and the content in the system pasteboard is read by the content read function.
  • the determining whether the string includes a webpage link includes:
  • the format of the English string matches the webpage link format, it is determined that the string includes a webpage link.
  • the operation further includes:
  • the webpage link access method, device, and mobile terminal automatically read the content in the pasteboard when listening to the return desktop broadcast sent by the terminal system, and extract the webpage link when determining that there is a webpage link in the content , And calling the system browser to open the webpage link, thereby effectively simplifying the operation steps of the webpage link access and improving the user experience of the terminal.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

A web page link access method, a web page link access device, and a mobile terminal. The web page link access method comprises: monitoring, through a widget hidden in a system desktop, a broadcast, emitted by a system, to return to a desktop (S12); when the broadcast, emitted by the system, to return to the desktop is monitored, reading the content in a sticking plate of the system, and determining whether the content in the sticking plate contains a character string (S14); when the content in the sticking plate contains a character string, determining whether the character string comprises a web page link (S16); and when the character string comprises a web page link, extracting the web page link from the character string and invoking a system browser to open the web page link (S18). The web page link access method and device can realize automatic recognition and access of a web page link in a sticking plate.

Description

一种网页链接访问方法、装置及移动终端Webpage link access method, device and mobile terminal
相关申请的交叉引用Cross-reference to related applications
本申请要求北京金山安全软件有限公司于2016年6月28日提交中国专利局、申请号为201610490574.0、发明名称为“一种网页链接访问方法、装置及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims Beijing Jinshan Security Software Co., Ltd. to submit the priority of the Chinese Patent Application of the Chinese Patent Office, the application number is 201610490574.0, and the invention name is "a web link access method, device and mobile terminal" on June 28, 2016. The entire contents of this application are incorporated herein by reference.
技术领域Technical field
本申请涉及计算机软件领域,尤其涉及一种网页链接访问方法、装置及移动终端。The present application relates to the field of computer software, and in particular, to a webpage link access method, device, and mobile terminal.
背景技术Background technique
目前,在手机、平板电脑等终端的系统中,没有托盘程序去识别网页链接而打开网页。因此,当用户打开一个网页时,需要进行先复制网页链接,然后返回桌面打开浏览器,点击浏览器地址栏,再粘贴网页链接,最后通过点击访问,在浏览器显示界面中打开网页链。也就是说,在访问网页链接映射的网页时,需要执行包括复制、返回桌面、打开浏览器、点击地址栏、粘贴以及点击访问等多个操作流程,使得访问网页链接的流程较为繁琐、访问所需的时间较长,降低了终端的用户体验。At present, in the system of terminals such as mobile phones and tablet computers, there is no tray program to identify webpage links and open webpages. Therefore, when the user opens a webpage, it is necessary to first copy the webpage link, then return to the desktop to open the browser, click the browser address bar, paste the webpage link, and finally click the access to open the webpage chain in the browser display interface. That is to say, when accessing the webpage mapped by the webpage link, it is necessary to perform multiple operation processes including copying, returning to the desktop, opening the browser, clicking the address bar, pasting, and clicking and accessing, so that the process of accessing the webpage link is cumbersome and the visiting place is The longer time required reduces the user experience of the terminal.
发明内容Summary of the invention
有鉴于此,本申请实施例提供一种网页链接访问方法、装置及移动终端,通过监听终端系统发出的返回桌面广播,自动读取系统粘贴板中的内容,并在判断所述内容中存在网页链接时,调用系统浏览器打开所述网页链接,从而简化网页链接访问时的操作,提升终端的用户体验。In view of this, the embodiment of the present application provides a webpage link access method, device, and mobile terminal, which automatically reads the content in the system pasteboard by listening to the return desktop broadcast sent by the terminal system, and determines that the webpage exists in the content. When linking, the system browser is called to open the webpage link, thereby simplifying the operation of the webpage link access and improving the user experience of the terminal.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objective, the embodiment of the present application adopts the following technical solutions:
第一方面,本申请实施例提供一种网页链接访问方法,包括:In a first aspect, an embodiment of the present application provides a webpage link access method, including:
通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播;Returning to the desktop broadcast by the widget monitoring system hidden in the system desktop;
当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串; When the returning desktop broadcast sent by the system is monitored, the content in the system pasteboard is read, and it is determined whether the content of the pasteboard includes a character string;
当所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;When the content of the pasteboard includes a character string, determining whether the string includes a webpage link;
当所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。When the webpage link is included in the string, the webpage link is extracted from the string and the system browser is invoked to open the webpage link.
可选的,所述通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播之前,所述方法还包括:Optionally, before the returning to the desktop broadcast by the widget monitoring system hidden in the system desktop, the method further includes:
建立窗口小部件,并将所述窗口小部件隐藏于系统桌面;Create a widget and hide the widget on the system desktop;
其中,所述窗口小部件中包含用于接收系统发出的返回桌面广播的广播接收函数和用于读取系统粘贴板的内容读取函数。The widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
可选的,所述当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,包括:Optionally, when the returned desktop broadcast sent by the system is monitored, the content in the system pasteboard is read, including:
当所述广播接收函数接收到系统发出的返回桌面广播时,调用所述内容读取函数,并通过所述内容读取函数读取系统粘贴板中的内容。When the broadcast receiving function receives the return desktop broadcast issued by the system, the content read function is called, and the content in the system pasteboard is read by the content read function.
可选的,所述判断所述字符串中是否包含网页链接,包括:Optionally, the determining whether the string includes a webpage link includes:
从所述粘贴板的内容中包含的字符串中提取英文字符串;Extracting an English character string from a string contained in the content of the pasteboard;
判断所述英文字符串的格式是否与网页链接格式匹配;Determining whether the format of the English string matches the webpage link format;
若所述英文字符串的格式与网页链接格式匹配,则判断所述字符串中包含网页链接。If the format of the English string matches the webpage link format, it is determined that the string includes a webpage link.
可选的,所述从所述字符串中提取所述网页链接之后,调用系统浏览器打开所述网页链接之前,所述方法还包括:Optionally, after the extracting the webpage link from the string, and before calling the system browser to open the webpage link, the method further includes:
通过提示窗口提示用户是否需要打开所述网页链接;Prompting the user through the prompt window whether the webpage link needs to be opened;
通过所述提示窗口接收用户同意打开所述网页链接的指令。An instruction to the user agreeing to open the webpage link is received through the prompt window.
第二方面,本申请实施例提供一种网页链接访问装置,包括:In a second aspect, the embodiment of the present application provides a webpage link access apparatus, including:
广播监听模块,用于通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播;a broadcast monitoring module for returning a desktop broadcast by a widget monitoring system hidden in the system desktop;
内容读取模块,用于在监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串;The content reading module is configured to read the content in the system pasteboard when the returning desktop broadcast sent by the system is monitored, and determine whether the content of the pasteboard includes a character string;
链接识别模块,用于在所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;a link identification module, configured to determine, when the character string of the pasteboard includes a character string, whether the webpage link is included in the string;
链接提取模块,用于在所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。The link extraction module is configured to extract the webpage link from the string when the webpage link is included in the string, and invoke a system browser to open the webpage link.
可选的,所述装置还包括:Optionally, the device further includes:
部件建立模块,用于建立窗口小部件,并将所述窗口小部件隐藏于系统桌面; a component building module for creating a widget and hiding the widget on a system desktop;
其中,所述窗口小部件中包含用于接收系统发出的返回桌面广播的广播接收函数和用于读取系统粘贴板的内容读取函数。The widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
可选的,所述内容读取模块,还用于在所述广播接收函数接收到系统发出的返回桌面广播时,调用所述内容读取函数,并通过所述内容读取函数读取系统粘贴板中的内容。Optionally, the content reading module is further configured to: when the broadcast receiving function receives a return desktop broadcast sent by the system, invoke the content reading function, and paste the system by the content reading function. The content in the board.
可选的,所述链接识别模块包括:Optionally, the link identification module includes:
字符串提取子模块,用于从所述粘贴板的内容中包含的字符串中提取英文字符串;a string extraction submodule, configured to extract an English character string from a string included in the content of the pasteboard;
网页链接匹配子模块,用于判断所述英文字符串的格式是否与网页链接格式匹配;并在所述英文字符串的格式与网页链接格式匹配时,判断所述字符串中包含网页链接。The webpage link matching sub-module is configured to determine whether the format of the English character string matches the webpage link format; and when the format of the English character string matches the webpage link format, determine that the string includes the webpage link.
可选地,所述装置还包括:Optionally, the device further includes:
用户提示模块,用于通过提示窗口提示用户是否需要打开所述网页链接;并通过所述提示窗口接收用户同意打开所述网页链接的指令。And a user prompting module, configured to prompt the user whether to open the webpage link through the prompt window; and receive, by the prompting window, an instruction that the user agrees to open the webpage link.
第三方面,本申请实施例提供一种移动终端,包括:壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:In a third aspect, an embodiment of the present application provides a mobile terminal, including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, a processor and the memory disposed on the circuit board; the power circuit for powering respective circuits or devices of the mobile terminal; the memory for storing executable program code; the processor reading by Executing program code stored in the memory to execute a program corresponding to the executable program code for performing the following steps:
通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播;Returning to the desktop broadcast by the widget monitoring system hidden in the system desktop;
当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串;When the returning desktop broadcast sent by the system is monitored, the content in the system pasteboard is read, and it is determined whether the content of the pasteboard includes a character string;
当所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;When the content of the pasteboard includes a character string, determining whether the string includes a webpage link;
当所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。When the webpage link is included in the string, the webpage link is extracted from the string and the system browser is invoked to open the webpage link.
第四方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品中的指令处理器执行时,执行一种网页链接访问方法,所述方法包括:通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播;当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串;当所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;当所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。In a fourth aspect, an embodiment of the present application provides a computer program product, when executed by an instruction processor in the computer program product, performing a webpage link access method, where the method includes: by using a window hidden in a system desktop Returning to the desktop broadcast sent by the component monitoring system; when listening to the returning desktop broadcast sent by the system, reading the content in the system pasteboard, and determining whether the content of the pasteboard contains a character string; when the content of the pasteboard When the string is included, it is determined whether the string contains a webpage link; when the string includes the webpage link, the webpage link is extracted from the string, and the system browser is called to open the webpage link. .
第五方面,本申请实施例提供一种存储介质,当所述存储介质中的指令由移动终端的处理器被执行时,使得移动终端能够执行一种网页链接访问方法,所述方法包括:通过隐藏于 系统桌面的窗口小部件监听系统发出的返回桌面广播;当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串;当所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;当所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。In a fifth aspect, an embodiment of the present application provides a storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, to enable the mobile terminal to perform a webpage link access method, where the method includes: Hidden in The desktop desktop widget listens to the returning desktop broadcast sent by the system; when listening to the returning desktop broadcast sent by the system, reads the content in the system pasteboard, and determines whether the content of the pasteboard contains a string; When the content of the pasteboard includes a character string, it is determined whether the webpage link is included in the character string; when the webpage link is included in the string, the webpage link is extracted from the string, and the system browser is invoked Open the web page link.
本申请实施例提供的网页链接访问方法、装置及移动终端,通过在系统桌面设置隐藏的窗口小部件,并通过所述窗口小部件监听终端系统发出的返回桌面广播,在监听到所述返回桌面广播时,自动读取粘贴板中的内容,并在判断所述内容中存在网页链接时,提取所述网页链接,并调用系统浏览器打开所述网页链接,从而可以有效简化网页链接访问时的操作步骤,提升所述移动终端的用户体验。The webpage link access method, device and mobile terminal provided by the embodiment of the present application monitor the returning desktop by setting a hidden widget on the system desktop and listening to the returning desktop broadcast sent by the widget through the widget During the broadcast, the content in the pasteboard is automatically read, and when it is determined that the webpage link exists in the content, the webpage link is extracted, and the webpage link is opened by calling the system browser, thereby effectively simplifying the webpage link access. The operation step is to improve the user experience of the mobile terminal.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本申请实施例提供的网页链接访问方法的第一流程示意图;1 is a first schematic flowchart of a webpage link access method provided by an embodiment of the present application;
图2是本申请实施例提供的网页链接访问方法的第二流程示意图;2 is a second schematic flowchart of a webpage link access method provided by an embodiment of the present application;
图3是本申请实施例提供的网页链接访问方法的第三流程示意图;3 is a third schematic flowchart of a webpage link access method provided by an embodiment of the present application;
图4是本申请实施例提供的网页链接访问装置的第一结构示意图;4 is a schematic diagram of a first structure of a webpage link access apparatus according to an embodiment of the present application;
图5是本申请实施例提供的网页链接访问装置的第二结构示意图;FIG. 5 is a second schematic structural diagram of a webpage link access apparatus according to an embodiment of the present application; FIG.
图6是本申请实施例提供的移动终端的结构示意图。FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
具体实施方式detailed description
下面结合附图对本申请实施例进行详细描述。The embodiments of the present application are described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be understood that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
请参阅图1,本申请第一实施例提供一种网页链接访问方法,包括:Referring to FIG. 1, a first embodiment of the present application provides a webpage link access method, including:
步骤S12:通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播; Step S12: returning the desktop broadcast by the widget monitoring system hidden in the system desktop;
步骤S14:当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串;Step S14: When listening to the return desktop broadcast sent by the system, reading the content in the system pasteboard, and determining whether the content of the pasteboard includes a character string;
步骤S16:当所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;Step S16: When the content of the pasteboard includes a character string, determine whether the string includes a webpage link;
步骤S18:当所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。Step S18: When the webpage link is included in the character string, the webpage link is extracted from the character string, and the web browser is invoked to open the webpage link.
本实施例中,所述窗口小部件可以对系统发出的返回桌面广播进行实时监听。当系统执行返回桌面操作后,系统会发出返回桌面广播。所述窗口小部件在接收到系统发出的所述返回桌面广播后,从系统的粘贴板中读取当前复制的内容,并判断所述粘贴板的内容中是否包含字符串。当所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接。若所述字符串中包含网页链接,则从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接,从而实现粘贴板中的网页链接的自动识别和访问,简化网页链接访问时的操作步骤。In this embodiment, the widget can perform real-time monitoring on the returned desktop broadcast sent by the system. When the system performs a return to desktop operation, the system will issue a return desktop broadcast. After receiving the returning desktop broadcast sent by the system, the widget reads the currently copied content from the pasteboard of the system, and determines whether the content of the pasteboard includes a character string. When the content of the pasteboard includes a character string, it is determined whether the webpage link is included in the character string. If the webpage link is included in the character string, extracting the webpage link from the character string, and calling a system browser to open the webpage link, thereby realizing automatic identification and access of the webpage link in the pasteboard, simplifying the webpage The steps when linking access.
请参阅图2,结合第一实施例,所述通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播之前,所述方法还包括:Referring to FIG. 2, in combination with the first embodiment, the method further includes: before the returning to the desktop broadcast by the widget monitoring system hidden in the system desktop, the method further includes:
步骤S11:建立窗口小部件,并将所述窗口小部件隐藏于系统桌面。Step S11: Create a widget and hide the widget on the system desktop.
在本实施例中,所述窗口小部件为widget小部件。所述widget小部件在系统桌面上不进行布局绘制,即系统桌面上不显示所述widget小部件的图形界面,只是活动于系统进程中,从而达到隐藏于系统桌面的效果。其中,所述widget小部件中包含用于接收系统发出的返回桌面广播的广播接收函数和用于读取系统粘贴板的内容读取函数。所述广播接收函数始终活动与系统进程中,并实时监听系统是否发出返回桌面广播。In this embodiment, the widget is a widget widget. The widget widget does not perform layout drawing on the system desktop, that is, the graphical interface of the widget widget is not displayed on the system desktop, but is active in the system process, thereby achieving the effect of being hidden on the system desktop. The widget widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading a system pasteboard. The broadcast receiving function is always active in the system process and monitors in real time whether the system issues a return desktop broadcast.
在一种实施方式中,所述当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,包括:In an embodiment, when the returning desktop broadcast sent by the system is monitored, the content in the system pasteboard is read, including:
当所述广播接收函数接收到系统发出的返回桌面广播时,调用所述内容读取函数,并通过所述内容读取函数读取系统粘贴板中的内容。When the broadcast receiving function receives the return desktop broadcast issued by the system, the content read function is called, and the content in the system pasteboard is read by the content read function.
可以理解,若所述内容读取函数读取系统粘贴板中的内容为空,则结束当前监听流程,并重新启动下一轮的返回桌面广播监听。若所述内容读取函数读取系统粘贴板中的内容不为空,则判断所述粘贴板的内容中是否包含字符串,若所述粘贴板的内容中不包含字符串,则结束当前监听流程,并重新启动下一轮的返回桌面广播监听;若所述粘贴板的内容中包含字符串,则从所述粘贴板的内容中提取出所述字符串,以便进一步判断所述字符串中是否包含网页链接。 It can be understood that if the content in the content reading function reading system pasteboard is empty, the current listening process is ended, and the next round of returning desktop broadcast monitoring is restarted. If the content in the content reading function reading system pasteboard is not empty, it is determined whether the content of the pasteboard includes a character string, and if the content of the pasteboard does not include a character string, the current monitoring is ended. Flowing, and restarting the next round of returning desktop broadcast monitoring; if the content of the pasteboard includes a character string, extracting the character string from the content of the pasteboard to further determine the string Whether to include web links.
可以理解,所述系统粘贴板中的内容可以只包括网页链接,也可以同时包括非网页链接的文字内容和网页链接。对于仅包含网页链接的内容,包含的网页链接即为读取粘贴板中的内容得到的网页链接,对于同时包含网页链接以及非网页链接的文字的内容,则需要进一步从中提取出网页链接。这样,用户在复制网页链接时,可以无需绝对精确地选取网页链接后进行复制,只需在选取的复制内容中包含有网页链接即可,从而可以有效节约选取网页链接所需的时间。It can be understood that the content in the system pasteboard may include only webpage links, and may also include text content and webpage links of non-webpage links. For content that only contains webpage links, the included webpage link is a webpage link obtained by reading the content in the pasteboard. For the content of the text including both the webpage link and the non-webpage link, the webpage link needs to be further extracted. In this way, when the user copies the webpage link, the webpage link can be copied without absolute precision, and the webpage link can be included in the selected copy content, thereby effectively saving the time required for selecting the webpage link.
请参阅图3,在一种实施方式中,所述判断所述字符串中是否包含网页链接,包括:Referring to FIG. 3, in an implementation manner, the determining whether the string includes a webpage link includes:
步骤S161:从所述粘贴板的内容中包含的字符串中提取英文字符串;Step S161: extract an English character string from a character string included in the content of the pasteboard;
步骤S163:判断所述英文字符串的格式是否与网页链接格式匹配;Step S163: determining whether the format of the English character string matches the webpage link format;
步骤S165:若所述英文字符串的格式与网页链接格式匹配,则判断所述字符串中包含网页链接。Step S165: If the format of the English character string matches the webpage link format, it is determined that the character string includes a webpage link.
具体地,由于所述粘贴板的内容可能包含中文、英文、特殊符号等,需要进行分析以确定其中是否包含网页链接。由于网页链接通常为由英文数字和特殊符号组成的字符串,因此,首先通过从所述粘贴板的内容中包含的字符串中提取英文字符串,进而通过判断所述英文字符串的格式是否与网页链接格式匹配来判断所述粘贴板的内容中是否包含网页链接。可以理解,从所述粘贴板的内容中包含的字符串中提取英文字符串可以包含连续的英文、数字和特殊字符中的一种或多种的组合。其中,所述判断所述英文字符串的格式是否与网页链接格式匹配可以时通过正则表达式来判断。Specifically, since the content of the pasteboard may include Chinese, English, special symbols, etc., analysis is needed to determine whether a webpage link is included therein. Since the webpage link is usually a character string composed of an English number and a special symbol, first, by extracting an English character string from a character string included in the content of the pasteboard, it is determined whether the format of the English character string is The webpage link format matches to determine whether the webpage link is included in the content of the pasteboard. It can be understood that extracting an English character string from a character string contained in the content of the pasteboard may include a combination of one or more of consecutive English, numbers, and special characters. The determining whether the format of the English character string matches the webpage link format may be determined by a regular expression.
在一种实施方式中,所述从所述字符串中提取所述网页链接之后,调用系统浏览器打开所述网页链接之前,所述方法还包括:In an embodiment, after the extracting the webpage link from the string, before calling the system browser to open the webpage link, the method further includes:
通过提示窗口提示用户是否需要打开所述网页链接;Prompting the user through the prompt window whether the webpage link needs to be opened;
通过所述提示窗口接收用户同意打开所述网页链接的指令。An instruction to the user agreeing to open the webpage link is received through the prompt window.
可以理解,当用户从一个应用中复制包含网页链接的内容并返回桌面后,可能并不一定是要去浏览器中访问所述网页链接,也可能是要将所述复制的内容通过即时通信软件分享出去。因此,在从所述字符串中提取到所述网页链接之后,调用系统浏览器打开所述网页链接之前,还可以通过提示窗口提示用户是否需要打开所述网页链接。其中,所述提示窗口可以包括供用户选择是否要打开所述网页链接的选项。当接收到用户通过所述提示窗口输入的同意打开所述网页链接的指令时,进而调用系统浏览器打开所述网页链接;当接收到用户通过所述提示窗口输入的拒绝打开所述网页链接的指令时,则结束当前监听流程,并重新启动下一轮的返回桌面广播监听。 It can be understood that when the user copies the content including the webpage link from an application and returns to the desktop, the user may not necessarily access the webpage link in the browser, or may use the instant messaging software to copy the content. Share it out. Therefore, after the webpage link is extracted from the character string, before the system browser is called to open the webpage link, the prompting window may also prompt the user whether the webpage link needs to be opened. Wherein, the prompt window may include an option for the user to select whether to open the webpage link. When receiving an instruction input by the user through the prompt window to open the webpage link, the system browser is further invoked to open the webpage link; when the user receives the rejection through the prompt window, the webpage link is opened. When the instruction is executed, the current listening process is ended, and the next round of returning to the desktop broadcast monitor is restarted.
请参阅图4,本申请第二实施例提供一种网页链接访问装置20,包括:Referring to FIG. 4, a second embodiment of the present application provides a webpage link access apparatus 20, including:
广播监听模块22,用于通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播;a broadcast monitoring module 22, configured to return a desktop broadcast by a widget monitoring system hidden in a system desktop;
内容读取模块24,用于在监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串;The content reading module 24 is configured to read the content in the system pasteboard when listening to the return desktop broadcast sent by the system, and determine whether the content of the pasteboard includes a character string;
链接识别模块26,用于在所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;The link identification module 26 is configured to determine, when the character string of the pasteboard includes a character string, whether the webpage link is included in the character string;
链接提取模块28,用于在所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。The link extraction module 28 is configured to extract the webpage link from the character string when the webpage link is included in the character string, and invoke the system browser to open the webpage link.
请参阅图5,在一种实施方式中,提供一种网页链接访问装置20’,其相对于所述网页链接访问装置20,还包括:Referring to FIG. 5, in an embodiment, a webpage link accessing device 20' is provided, which further includes:
部件建立模块21,用于建立窗口小部件,并将所述窗口小部件隐藏于系统桌面;a component building module 21, configured to create a widget and hide the widget on a system desktop;
其中,所述窗口小部件中包含用于接收系统发出的返回桌面广播的广播接收函数和用于读取系统粘贴板的内容读取函数。The widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
在一种实施方式中,所述内容读取模块24,还用于在所述广播接收函数接收到系统发出的返回桌面广播时,调用所述内容读取函数,并通过所述内容读取函数读取系统粘贴板中的内容。In an embodiment, the content reading module 24 is further configured to: when the broadcast receiving function receives a return desktop broadcast sent by the system, invoke the content reading function, and pass the content reading function. Read the contents of the system pasteboard.
请参阅图5,在一种实施方式中,所述链接识别模块26包括:Referring to FIG. 5, in an embodiment, the link identification module 26 includes:
字符串提取子模块261,用于从所述粘贴板的内容中包含的字符串中提取英文字符串;a string extraction submodule 261, configured to extract an English character string from a string included in the content of the pasteboard;
网页链接匹配子模块263,用于判断所述英文字符串的格式是否与网页链接格式匹配;并在所述英文字符串的格式与网页链接格式匹配时,判断所述字符串中包含网页链接。The webpage link matching sub-module 263 is configured to determine whether the format of the English character string matches the webpage link format; and when the format of the English character string matches the webpage link format, determine that the string includes the webpage link.
请参阅图5,在一种实施方式中,所述网页链接访问装置20’还包括:Referring to FIG. 5, in an embodiment, the webpage link accessing device 20' further includes:
用户提示模块29,用于通过提示窗口提示用户是否需要打开所述网页链接;并通过所述提示窗口接收用户同意打开所述网页链接的指令。The user prompting module 29 is configured to prompt the user whether to open the webpage link through the prompt window, and receive an instruction by the user to agree to open the webpage link through the prompting window.
可以理解,本实施例中所述的网页链接访问装置20、20’的各个模块的功能及其具体实现还可以参照图1-图3所示方法实施例中的相关描述,此处不再赘述。It can be understood that the functions of the modules of the webpage link accessing device 20, 20' described in the embodiment and the specific implementation thereof can also refer to the related description in the method embodiment shown in FIG. 1 to FIG. 3, and details are not described herein again. .
请参阅图6,本申请第三实施例提供一种移动终端30,包括:壳体(图未示)、处理器31、存储器33、电路板(图未示)和电源电路35,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器31和所述存储器33设置在所述电路板上,并相互电性连接;所述电源电路35,用于为所述移动终端30的各个电路或器件供电;所述存储器33用于存储可 执行程序代码;所述处理器31通过读取所述存储器33中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下操作:Referring to FIG. 6, a third embodiment of the present invention provides a mobile terminal 30, including: a casing (not shown), a processor 31, a memory 33, a circuit board (not shown), and a power circuit 35. The circuit board is disposed inside the space enclosed by the casing, and the processor 31 and the memory 33 are disposed on the circuit board and electrically connected to each other; the power circuit 35 is configured to Each circuit or device of the mobile terminal 30 is powered; the memory 33 is used for storage The program code is executed by the processor 31 by executing the executable program code stored in the memory 33 to execute a program corresponding to the executable program code for performing the following operations:
通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播;Returning to the desktop broadcast by the widget monitoring system hidden in the system desktop;
当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串;When the returning desktop broadcast sent by the system is monitored, the content in the system pasteboard is read, and it is determined whether the content of the pasteboard includes a character string;
当所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;When the content of the pasteboard includes a character string, determining whether the string includes a webpage link;
当所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。When the webpage link is included in the string, the webpage link is extracted from the string and the system browser is invoked to open the webpage link.
在一种实施方式中,所述通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播之前,所述操作还包括:In an embodiment, before the returning to the desktop broadcast by the widget monitoring system hidden in the system desktop, the operation further includes:
建立窗口小部件,并将所述窗口小部件隐藏于系统桌面;Create a widget and hide the widget on the system desktop;
其中,所述窗口小部件中包含用于接收系统发出的返回桌面广播的广播接收函数和用于读取系统粘贴板的内容读取函数。The widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
在一种实施方式中,所述当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,包括:In an embodiment, when the returning desktop broadcast sent by the system is monitored, the content in the system pasteboard is read, including:
当所述广播接收函数接收到系统发出的返回桌面广播时,调用所述内容读取函数,并通过所述内容读取函数读取系统粘贴板中的内容。When the broadcast receiving function receives the return desktop broadcast issued by the system, the content read function is called, and the content in the system pasteboard is read by the content read function.
在一种实施方式中,所述判断所述字符串中是否包含网页链接,包括:In an implementation manner, the determining whether the string includes a webpage link includes:
从所述粘贴板的内容中包含的字符串中提取英文字符串;Extracting an English character string from a string contained in the content of the pasteboard;
判断所述英文字符串的格式是否与网页链接格式匹配;Determining whether the format of the English string matches the webpage link format;
若所述英文字符串的格式与网页链接格式匹配,则判断所述字符串中包含网页链接。If the format of the English string matches the webpage link format, it is determined that the string includes a webpage link.
在一种实施方式中,所述从所述字符串中提取所述网页链接之后,调用系统浏览器打开所述网页链接之前,所述操作还包括:In an embodiment, after the extracting the webpage link from the string, before invoking the system browser to open the webpage link, the operation further includes:
通过提示窗口提示用户是否需要打开所述网页链接;Prompting the user through the prompt window whether the webpage link needs to be opened;
通过所述提示窗口接收用户同意打开所述网页链接的指令。An instruction to the user agreeing to open the webpage link is received through the prompt window.
可以理解,所述处理器31执行的上述操作的每个步骤及其具体实现还可以参照图1-图3所示方法实施例中的相关描述,此处不再赘述。It can be understood that each step of the foregoing operations performed by the processor 31 and its specific implementation may also refer to related descriptions in the method embodiments shown in FIG. 1 to FIG. 3, and details are not described herein again.
所述网页链接访问方法、装置及移动终端通过在监听到终端系统发出的返回桌面广播时,自动读取粘贴板中的内容,并在判断所述内容中存在网页链接时,提取所述网页链接, 并调用系统浏览器打开所述网页链接,从而可以有效简化网页链接访问时的操作步骤,提升终端的用户体验。The webpage link access method, device, and mobile terminal automatically read the content in the pasteboard when listening to the return desktop broadcast sent by the terminal system, and extract the webpage link when determining that there is a webpage link in the content , And calling the system browser to open the webpage link, thereby effectively simplifying the operation steps of the webpage link access and improving the user experience of the terminal.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。 The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any change or replacement that can be easily conceived by those skilled in the art within the technical scope disclosed by the present application is All should be covered by the scope of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (12)

  1. 一种网页链接访问方法,其特征在于,所述方法包括:A webpage link access method, the method comprising:
    通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播;Returning to the desktop broadcast by the widget monitoring system hidden in the system desktop;
    当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串;When the returning desktop broadcast sent by the system is monitored, the content in the system pasteboard is read, and it is determined whether the content of the pasteboard includes a character string;
    当所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;When the content of the pasteboard includes a character string, determining whether the string includes a webpage link;
    当所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。When the webpage link is included in the string, the webpage link is extracted from the string and the system browser is invoked to open the webpage link.
  2. 如权利要求1所述的方法,其特征在于,所述通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播之前,所述方法还包括:The method of claim 1, wherein the method further comprises: before the returning to the desktop broadcast by the widget listening system hidden in the system desktop, the method further comprising:
    建立窗口小部件,并将所述窗口小部件隐藏于系统桌面;Create a widget and hide the widget on the system desktop;
    其中,所述窗口小部件中包含用于接收系统发出的返回桌面广播的广播接收函数和用于读取系统粘贴板的内容读取函数。The widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
  3. 如权利要求2所述的方法,其特征在于,所述当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,包括:The method according to claim 2, wherein when the returning desktop broadcast sent by the system is monitored, the content in the system pasteboard is read, including:
    当所述广播接收函数接收到系统发出的返回桌面广播时,调用所述内容读取函数,并通过所述内容读取函数读取系统粘贴板中的内容。When the broadcast receiving function receives the return desktop broadcast issued by the system, the content read function is called, and the content in the system pasteboard is read by the content read function.
  4. 如权利要求1-3任意一项所述的方法,其特征在于,所述判断所述字符串中是否包含网页链接,包括:The method according to any one of claims 1 to 3, wherein the determining whether the string includes a webpage link comprises:
    从所述粘贴板的内容中包含的字符串中提取英文字符串;Extracting an English character string from a string contained in the content of the pasteboard;
    判断所述英文字符串的格式是否与网页链接格式匹配;Determining whether the format of the English string matches the webpage link format;
    若所述英文字符串的格式与网页链接格式匹配,则判断所述字符串中包含网页链接。If the format of the English string matches the webpage link format, it is determined that the string includes a webpage link.
  5. 如权利要求1-3任意一项所述的方法,其特征在于,所述从所述字符串中提取所述网页链接之后,调用系统浏览器打开所述网页链接之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein, after the extracting the webpage link from the character string, before calling the system browser to open the webpage link, the method further comprises:
    通过提示窗口提示用户是否需要打开所述网页链接;Prompting the user through the prompt window whether the webpage link needs to be opened;
    通过所述提示窗口接收用户同意打开所述网页链接的指令。An instruction to the user agreeing to open the webpage link is received through the prompt window.
  6. 一种移动终端,其特征在于,包括:壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电 路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:A mobile terminal, comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the Memory is set in the electricity a power circuit for supplying power to respective circuits or devices of the mobile terminal; the memory for storing executable program code; the processor reading an executable program stored in the memory The code runs a program corresponding to the executable program code for performing the following steps:
    通过隐藏于系统桌面的窗口小部件监听系统发出的返回桌面广播;Returning to the desktop broadcast by the widget monitoring system hidden in the system desktop;
    当监听到系统发出的返回桌面广播时,读取系统粘贴板中的内容,并判断所述粘贴板的内容中是否包含字符串;When the returning desktop broadcast sent by the system is monitored, the content in the system pasteboard is read, and it is determined whether the content of the pasteboard includes a character string;
    当所述粘贴板的内容中包含字符串时,判断所述字符串中是否包含网页链接;When the content of the pasteboard includes a character string, determining whether the string includes a webpage link;
    当所述字符串中包含网页链接时,从所述字符串中提取所述网页链接,并调用系统浏览器打开所述网页链接。When the webpage link is included in the string, the webpage link is extracted from the string and the system browser is invoked to open the webpage link.
  7. 如权利要求6所述的移动终端,其特征在于,所述处理器还用于:The mobile terminal of claim 6, wherein the processor is further configured to:
    建立窗口小部件,并将所述窗口小部件隐藏于系统桌面;Create a widget and hide the widget on the system desktop;
    其中,所述窗口小部件中包含用于接收系统发出的返回桌面广播的广播接收函数和用于读取系统粘贴板的内容读取函数。The widget includes a broadcast receiving function for receiving a return desktop broadcast issued by the system and a content reading function for reading the system pasteboard.
  8. 如权利要求7所述的移动终端,其特征在于,所述处理器还用于:The mobile terminal of claim 7, wherein the processor is further configured to:
    当所述广播接收函数接收到系统发出的返回桌面广播时,调用所述内容读取函数,并通过所述内容读取函数读取系统粘贴板中的内容。When the broadcast receiving function receives the return desktop broadcast issued by the system, the content read function is called, and the content in the system pasteboard is read by the content read function.
  9. 如权利要求6-8任意一项所述的移动终端,其特征在于,所述处理器还用于:The mobile terminal according to any one of claims 6-8, wherein the processor is further configured to:
    从所述粘贴板的内容中包含的字符串中提取英文字符串;Extracting an English character string from a string contained in the content of the pasteboard;
    判断所述英文字符串的格式是否与网页链接格式匹配;Determining whether the format of the English string matches the webpage link format;
    若所述英文字符串的格式与网页链接格式匹配,则判断所述字符串中包含网页链接。If the format of the English string matches the webpage link format, it is determined that the string includes a webpage link.
  10. 如权利要求6-8任意一项所述的移动终端,其特征在于,所述处理器还用于:The mobile terminal according to any one of claims 6-8, wherein the processor is further configured to:
    通过提示窗口提示用户是否需要打开所述网页链接;Prompting the user through the prompt window whether the webpage link needs to be opened;
    通过所述提示窗口接收用户同意打开所述网页链接的指令。An instruction to the user agreeing to open the webpage link is received through the prompt window.
  11. 一种计算机可读存储介质,具有存储于其中的指令,当所述指令被移动终端的处理器执行时,所述移动终端执行如权利要求1-5任一项所述的网页链接访问方法。A computer readable storage medium having instructions stored therein, the mobile terminal performing the web page link access method of any of claims 1-5 when the instructions are executed by a processor of a mobile terminal.
  12. 一种计算机程序,当其在处理器执行时,执行如权利要求1-5任一项所述的网页链接访问方法。 A computer program that, when executed by a processor, performs the web page link access method of any of claims 1-5.
PCT/CN2017/087631 2016-06-28 2017-06-08 Web page link access method and device, and mobile terminal WO2018001068A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610490574.0 2016-06-28
CN201610490574.0A CN106202217B (en) 2016-06-28 2016-06-28 Webpage link access method and device and mobile terminal

Publications (1)

Publication Number Publication Date
WO2018001068A1 true WO2018001068A1 (en) 2018-01-04

Family

ID=57460999

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087631 WO2018001068A1 (en) 2016-06-28 2017-06-08 Web page link access method and device, and mobile terminal

Country Status (2)

Country Link
CN (1) CN106202217B (en)
WO (1) WO2018001068A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221614A (en) * 2020-01-03 2020-06-02 北京小米移动软件有限公司 Information processing method and device, electronic equipment and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202217B (en) * 2016-06-28 2019-12-03 北京金山安全软件有限公司 Webpage link access method and device and mobile terminal
CN108509454B (en) * 2017-02-27 2022-03-08 阿里巴巴集团控股有限公司 Operation method of character string and related device
CN110413169B (en) * 2019-07-24 2021-11-23 北京小米移动软件有限公司 Information display method, device and medium
CN111897469A (en) * 2020-07-06 2020-11-06 上海泛微网络科技股份有限公司 Real-time data processing method, device, equipment and storage medium
CN114168031B (en) * 2022-02-11 2023-03-31 荣耀终端有限公司 Display optimization method and device for hole digging screen and storage medium
CN116012058A (en) * 2023-02-05 2023-04-25 李志军 Advertisement method and system for paid users

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036019A (en) * 2014-06-25 2014-09-10 北京奇虎科技有限公司 Method and device for opening webpage links
CN104899269A (en) * 2015-05-26 2015-09-09 北京金山安全软件有限公司 Method and device for accessing website link
US20150324853A1 (en) * 2014-05-06 2015-11-12 Derek Damiano Release Date Notification System
CN105159787A (en) * 2015-08-17 2015-12-16 北京京东尚科信息技术有限公司 Webpage action processing method and apparatus
CN106202217A (en) * 2016-06-28 2016-12-07 北京金山安全软件有限公司 Webpage link access method and device and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496497B2 (en) * 2003-12-18 2009-02-24 Taiwan Semiconductor Manufacturing Co., Ltd. Method and system for selecting web site home page by extracting site language cookie stored in an access device to identify directional information item
JP2009171049A (en) * 2008-01-11 2009-07-30 Ict Solutions:Kk Internet television apparatus
CN104346027A (en) * 2013-07-31 2015-02-11 腾讯科技(深圳)有限公司 Website address input method and device
CN104035986A (en) * 2014-05-30 2014-09-10 北京金山网络科技有限公司 Method and device for opening URL and method and device for searching for keywords

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150324853A1 (en) * 2014-05-06 2015-11-12 Derek Damiano Release Date Notification System
CN104036019A (en) * 2014-06-25 2014-09-10 北京奇虎科技有限公司 Method and device for opening webpage links
CN104899269A (en) * 2015-05-26 2015-09-09 北京金山安全软件有限公司 Method and device for accessing website link
CN105159787A (en) * 2015-08-17 2015-12-16 北京京东尚科信息技术有限公司 Webpage action processing method and apparatus
CN106202217A (en) * 2016-06-28 2016-12-07 北京金山安全软件有限公司 Webpage link access method and device and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221614A (en) * 2020-01-03 2020-06-02 北京小米移动软件有限公司 Information processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106202217A (en) 2016-12-07
CN106202217B (en) 2019-12-03

Similar Documents

Publication Publication Date Title
WO2018001068A1 (en) Web page link access method and device, and mobile terminal
US11176141B2 (en) Preserving emotion of user input
US10657572B2 (en) Method and system for automatically generating a response to a user query
CN113031946B (en) Method and device for rendering page component
WO2019042349A1 (en) Translation method, mobile terminal and storage device of operating system framework
EP3839799A1 (en) Method, apparatus, electronic device and readable storage medium for translation
CN106663123B (en) Comment-centric news reader
CN109753644B (en) Rich text editing method and device, mobile terminal and storage medium
JP2022091904A (en) Mini program page skin changeover method, device, and electronic apparatus
WO2016155643A1 (en) Input-based candidate word display method and device
CN113392660A (en) Page translation method and device, electronic equipment and storage medium
CN113626441A (en) Text management method, device and equipment based on scanning equipment and storage medium
CN105917307A (en) User interface framework
US11126410B2 (en) Method and apparatus for building pages, apparatus and non-volatile computer storage medium
CN113835835B (en) Method, device and computer readable storage medium for creating consistency group
CN107168627B (en) Text editing method and device for touch screen
US10963641B2 (en) Multi-lingual tokenization of documents and associated queries
WO2015074569A1 (en) Method and apparatus for displaying transmission status of cloud documents
JP6282252B2 (en) Method and system for providing additional information with list type user interface, and recording medium
CN109783134B (en) Front-end page configuration method and device and electronic equipment
US20190303364A1 (en) Searching method and apparatus, device and non-volatile computer storage medium
US9292624B2 (en) String generation tool
US20160034686A1 (en) Password configuration and login
CN112837398A (en) Text annotation method and device, electronic equipment and storage medium
CN110018828A (en) Source code inspection method, device and terminal device

Legal Events

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

Ref document number: 17819065

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 17819065

Country of ref document: EP

Kind code of ref document: A1