[go: up one dir, main page]

CN104063246A - Method and device used for loading toolbar - Google Patents

Method and device used for loading toolbar Download PDF

Info

Publication number
CN104063246A
CN104063246A CN201410295716.9A CN201410295716A CN104063246A CN 104063246 A CN104063246 A CN 104063246A CN 201410295716 A CN201410295716 A CN 201410295716A CN 104063246 A CN104063246 A CN 104063246A
Authority
CN
China
Prior art keywords
browser
page
kernel
information
loading
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.)
Granted
Application number
CN201410295716.9A
Other languages
Chinese (zh)
Other versions
CN104063246B (en
Inventor
王有存
袁威
李林
张菊元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 360 Zhiling Technology Co ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410295716.9A priority Critical patent/CN104063246B/en
Publication of CN104063246A publication Critical patent/CN104063246A/en
Application granted granted Critical
Publication of CN104063246B publication Critical patent/CN104063246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种加载工具条的方法及装置,其中,所述方法包括:当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知;在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至第三方应用独立于浏览器的应用程序;接收所述第三方应用独立于浏览器的应用程序返回的调用请求;响应所述调用请求,调用动态链接库,并通过所述动态链接库在所述IE内核的浏览器中加载设定的工具条。通过本发明解决了在登陆选项中输入账号密码进行登陆,操作繁琐、浪费时间,效率低,用户体验较差的问题。

The invention discloses a method and device for loading a tool bar, wherein the method includes: when the current page of the browser of the IE kernel triggers a page loading event, generating a message notification; Said message notification is sent to a third-party application independent of the browser through the setting interface in the browser of the IE kernel; receiving the call request returned by the third-party application independent of the browser application; responding to said Calling the request, calling the dynamic link library, and loading the set toolbar in the browser with the IE kernel through the dynamic link library. The present invention solves the problems of cumbersome operation, time-wasting, low efficiency and poor user experience when inputting an account password in a login option to log in.

Description

一种加载工具条的方法及装置A method and device for loading a toolbar

技术领域technical field

本发明涉及互联网技术领域,具体涉及一种加载工具条的方法和装置。The invention relates to the technical field of the Internet, in particular to a method and device for loading a toolbar.

背景技术Background technique

浏览器是指可以显示网页服务器或者文件系统的HTML文件内容,并让用户与这些文件交互的一种软件。网页浏览器主要通过HTTP协议与网页服务器交互并获取网页,这些网页由URL指定,文件格式通常为HTML,并由MIME(Multipurpose Internet Mail Extensions,多用途互联网邮件扩展)在HTTP协议中指明。一个网页中可以包括多个文档,每个文档都是分别从服务器获取的。大部分的浏览器本身支持除了HTML之外的广泛的格式,例如:JPEG、PNG、GIF等图像格式,并且能够扩展支持众多的插件(plug-ins)。另外,许多浏览器还支持其他的URL类型及其相应的协议,例如:FTP、Gopher、HTTPS(HTTP协议的加密版本)。HTTP内容类型和URL协议规范允许网页设计者在网页中嵌入图像、动画、视频、声音、流媒体等。个人电脑上常见的网页浏览器包括微软的Internet Explorer、Mozilla的Firefox、Apple的Safari、Opera、Google Chrome、Green Browser、360安全浏览器、搜狗高速浏览器、天天浏览器、腾讯TT浏览器、傲游浏览器、百度浏览器、腾讯QQ浏览器等,浏览器是最经常使用到的客户端程序。A browser refers to a software that can display the content of HTML files on a web server or file system and allow users to interact with these files. The web browser mainly interacts with the web server and obtains the web pages through the HTTP protocol. These web pages are specified by URL, and the file format is usually HTML, and is specified in the HTTP protocol by MIME (Multipurpose Internet Mail Extensions, Multipurpose Internet Mail Extensions). A web page may include multiple documents, and each document is obtained from the server separately. Most browsers natively support a wide range of formats except HTML, such as image formats such as JPEG, PNG, and GIF, and can expand and support numerous plug-ins (plug-ins). In addition, many browsers also support other URL types and their corresponding protocols, for example: FTP, Gopher, HTTPS (encrypted version of the HTTP protocol). The HTTP content type and URL protocol specifications allow web page designers to embed images, animations, videos, sounds, streaming media, etc. in web pages. Common web browsers on personal computers include Microsoft’s Internet Explorer, Mozilla’s Firefox, Apple’s Safari, Opera, Google Chrome, Green Browser, 360 Safe Browser, Sogou High Speed Browser, Tiantian Browser, Tencent TT Browser, Maxthon Browser, Baidu browser, Tencent QQ browser, etc., the browser is the most frequently used client program.

用户在使用浏览器访问页面时,与页面之间的交互越来越多,页面向用户提供的交互选项也越来越多。但是,越来越多的交互选项也带来了新的问题:用户需要花费大量的时间从页面中繁多的交互选项中查找自己需要的交互选项。如,用户需要在页面中登录自己的账号,则需要遍历整个页面,从中查找到登录选项在页面中的位置,进而在登陆选项中输入账号密码进行登陆,操作繁琐、浪费时间,效率低,用户体验较差。When a user visits a page with a browser, there are more and more interactions with the page, and the page provides more and more interaction options for the user. However, more and more interaction options also bring new problems: users need to spend a lot of time to find the interaction options they need from the various interaction options on the page. For example, if the user needs to log in his account on the page, he needs to traverse the entire page to find the position of the login option on the page, and then enter the account password in the login option to log in. The operation is cumbersome, time-consuming, and inefficient. The experience is poor.

进一步地,不同页面的页面布局也不完全相同,相同的一个交互选项在不同页面中的位置可能是不同的。如,在页面A中登陆选项在页面A的左上侧,在页面B中,登陆选项可能就位于页面B的右下方,因此,进一步增加了用户的查找难度,查找效率低。Furthermore, the page layouts of different pages are not completely the same, and the positions of the same interaction option on different pages may be different. For example, on page A, the login option is on the upper left side of page A, and on page B, the login option may be located on the lower right side of page B. Therefore, the search difficulty for the user is further increased, and the search efficiency is low.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种加载工具条的方法和装置。In view of the above problems, the present invention is proposed to provide a method and device for loading a tool bar that overcome the above problems or at least partly solve the above problems.

依据本发明的一个方面,提供了一种加载工具条的方法,包括:According to one aspect of the present invention, a method for loading a toolbar is provided, including:

当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知;其中,所述消息通知中携带有所述页面加载事件信息;When the current page of the browser of the IE kernel triggers the page loading event, a message notification is generated; wherein, the page loading event information is carried in the message notification;

在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序;Under the instruction of the preset function, the message notification is sent to the application program independent of the browser through the setting interface in the browser of the IE kernel;

接收所述独立于浏览器的应用程序返回的调用请求;receiving the call request returned by the browser-independent application;

响应所述调用请求,调用动态链接库,并通过所述动态链接库在所述IE内核的浏览器中加载设定的工具条;Respond to the calling request, call the dynamic link library, and load the toolbar set in the browser of the IE kernel by the dynamic link library;

其中,所述预置函数和所述动态链接库由所述独立于浏览器的应用程序通过浏览器辅助对象注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述动态链接库。Wherein, the preset function and the dynamic link library are injected into the browser of the IE core by the browser-independent application program through the browser auxiliary object, so that the browser of the IE core acquires and loads the The preset function and the dynamic link library.

根据本发明的另一方面,提供了一种加载工具条的方法,包括:According to another aspect of the present invention, a method for loading a toolbar is provided, including:

接收IE内核的浏览器在预置函数的指示下通过设定接口发送的、所述IE内核的浏览器当前页面的页面加载事件对应的消息通知;其中,所述消息通知中携带有所述页面加载事件信息;Receive the message notification corresponding to the page loading event of the current page of the browser of the IE kernel sent by the browser of the IE kernel through the setting interface under the instruction of the preset function; wherein, the message notification carries the page load event information;

当接收到所述消息通知时,获取所述消息通知中的页面加载事件信息;When receiving the message notification, acquire the page loading event information in the message notification;

解析所述页面加载事件信息,获取所述当前页面的页面信息;Analyzing the page loading event information to obtain the page information of the current page;

将所述页面信息与预置标准信息进行比较;comparing the page information with preset standard information;

当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库,加载设定的工具条。When the page information matches the preset standard information, a call request is sent to the browser with the IE core to request the browser with the IE core to call the dynamic link library and load the set toolbar.

依据本发明的又一个方面,提供了一种加载工具条的装置,包括:According to yet another aspect of the present invention, a device for loading a toolbar is provided, including:

生成模块,用于在IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知;其中,所述消息通知中携带有所述页面加载事件信息;A generating module, configured to generate a message notification when the current page of the browser of the IE kernel triggers a page loading event; wherein, the message notification carries the page loading event information;

发送模块,用于在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序;The sending module is used to send the message notification to an application program independent of the browser through the setting interface in the browser of the IE kernel under the instruction of the preset function;

接收模块,用于接收所述独立于浏览器的应用程序返回的调用请求;a receiving module, configured to receive the call request returned by the browser-independent application;

调用模块,用于响应所述调用请求,调用动态链接库;A calling module, used to respond to the calling request and call the dynamic link library;

加载模块,用于通过所述动态链接库在所述IE内核的浏览器中加载设定的工具条;A loading module, for loading a set toolbar in the browser of the IE kernel through the dynamic link library;

其中,所述预置函数和所述动态链接库由所述独立于浏览器的应用程序通过浏览器辅助对象注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述动态链接库。Wherein, the preset function and the dynamic link library are injected into the browser of the IE core by the browser-independent application program through the browser auxiliary object, so that the browser of the IE core acquires and loads the The preset function and the dynamic link library.

依据本发明的再一个方面,提供了一种加载工具条的装置,其特征在于,所述装置包括:According to still another aspect of the present invention, a device for loading a tool bar is provided, wherein the device includes:

消息通知接收模块,用于接收IE内核的浏览器在预置函数的指示下通过设定接口发送的、所述IE内核的浏览器当前页面的页面加载事件对应的消息通知;其中,所述消息通知中携带有所述页面加载事件信息;The message notification receiving module is used to receive the message notification corresponding to the page loading event of the browser current page of the browser current page of the IE kernel sent by setting the interface under the instruction of the preset function for receiving the IE kernel; wherein the message The notification carries the page loading event information;

事件信息获取模块,用于在接收到所述消息通知时,获取所述消息通知中的页面加载事件信息;An event information acquiring module, configured to acquire the page loading event information in the message notification when the message notification is received;

解析模块,用于解析所述页面加载事件信息,获取所述当前页面的页面信息;A parsing module, configured to parse the page loading event information, and obtain the page information of the current page;

比较模块,用于将所述页面信息与预置标准信息进行比较;A comparison module, configured to compare the page information with preset standard information;

请求发送模块,用于当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库,加载设定的工具条。Request sending module, for when described page information matches with preset standard information, send calling request to the browser of described IE core, to request the browser of described IE core to call dynamic link library, load the set toolbar.

本发明的提供的一种加载工具条的方案,当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知,并将所述消息通知发送至独立于浏览器的应用程序;然后响应独立于浏览器的应用程序返回的调用请求,调用动态链接库,并通过所述动态链接库在所述IE内核的浏览器中加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。A kind of scheme of loading tool bar provided by the present invention, when the current page of the browser of IE core triggers page loading event, generate message notice, and described message notice is sent to the application program independent of browser; Then respond The call request returned by the application independent of the browser calls the dynamic link library, and loads the set toolbar in the browser with the IE kernel through the dynamic link library. The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1是本发明第一实施例中一种在浏览器中加载工具条的方法的流程图;Fig. 1 is a flow chart of a method for loading a toolbar in a browser in the first embodiment of the present invention;

图2是本发明第二实施例中一种在浏览器中加载工具条的方法的流程图;Fig. 2 is a flow chart of a method for loading a toolbar in a browser in the second embodiment of the present invention;

图3是本发明第三实施例中一种加载工具条的方法的流程图;Fig. 3 is a flowchart of a method for loading a tool bar in the third embodiment of the present invention;

图4是本发明第四实施例中一种加载工具条的方法的流程图;Fig. 4 is a flowchart of a method for loading a toolbar in the fourth embodiment of the present invention;

图5是本发明第五实施例中一种在IE浏览器中加载游戏工具条的方法的流程图;Fig. 5 is a flow chart of a method for loading a game tool bar in an IE browser in a fifth embodiment of the present invention;

图6是图5所示实施例中一种游戏工具条的加载示意图;Fig. 6 is a schematic diagram of loading a game tool bar in the embodiment shown in Fig. 5;

图7是本发明第六实施例中一种在浏览器中加载工具条的装置的结构框图;Fig. 7 is a structural block diagram of a device for loading a toolbar in a browser in the sixth embodiment of the present invention;

图8是本发明第七实施例中一种在浏览器中加载工具条的装置的结构框图;Fig. 8 is a structural block diagram of a device for loading a toolbar in a browser in the seventh embodiment of the present invention;

图9是本发明第八实施例中一种加载工具条的装置的结构框图;Fig. 9 is a structural block diagram of a device for loading tool bars in the eighth embodiment of the present invention;

图10是本发明第九实施例中一种加载工具条的装置的结构框图。Fig. 10 is a structural block diagram of a device for loading toolbars in the ninth embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

实施例一Embodiment one

参照图1,示出了本发明第一实施例中一种在浏览器中加载工具条的方法的流程图。在本实施例中,所述在浏览器中加载工具条的方法包括:Referring to FIG. 1 , it shows a flowchart of a method for loading a toolbar in a browser in the first embodiment of the present invention. In this embodiment, the method for loading a toolbar in a browser includes:

步骤102,当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知。其中,所述消息通知中携带有所述页面加载事件信息。Step 102, when the current page of the browser with the IE core triggers a page loading event, a message notification is generated. Wherein, the message notification carries the page loading event information.

浏览器最核心的部分是渲染引擎(Rendering Engine),我们一般习惯称之为“浏览器内核”,渲染引擎负责解析网页语法(如,标准通用标记语言的子集HTML、JavaScript)并渲染、展示网页。因此,所谓的浏览器内核通常也就是指浏览器所采用的渲染引擎,渲染引擎决定了浏览器如何显示网页的内容以及页面的格式信息。不同的浏览器内核对网页编写语法的解析也有所不同,因此同一网页在不同的内核浏览器里的渲染、展示效果也可能不同。在本实施例中,具体是指在一种以IE(Internet Explorer)为内核的浏览器中加载工具条的方法,或在IE浏览器中加载工具条的方法。The core part of the browser is the rendering engine (Rendering Engine), which we generally call the "browser kernel". Web page. Therefore, the so-called browser kernel usually refers to the rendering engine adopted by the browser, and the rendering engine determines how the browser displays the content of the web page and the format information of the web page. Different browser kernels analyze the syntax of webpage writing differently, so the rendering and display effects of the same webpage in browsers with different kernels may also be different. In this embodiment, it specifically refers to a method of loading a tool bar in a browser with IE (Internet Explorer) as the core, or a method of loading a tool bar in an IE browser.

步骤104,在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序。Step 104, under the instruction of the preset function, send the message notification to the browser-independent application program through the setting interface in the browser of the IE kernel.

步骤106,接收所述独立于浏览器的应用程序返回的调用请求。Step 106, receiving the call request returned by the browser-independent application.

步骤108,响应所述调用请求,调用动态链接库DLL,并通过所述DLL在所述IE内核的浏览器中加载设定的工具条。Step 108, in response to the call request, call the dynamic link library DLL, and load the set toolbar in the browser with the IE core through the DLL.

较佳地,所述预置函数和所述DLL由所述独立于浏览器的应用程序通过BHO注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述DLL。Preferably, the preset function and the DLL are injected into the browser of the IE core by the browser-independent application through BHO, so that the browser of the IE core acquires and loads the preset function and the DLL.

其中,DLL(Dynamic Link Library,动态链接库)是一个包含可由多个程序同时使用的代码和数据的库。DLL文件是一种不可执行的二进制程序文件,它允许程序共享执行特殊任务所必需的代码和其他资源。BHO(BrowserHelper Object,浏览器辅助对象)是微软推出的作为浏览器对第三方程序员开放交互接口的业界标准,Among them, DLL (Dynamic Link Library, dynamic link library) is a library containing codes and data that can be used by multiple programs at the same time. A DLL file is a non-executable binary program file that allows programs to share code and other resources necessary to perform specific tasks. BHO (BrowserHelper Object, Browser Helper Object) is an industry standard launched by Microsoft as an interactive interface for browsers to open to third-party programmers.

综上所述,本实施例所述的一种在浏览器中加载工具条的方法,当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知,并将所述消息通知发送至独立于浏览器的应用程序;然后响应独立于浏览器的应用程序返回的调用请求,调用动态链接库DLL,并通过所述DLL在所述IE内核的浏览器中加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。In summary, a method for loading a tool bar in a browser described in this embodiment generates a message notification when the current page of the browser with the IE kernel triggers a page loading event, and sends the message notification to The browser-independent application program; then responding to the call request returned by the browser-independent application program, calling the dynamic link library DLL, and loading the set toolbar in the browser of the IE kernel through the DLL. The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

实施例二Embodiment two

参照图2,示出了本发明第二实施例中一种在浏览器中加载工具条的方法的流程图。在本实施例中,所述在浏览器中加载工具条的方法包括:Referring to FIG. 2 , it shows a flow chart of a method for loading a toolbar in a browser in the second embodiment of the present invention. In this embodiment, the method for loading a toolbar in a browser includes:

步骤202,当IE内核的浏览器的当前页面触发页面加载事件时,浏览器生成消息通知。Step 202, when the current page of the browser with the IE core triggers a page loading event, the browser generates a message notification.

在本实施例中,所述消息通知中携带有所述页面加载事件信息。例如,当用户使用IE内核的浏览器浏览网页,并请求访问一个页面时,会触发页面加载事件,浏览器生成携带有所述页面加载事件信息的消息通知。In this embodiment, the message notification carries the page loading event information. For example, when a user uses a browser with an IE core to browse a webpage and requests to visit a page, a page loading event will be triggered, and the browser generates a message notification carrying information about the page loading event.

较佳地,所述页面加载事件信息可以包括:所述当前页面的统一资源定位符URL(Uniform Resource Locator)和标题Title。即,所述页面加载事件信息包括用户请求打开的页面的URL和标题Title。如,用户在IE内核的浏览器的地址栏输入www.sina.com.cn,并点击回车请求访问时,浏览器可以生成一个携带URL为www.sina.com.cn、标题为“新浪首页”的消息通知。Preferably, the page loading event information may include: a Uniform Resource Locator URL (Uniform Resource Locator) and a Title of the current page. That is, the page loading event information includes the URL and Title of the page opened by the user's request. For example, when the user enters www.sina.com.cn in the address bar of the browser with the IE kernel and clicks Enter to request access, the browser can generate a website with the URL www.sina.com.cn and the title "Sina Homepage". " message notification.

这里需要说明的是,所述浏览器具体可以是一种IE内核的浏览器;或者可以是IE浏览器。It should be noted here that the browser may specifically be a browser with an IE kernel; or may be an IE browser.

步骤204,浏览器确定所述当前页面的加载状态。Step 204, the browser determines the loading state of the current page.

浏览器在从接收到页面访问请求到完成页面的加载显示的过程中,至少可以包括四种加载状态:加载请求状态、访问完成状态、文档建立状态和页面加载完成状态。浏览在任意一种状态过程中都可以生成消息通知,但是,在加载请求状态过程中生成的消息通知不能完整包含URL信息和Title信息;在文档建立状态或页面加载完成状态过程中生成的消息通知时效性差,不能在第一时间将消息通知发送出去,影响工具条的加载效率。因此,在本实施例中,较佳地,当浏览器确定所述当前页面的加载状态为访问完成状态时,执行步骤206。During the process from receiving the page access request to completing the loading and displaying of the page, the browser may include at least four loading states: loading request state, access completion state, document creation state and page loading completion state. Browsing can generate message notifications during any state, but the message notifications generated during the loading request state cannot completely contain URL information and Title information; the message notifications generated during the document creation state or page loading completion state The timeliness is poor, and the message notification cannot be sent out at the first time, which affects the loading efficiency of the toolbar. Therefore, in this embodiment, preferably, when the browser determines that the loading status of the current page is the access completion status, step 206 is executed.

步骤206,浏览器在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序。Step 206 , under the instruction of the preset function, the browser sends the message notification to the application program independent of the browser through the setting interface in the browser of the IE kernel.

其中,所述预置函数可以用来指示IE内核的浏览器将在当前页面触发页面加载事件时生成的消息通知通过所述设定接口发送至所述独立于浏览器的应用程序。Wherein, the preset function may be used to instruct the browser of the IE core to send the message notification generated when the current page triggers a page loading event to the browser-independent application through the setting interface.

较佳地,通过所述设定接口可以调用浏览器中的其它接口,进而可以获取浏览器中的各类事件消息。其中,所述设定接口具体可以是IWebBrowser接口。在IE内核的浏览器中,通过所述IWebBrowser接口可以用于调用其它接口,从其它接口获取所述预置函数指示的、需要获取的信息。Preferably, other interfaces in the browser can be called through the setting interface, and then various event messages in the browser can be obtained. Wherein, the setting interface may specifically be an IWebBrowser interface. In the browser of the IE kernel, the IWebBrowser interface can be used to call other interfaces, and obtain the information indicated by the preset function and to be obtained from other interfaces.

WebBrowser是IE内核的浏览器中内置的浏览器控件,通过WebBrowser控件可以向Windows窗体客户端应用程序如浏览器添加基于Web的控件。IWebBrowser接口是WebBrowser控件提供的接口,通过IWebBrowser接口如IWebBrowser2接口,可以获取浏览器的信息、与第三方交互、并实现设定的功能等等。WebBrowser is a built-in browser control in the IE core browser, through which WebBrowser control can be added to Windows Forms client applications such as browsers based on Web controls. The IWebBrowser interface is an interface provided by the WebBrowser control. Through the IWebBrowser interface such as the IWebBrowser2 interface, you can obtain browser information, interact with a third party, and realize set functions and so on.

步骤208,浏览器接收所述独立于浏览器的应用程序返回的调用请求。Step 208, the browser receives the call request returned by the browser-independent application.

浏览器接收所述独立于浏览器的应用程序在接收到所述消息通知,并确定所述消息通知中的URL和Title与预置标准信息相匹配之后返回的调用请求。The browser receives the call request returned by the browser-independent application after receiving the message notification and determining that the URL and Title in the message notification match the preset standard information.

在本实施例中,加载的工具条可以是用于对游戏进行快捷操作的游戏工具条,故,所述预置标准信息对应指示的页面可以是游戏页面。当所述独立于浏览器的应用程序确定所述消息通知中的URL和Title与预置标准信息相匹配时,则确定当前页面加载的是游戏页面,符合加载工具条的方法,所述独立于浏览器的应用程序向浏览器侧发送调用请求,请求加载所述游戏工具条。In this embodiment, the loaded tool bar may be a game tool bar for performing shortcut operations on the game, therefore, the page correspondingly indicated by the preset standard information may be a game page. When the browser-independent application determines that the URL and Title in the message notification match the preset standard information, it is determined that the current page is loaded with a game page, which meets the method of loading a toolbar. The application program of the browser sends a call request to the browser side, requesting to load the game tool bar.

这里需要说明的是,在浏览器中加载的工具条还可以是其它类型的工具条,如,用于快速抢票的抢票工具条、用于快速预定酒店、餐馆的预定工具条。当加载的工具条是用于快速抢票的抢票工具条时,所述预置标准信息对应指示的页面可以是订票页面(如,铁路客户服务中心:www.12306.cn)。当加载的工具条是用于快速预定酒店、餐馆的预定工具条时,所述预置标准信息对应指示的页面可以是酒店或宾馆的预定页面。本实施例对此不作限制。It should be noted here that the tool bar loaded in the browser may also be other types of tool bars, such as a tool bar for grabbing tickets quickly, a tool bar for booking hotels and restaurants quickly. When the loaded tool bar is a tool bar for quickly grabbing tickets, the page indicated by the preset standard information may be a ticket booking page (eg, railway customer service center: www.12306.cn). When the loaded tool bar is a booking tool bar for quickly booking a hotel or restaurant, the page correspondingly indicated by the preset standard information may be a hotel or hotel booking page. This embodiment does not limit this.

步骤210,浏览器响应所述调用请求,调用动态链接库DLL,并通过所述DLL在所述IE内核的浏览器中加载设定的工具条。Step 210, the browser responds to the call request, calls the dynamic link library DLL, and loads the set toolbar in the browser with the IE core through the DLL.

较佳地,所述预置函数和所述DLL可以由所述独立于浏览器的应用程序通过BHO注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述DLL。Preferably, the preset function and the DLL can be injected into the browser of the IE core by the browser-independent application program through BHO, so that the browser of the IE core obtains and loads the preset function. Set the function and the DLL.

其中,较佳地,所述独立于浏览器的应用程序可以是网盾(如,360网盾),所述预置函数和所述DLL可以由网盾通过BHO注入所述IE内核的浏览器。Wherein, preferably, the browser-independent application program can be a network shield (such as 360 network shield), and the preset function and the DLL can be injected into the browser of the IE kernel by the network shield through BHO .

另一较佳地,所述预置函数和所述DLL由所述独立于浏览器的应用程序通过BHO注入所述IE内核的浏览器具体是指:所述预置函数和所述DLL由所述独立于浏览器的应用程序通过BHO注入至所述IE内核的浏览器的主进程中。In another preferred embodiment, the browser that injects the preset function and the DLL into the IE kernel by the browser-independent application through BHO specifically refers to: the preset function and the DLL are injected by the browser-independent application program into the IE kernel. The browser-independent application program is injected into the main process of the browser of the IE kernel through BHO.

在本实施例中,所述设定的工具条中包括一个或多个功能选项。所述调用请求中携带有标签信息,所述标签信息用于指示所述当前页面的页面属性。In this embodiment, the setting tool bar includes one or more function options. The call request carries tag information, and the tag information is used to indicate the page attributes of the current page.

较佳地,浏览器通过所述DLL在所述IE内核的浏览器中加载设定的工具条的步骤,具体可以包括:Preferably, the browser loads the step of setting the toolbar in the browser of the IE kernel through the DLL, which may specifically include:

浏览器根据所述标签信息,通过所述DLL在所述IE内核的浏览器中加载与所述标签信息相匹配的工具条。According to the tag information, the browser loads a tool bar matching the tag information in the browser of the IE kernel through the DLL.

其中,所述设定的工具条包括多种,不同的工具条与不同的标签信息相匹配。且,不同的工具条中的功能选项不完全相同。Wherein, the set tool bar includes multiple types, and different tool bars match different label information. Moreover, the function options in different toolbars are not exactly the same.

例如,所述页面属性可以但不仅限于:网页游戏页面、平台游戏页面和客户端游戏页面。For example, the page attribute may be, but not limited to: a webpage game page, a platform game page, and a client game page.

当所述标签信息指示所述当前页面为网页游戏页面时,浏览器可以通过所述DLL在所述IE内核的浏览器中加载与网页游戏相匹配的第一工具条。较佳地,所述第一工具条中可以包括:加速、变速、全屏和清理内存四个功能选项。When the tag information indicates that the current page is a webpage game page, the browser can load the first tool bar matching the webpage game in the browser of the IE kernel through the DLL. Preferably, the first tool bar may include four function options: acceleration, speed change, full screen and memory clearing.

当所述标签信息指示所述当前页面为平台游戏页面时,浏览器通过所述DLL在所述IE内核的浏览器中加载与平台游戏相匹配的第二工具条。较佳地,所述第二工具条中可以包括:我的游戏、全屏、修复和保存到桌面四个功能选项。When the tag information indicates that the current page is a platform game page, the browser loads a second tool bar matching the platform game in the browser of the IE kernel through the DLL. Preferably, the second tool bar may include four function options: my game, full screen, repair and save to desktop.

当所述标签信息指示所述当前页面为客户端游戏页面时,浏览器通过所述DLL在所述IE内核的浏览器中加载与客户端游戏相匹配的第三工具条。较佳地,所述第二工具条中可以包括:我的游戏、小号、老板来了、修复、静音、全屏和变速七个功能选项。When the tag information indicates that the current page is a client game page, the browser loads a third tool bar matching the client game in the browser of the IE kernel through the DLL. Preferably, the second tool bar may include seven functional options: my game, trumpet, boss is coming, repair, mute, full screen and speed change.

综上所述,本实施例所述的一种在浏览器中加载工具条的方法,当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知,并将所述消息通知发送至独立于浏览器的应用程序;然后响应独立于浏览器的应用程序返回的调用请求,调用动态链接库DLL,并通过所述DLL在所述IE内核的浏览器中加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。In summary, a method for loading a tool bar in a browser described in this embodiment generates a message notification when the current page of the browser with the IE kernel triggers a page loading event, and sends the message notification to The browser-independent application program; then responding to the call request returned by the browser-independent application program, calling the dynamic link library DLL, and loading the set toolbar in the browser of the IE kernel through the DLL. The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

进一步地,所述IE内核的浏览器可以根据页面属性,加载与所述页面属性相匹配的工具条,且,加载的该工具条中的功能选项也与页面属性相匹配,可以适应不同的页面需求,同时避免了多余的无效功能选项的加载。如,页面C中可以进行登录操作,则对应加载的工具条中可以包括登录功能选项。页面D中不可以进行登录操作,则登录功能选项对于页面D来说是多余的无效功能选项,在本实施例中,IE内核的浏览器在加载页面D对应的工具条时,该工具条中则不包括登录功能选项,避免了无效功能选项的加载,向用户提供完整准确的与页面相适应的工具条,匹配度高,避免了错误操作,进一步提高了操作效率,及用户体验。Further, the browser of the IE kernel can load a toolbar matching the page attribute according to the page attribute, and the function options in the loaded toolbar also match the page attribute, which can adapt to different pages requirements, while avoiding the loading of redundant invalid function options. For example, if a login operation can be performed on page C, then the corresponding loaded toolbar can include a login function option. Can not carry out login operation in page D, then login function option is superfluous invalid function option for page D, in this embodiment, when the browser of IE kernel loads the corresponding tool bar of page D, in this tool bar It does not include the login function option, avoiding the loading of invalid function options, providing users with a complete and accurate tool bar suitable for the page, with a high degree of matching, avoiding wrong operations, and further improving operation efficiency and user experience.

实施例三Embodiment three

参照图3,示出了本发明第三实施例中一种加载工具条的方法的流程图。在本实施例中,所述加载工具条的方法包括:Referring to FIG. 3 , it shows a flow chart of a method for loading a toolbar in the third embodiment of the present invention. In this embodiment, the method for loading a toolbar includes:

步骤302,接收IE内核的浏览器在预置函数的指示下通过设定接口发送的所述IE内核的浏览器当前页面的页面加载事件对应的消息通知。Step 302, receiving a message notification corresponding to the page loading event of the current page of the browser of the IE kernel sent by the browser of the IE kernel through the setting interface under the instruction of the preset function.

其中,所述消息通知中携带有所述页面加载事件信息。Wherein, the message notification carries the page loading event information.

步骤304,当接收到所述消息通知时,获取所述消息通知中的页面加载事件信息。Step 304, when the message notification is received, acquire the page loading event information in the message notification.

步骤306,解析所述页面加载事件信息,获取所述当前页面的页面信息。Step 306, analyzing the page loading event information to obtain the page information of the current page.

步骤308,将所述页面信息与预置标准信息进行比较。Step 308, comparing the page information with preset standard information.

步骤310,当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载设定的工具条。Step 310, when the page information matches the preset standard information, send a call request to the browser of the IE core, to request the browser of the IE core to call the dynamic link library DLL, and load the set toolbar .

综上所述,本实施例所述的一种加载工具条的方法,当接收到IE内核的浏览器发送的消息通知时,获取所述消息通知中的页面加载事件信息,并进一步获取页面信息。当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。To sum up, a method for loading a toolbar described in this embodiment, when receiving a message notification sent by a browser of the IE kernel, obtains the page loading event information in the message notification, and further obtains the page information . When the page information matches the preset standard information, a call request is sent to the browser with the IE core to request the browser with the IE core to call the dynamic link library DLL to load the set toolbar. The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

实施例四Embodiment Four

参照图4,示出了本发明第三实施例中一种加载工具条的方法的流程图。在本实施例中,所述加载工具条的方法包括:Referring to FIG. 4 , it shows a flow chart of a method for loading a toolbar in the third embodiment of the present invention. In this embodiment, the method for loading a toolbar includes:

步骤402,独立于浏览器的应用程序将预置函数和所述DLL通过BHO注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述DLL。Step 402, the browser-independent application program injects the preset function and the DLL into the browser of the IE kernel through BHO, so that the browser of the IE kernel acquires and loads the preset function and the DLL .

在本实施例中,执行所述加载工具条的方法的可以是安装在终端侧的独立于浏览器的应用程序,则此时,由独立于浏览器的应用程序直接将预置函数和所述DLL通过BHO注入所述IE内核的浏览器;执行所述加载工具条的方法的也可以是安装在终端侧的独立于浏览器的应用程序中的一功能模块,则此时,预置函数和所述DLL由独立于浏览器的应用程序(如网盾)通过BHO注入所述IE内核的浏览器。In this embodiment, the implementation of the method for loading the tool bar may be a browser-independent application installed on the terminal side, then at this time, the browser-independent application directly uses the preset function and the DLL injects the browser of described IE kernel by BHO; It also can be a function module installed in the application program independent of the browser installed on the terminal side that carries out the method for loading tool bar, then at this moment, preset function and The DLL is injected into the browser of the IE kernel by a browser-independent application program (such as NetShield) through BHO.

较佳地,独立于浏览器的应用程序可以将所述预置函数和所述DLL通过BHO注入所述IE内核的浏览器的主进程中。其中,所述预置函数可以用来指示IE内核的浏览器将在当前页面触发页面加载事件时生成的消息通知发送给所述独立于浏览器的应用程序,即,所述独立于浏览器的应用程序通过所述预置函数对IE内核的浏览器的页面加载事件进行监测。Preferably, the browser-independent application program can inject the preset function and the DLL into the main process of the browser of the IE kernel through BHO. Wherein, the preset function can be used to instruct the browser of the IE kernel to send the message notification generated when the current page triggers the page loading event to the browser-independent application program, that is, the browser-independent The application program monitors the page loading event of the browser with the IE kernel through the preset function.

步骤404,独立于浏览器的应用程序接收IE内核的浏览器在预置函数的指示下通过设定接口发送的所述IE内核的浏览器当前页面的页面加载事件对应的消息通知。其中,所述消息通知中携带有所述页面加载事件信息。Step 404, the browser-independent application program receives the message notification corresponding to the page loading event of the current page of the browser of the IE kernel sent by the browser of the IE kernel through the setting interface under the instruction of the preset function. Wherein, the message notification carries the page loading event information.

浏览器在从接收到页面访问请求到完成页面的加载显示的过程中,至少可以包括四种加载状态:加载请求状态、访问完成状态、文档建立状态和页面加载完成状态。在本实施例中,所述独立于浏览器的应用程序接收到的是IE内核的浏览器在当前页面的加载状态为访问完成状态时、在预置函数的指示下通过设定接口发送的所述IE内核的浏览器当前页面的页面加载事件对应的消息通知。其中,所述设定接口为IWebBrowser接口,或者是可以用于实现所述独立于浏览器的应用程序与IE内核的浏览器之间交互功能的其它接口。During the process from receiving the page access request to completing the loading and displaying of the page, the browser may include at least four loading states: loading request state, access completion state, document creation state and page loading completion state. In this embodiment, what the browser-independent application program receives is that the browser of the IE kernel sends all the information sent through the setting interface under the instruction of the preset function when the loading state of the current page is the access completion state. Describes the message notification corresponding to the page loading event of the current page of the browser in the IE kernel. Wherein, the setting interface is an IWebBrowser interface, or other interfaces that can be used to realize the interactive function between the browser-independent application program and the browser of the IE kernel.

步骤406,当接收到所述消息通知时,独立于浏览器的应用程序获取所述消息通知中的页面加载事件信息。Step 406, when the message notification is received, the browser-independent application acquires the page loading event information in the message notification.

步骤408,独立于浏览器的应用程序解析所述页面加载事件信息,获取所述当前页面的页面信息。Step 408, the browser-independent application program parses the page loading event information to obtain page information of the current page.

较佳地,所述独立于浏览器的应用程序通过解析所述页面加载事件信息,获取所述当前页面的统一资源定位符URL和标题Title。Preferably, the browser-independent application acquires the Uniform Resource Locator URL and Title of the current page by parsing the page loading event information.

步骤410,独立于浏览器的应用程序将所述页面信息与预置标准信息进行比较。Step 410, the browser-independent application program compares the page information with preset standard information.

较佳地,所述独立于浏览器的应用程序可以将所述当前页面的URL和Title与所述预置标准信息进行比较。当所述当前页面的URL和Title与所述预置标准信息相匹配时,则确定所述页面信息与预置标准信息相匹配。其中,所述预置标准信息对应指示的页面是游戏页面。这里需要说明的是,所述预置标准信息可以根据需要进行设置,如,所述预置标准信息对应指示的页面还可以是微博页面、邮箱页面等。Preferably, the browser-independent application program can compare the URL and Title of the current page with the preset standard information. When the URL and Title of the current page match the preset standard information, it is determined that the page information matches the preset standard information. Wherein, the page indicated by the preset standard information is a game page. It should be noted here that the preset standard information can be set as required, for example, the page indicated by the preset standard information can also be a microblog page, an email page, and the like.

具体地,所述预置标准信息可以是游戏页面对应的URL和Title。将所述当前页面的URL和Title与所述预置标准信息进行比较具体可以包括:将所述当前页面的URL和Title分别与游戏页面对应的URL和Title进行比较,当所述当前页面的URL和游戏页面对应的URL相匹配,和/或,当所述当前页面的Title和游戏页面的Title相匹配时,则确定所述页面信息与预置标准信息相匹配。Specifically, the preset standard information may be URL and Title corresponding to the game page. Comparing the URL and Title of the current page with the preset standard information may specifically include: comparing the URL and Title of the current page with the URL and Title corresponding to the game page respectively, when the URL of the current page Match the URL corresponding to the game page, and/or, when the Title of the current page matches the Title of the game page, it is determined that the page information matches the preset standard information.

在本实施例中,当所述页面信息与预置标准信息相匹配时,执行步骤412。In this embodiment, when the page information matches the preset standard information, step 412 is executed.

步骤412,独立于浏览器的应用程序根据所述预置标准信息确定所述当前页面的页面属性,生成携带标签信息的调用请求。Step 412, the browser-independent application program determines the page attributes of the current page according to the preset standard information, and generates a call request carrying tag information.

其中,所述标签信息用于指示所述当前页面的页面属性。较佳地,所述页面属性可以包括但不仅限于:网页游戏页面、平台游戏页面和客户端游戏页面。Wherein, the tag information is used to indicate the page attribute of the current page. Preferably, the page attributes may include but not limited to: webpage game page, platform game page and client game page.

与所述页面属性对应地,所述标签信息可以包括第一标签信息、第二标签信息和第三标签信息。其中,所述第一标签信息用于指示所述当前页面的页面属性为网页游戏页面;所述第二标签信息用于指示所述当前页面的页面属性为平台游戏页面;所述第三标签信息用于指示所述当前页面的页面属性为客户端游戏页面。Corresponding to the page attribute, the tag information may include first tag information, second tag information, and third tag information. Wherein, the first tag information is used to indicate that the page attribute of the current page is a webpage game page; the second tag information is used to indicate that the page attribute of the current page is a platform game page; the third tag information The page attribute used to indicate that the current page is a client game page.

所述步骤412可以包括:The step 412 may include:

当根据所述预置标准信息确定所述当前页面为网页游戏页面时,独立于浏览器的应用程序生成携带所述第一标签信息的调用请求;When it is determined according to the preset standard information that the current page is a webpage game page, an application program independent of the browser generates a call request carrying the first tag information;

当根据所述预置标准信息确定所述当前页面为平台游戏页面时,独立于浏览器的应用程序生成携带所述第二标签信息的调用请求;When it is determined according to the preset standard information that the current page is a platform game page, the browser-independent application program generates a call request carrying the second tag information;

当根据所述预置标准信息确定所述当前页面为客户端游戏页面时,独立于浏览器的应用程序生成携带所述第三标签信息的调用请求。When it is determined according to the preset standard information that the current page is a client game page, the browser-independent application program generates a calling request carrying the third tag information.

步骤414,独立于浏览器的应用程序向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载设定的工具条。Step 414, the browser-independent application program sends a call request to the browser with the IE core to request the browser with the IE core to call the dynamic link library DLL to load the set toolbar.

较佳地,所述独立于浏览器的应用程序可以请求所述IE内核的浏览器调用动态链接库DLL,对应加载与所述携带所述第一标签信息的调用请求相匹配的第一工具条,或与所述携带所述第二标签信息的调用请求相匹配的第二工具条,或所述携带所述第三标签信息的调用请求相匹配的第三工具条。即,Preferably, the browser-independent application program can request the browser of the IE kernel to call the dynamic link library DLL, and correspondingly load the first tool bar matching the call request carrying the first tag information , or the second tool bar matching the call request carrying the second tag information, or the third tool bar matching the call request carrying the third tag information. Right now,

当独立于浏览器的应用程序生成携带所述第一标签信息的调用请求时,执行:独立于浏览器的应用程序向所述IE内核的浏览器发送携带所述第一标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载第一工具条。其中,所述第一工具条中的功能选项与网页游戏相匹配。When the browser-independent application program generates the call request carrying the first label information, execute: the browser-independent application program sends the call request carrying the first label information to the browser of the IE kernel, Call the dynamic link library DLL with the browser requesting the IE kernel to load the first tool bar. Wherein, the function options in the first tool bar match the web game.

当独立于浏览器的应用程序生成携带所述第二标签信息的调用请求时,执行:独立于浏览器的应用程序向所述IE内核的浏览器发送携带所述第二标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载第二工具条。其中,所述第二工具条中的功能选项与平台游戏相匹配。When the browser-independent application program generates the call request carrying the second label information, execute: the browser-independent application program sends the call request carrying the second label information to the browser of the IE kernel, Call the dynamic link library DLL with the browser requesting the IE kernel to load the second tool bar. Wherein, the function options in the second tool bar match the platform game.

当独立于浏览器的应用程序生成携带所述第三标签信息的调用请求时,执行:独立于浏览器的应用程序向所述IE内核的浏览器发送携带所述第三标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载第三工具条。其中,所述第三工具条中的功能选项与客户端游戏相匹配。When the browser-independent application program generates the call request carrying the third tag information, execute: the browser-independent application program sends the call request carrying the third tag information to the browser of the IE kernel, Call the dynamic link library DLL with the browser requesting the IE kernel to load the third tool bar. Wherein, the function options in the third tool bar match the client game.

综上所述,本实施例所述的一种加载工具条的方法,当接收到IE内核的浏览器发送的消息通知时,获取所述消息通知中的页面加载事件信息,并进一步获取页面信息。当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。To sum up, a method for loading a toolbar described in this embodiment, when receiving a message notification sent by a browser of the IE kernel, obtains the page loading event information in the message notification, and further obtains the page information . When the page information matches the preset standard information, a call request is sent to the browser with the IE core to request the browser with the IE core to call the dynamic link library DLL to load the set toolbar. The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

进一步地,独立于浏览器的应用程序可以根据页面属性,生成携带与页面属性相匹配的标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载与所述页面属性相匹配的工具条,可以适应不同的页面需求,同时避免了多余的无效功能选项的加载。如,页面C中可以进行登录操作,则对应生成携带与页面C的页面属性相匹配的标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载包括登录功能选项的工具条。页面D中不可以进行登录操作,则对应生成携带与页面D的页面属性相匹配的标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载与页面D对应匹配的工具条,该工具条中则可以不包括登录功能选项。避免了无效功能选项的加载,向用户提供完整准确的与页面相适应的工具条,匹配度高,避免了错误操作,进一步提高了操作效率,及用户体验。Further, the browser-independent application program can generate a call request carrying label information matching the page property according to the page property, so as to request the browser of the IE kernel to call the dynamic link library DLL, and load the dynamic link library DLL corresponding to the page property. The matching toolbar can adapt to different page requirements, while avoiding the loading of redundant invalid function options. For example, the login operation can be performed in page C, then correspondingly generate a call request carrying label information matching with the page attribute of page C, to request the browser of the IE kernel to call the dynamic link library DLL, and load the DLL including the login function option toolbar. If the login operation is not allowed in the page D, a call request carrying label information matching the page attribute of the page D is correspondingly generated, so as to request the browser of the IE kernel to call the dynamic link library DLL, and load the corresponding matching page DLL. The tool bar may not include the login function option in the tool bar. It avoids the loading of invalid function options, provides users with a complete and accurate tool bar suitable for the page, has a high degree of matching, avoids wrong operations, and further improves operation efficiency and user experience.

实施例五Embodiment five

结合上述实施例,下面通过一个具体实例对一种在浏览器中加载工具条的方法的流程进行说明。Combining with the above-mentioned embodiments, a flow of a method for loading a toolbar in a browser will be described below through a specific example.

在本实施例中,在PC端的IE浏览器中加载游戏工具条,其中,在所述PC端中安装有360网盾。参照图5,示出了本实施例中在IE浏览器中加载游戏工具条的方法的流程图,本实施例的在IE浏览器中加载游戏工具条的方法的具体步骤可以如下:In this embodiment, the game tool bar is loaded in the IE browser on the PC side, wherein the 360 NetShield is installed on the PC side. With reference to Fig. 5, have shown the flow chart of the method for loading game tool bar in IE browser in the present embodiment, the specific steps of the method for loading game tool bar in IE browser of the present embodiment can be as follows:

步骤502,在360网盾启动时,360网盾中的工具条加载模块将预置函数和DLL通过BHO注入IE浏览器的主进程中。Step 502, when the 360 NetShield starts, the toolbar loading module in the 360 NetShield injects the preset function and DLL into the main process of the IE browser through the BHO.

步骤504,在IE浏览器启动、并请求通过所述IE浏览器访问页面时,IE浏览器在所述预置函数的指示下,将页面加载过程中生成的消息通知通过IWebBrowser接口发送至所述工具条加载模块。Step 504, when the IE browser starts and requests to access the page through the IE browser, the IE browser sends the message notification generated during the page loading process to the IWebBrowser interface under the instruction of the preset function. Toolbar loading module.

步骤506,工具条加载模块对所述消息通知进行监测,将所述消息通知与预置标准信息进行比较。Step 506, the toolbar loading module monitors the message notification, and compares the message notification with preset standard information.

在本实施例中,当所述消息通知与预置标准信息相匹配时,执行步骤508。In this embodiment, when the message notification matches the preset standard information, step 508 is executed.

较佳地,所述步骤506具体可以包括:Preferably, the step 506 may specifically include:

子步骤5062,工具条加载模块获取所述消息通知中的页面加载事件信息。In sub-step 5062, the toolbar loading module obtains the page loading event information in the message notification.

子步骤5064,工具条加载模块解析所述页面加载事件信息,获取所述当前页面的页面信息。In sub-step 5064, the toolbar loading module parses the page loading event information to obtain the page information of the current page.

在本实施例中,所述消息通知中携带有页面加载事件信息,工具条加载模块从所述消息通知中获取页面加载信息,并进一步解析所述页面加载事件信息,获取IE浏览器当前加载的页面对应的URL和Title。In this embodiment, the message notification carries page loading event information, and the toolbar loading module obtains the page loading information from the message notification, and further parses the page loading event information to obtain the currently loaded page loading information of the IE browser. URL and Title corresponding to the page.

子步骤5066,工具条加载模块将当前加载的页面对应的URL和Title与预置标准信息进行比较。In sub-step 5066, the toolbar loading module compares the URL and Title corresponding to the currently loaded page with the preset standard information.

较佳地,所述预置标准信息包括:游戏页面对应的URL和Title。所述预置标准信息可以存在本地或云端数据库中。当前加载的页面对应的URL和Title和游戏页面对应的URL和Title对应匹配时,执行步骤508。Preferably, the preset standard information includes: URL and Title corresponding to the game page. The preset standard information can be stored in a local or cloud database. When the URL and Title corresponding to the currently loaded page match the URL and Title corresponding to the game page, step 508 is executed.

步骤508,工具条加载模块生成调用请求,并将所述调用请求发送至IE浏览器。Step 508, the toolbar loading module generates a calling request, and sends the calling request to the IE browser.

较佳地,在当前加载的页面对应的URL和Title和游戏页面对应的URL和Title对应匹配时,还可以进一步判断当前加载的页面的页面属性,其中,所述页面属性可以包括:网页游戏页面、平台游戏页面和客户端游戏页面。如,当当前加载的页面对应的URL和Title与www.a.com相匹配时,可以确定该当前加载的页面是游戏页面,且是网页游戏页面。当当前加载的页面对应的URL和Title与www.qqpingtai.com/abc相匹配时,可以确定该当前加载的页面是游戏页面,且是平台游戏页面。Preferably, when the URL and Title corresponding to the currently loaded page match the URL and Title corresponding to the game page, the page attribute of the currently loaded page can be further judged, wherein the page attribute can include: webpage game page , platform game page and client game page. For example, when the URL and Title corresponding to the currently loaded page match www.a.com, it can be determined that the currently loaded page is a game page and is a web page game page. When the URL and Title corresponding to the currently loaded page match www.qqpingtai.com/abc, it can be determined that the currently loaded page is a game page and is a platform game page.

在本实施例中,工具条加载模块可以根据页面属性的判断结果对应地生成:携带第一标签信息的第一调用请求,携带第二标签信息的第二调用请求,携带第三标签信息的第三调用请求。其中,所述第一标签信息用于指示所述当前页面的页面属性为网页游戏页面;所述第二标签信息用于指示所述当前页面的页面属性为平台游戏页面;所述第三标签信息用于指示所述当前页面的页面属性为客户端游戏页面。In this embodiment, the toolbar loading module may correspondingly generate: a first call request carrying first tag information, a second call request carrying second tag information, and a second call request carrying third tag information according to the judgment result of the page attribute. Three call requests. Wherein, the first tag information is used to indicate that the page attribute of the current page is a webpage game page; the second tag information is used to indicate that the page attribute of the current page is a platform game page; the third tag information The page attribute used to indicate that the current page is a client game page.

步骤510,IE浏览器在接收到所述调用请求时,调用DLL,通过所述DLL在IE浏览器侧加载游戏工具条。Step 510, when the IE browser receives the call request, call the DLL, and load the game tool bar on the side of the IE browser through the DLL.

在本实施例中,步骤510在具体执行过程中,与所述步骤508对应地,In this embodiment, step 510 corresponds to step 508 during the specific execution process,

当IE浏览器在接收到的调用请求是所述第一调用请求时,调用DLL,通过所述DLL在IE浏览器侧加载第一游戏工具条。When the call request received by the IE browser is the first call request, the DLL is called, and the first game tool bar is loaded on the side of the IE browser through the DLL.

当IE浏览器在接收到的调用请求是所述第二调用请求时,调用DLL,通过所述DLL在IE浏览器侧加载第二游戏工具条。When the calling request received by the IE browser is the second calling request, the DLL is called, and the second game tool bar is loaded on the side of the IE browser through the DLL.

当IE浏览器在接收到的调用请求是所述第三调用请求时,调用DLL,通过所述DLL在IE浏览器侧加载第三游戏工具条。When the call request received by the IE browser is the third call request, the DLL is called, and the third game tool bar is loaded on the side of the IE browser through the DLL.

参照图6,是图5所示实施例中一种游戏工具条的加载示意图。在本实施例中,所述当前页面是一个网页游戏页面,游戏工具条则加载在当前网页游戏页面对应的标签(标签1)的下方,这里需要说明的是,所述游戏工具条也可以加载在IE浏览器的任意一便于用户操作的位置处。所述游戏工具条中包括:我的游戏、小号、变速、全屏、修复、老板来了和静音功能选项,以及一个更多工具选项,当展开所述更多工具选项时可以进一步查看更多的功能选项;同时,已展示的功能选项(如,小号、变速和全屏等功能选项)也可以添加至所述更多工具选项中以隐藏。Referring to FIG. 6 , it is a schematic diagram of loading a game tool bar in the embodiment shown in FIG. 5 . In this embodiment, the current page is a web game page, and the game tool bar is loaded under the label (label 1) corresponding to the current web game page. It should be noted here that the game tool bar can also be loaded In any position of the IE browser that is convenient for the user to operate. The game tool bar includes: my game, trumpet, variable speed, full screen, repair, the boss is coming, and mute function options, as well as a more tool option. When the more tool options are expanded, you can further view more At the same time, the displayed function options (eg, function options such as trumpet, variable speed and full screen) can also be added to the more tool options to hide.

当用户触发小号功能选项时,可以进入游戏登录界面,添加一个新的游戏账号;当用户触发修复功能选项时,可以对游戏配置进行检测和修复。其它功能选项对应的功能不再一一赘述。When the user triggers the trumpet function option, he can enter the game login interface and add a new game account; when the user triggers the repair function option, the game configuration can be detected and repaired. The functions corresponding to other function options will not be repeated one by one.

这里需要说明的是,所述第一游戏工具条、第二游戏工具条、和第三游戏工具条中的功能选项不完全相同。第一游戏工具条中的功能选项对应执行网页游戏页面中的快捷操作;第二游戏工具条中的功能选项对应执行平台游戏页面中的快捷操作;第三游戏工具条中的功能选项对应执行客户端游戏页面中的快捷操作。It should be noted here that the function options in the first game tool bar, the second game tool bar, and the third game tool bar are not completely the same. The function options in the first game tool bar correspond to the shortcut operations in the web game page; the function options in the second game tool bar correspond to the shortcut operations in the platform game page; the function options in the third game tool bar correspond to the execution of the client Shortcut operations in the terminal game page.

综上所述,本实施例所述的一种在IE浏览器中加载游戏工具条的方法,当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知,并将所述消息通知发送至独立于浏览器的应用程序;然后响应独立于浏览器的应用程序返回的调用请求,调用动态链接库DLL,并通过所述DLL在所述IE内核的浏览器中加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。In summary, a method for loading a game tool bar in an IE browser described in this embodiment generates a message notification when the current page of the browser of the IE kernel triggers a page loading event, and notifies the message Sent to the browser-independent application program; then in response to the call request returned by the browser-independent application program, call the dynamic link library DLL, and load the set toolbar in the browser of the IE kernel through the DLL . The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

进一步地,所述IE内核的浏览器可以根据页面属性,加载与所述页面属性相匹配的工具条,且,加载的该工具条中的功能选项也与页面属性相匹配,可以适应不同的页面需求,同时避免了多余的无效功能选项的加载。如,页面C中可以进行登录操作,则对应加载的工具条中可以包括登录功能选项。页面D中不可以进行登录操作,则登录功能选项对于页面D来说是多余的无效功能选项,在本实施例中,IE内核的浏览器在加载页面D对应的工具条时,该工具条中则不包括登录功能选项,避免了无效功能选项的加载,向用户提供完整准确的与页面相适应的工具条,匹配度高,避免了错误操作,进一步提高了操作效率,及用户体验。Further, the browser of the IE kernel can load a toolbar matching the page attribute according to the page attribute, and the function options in the loaded toolbar also match the page attribute, which can adapt to different pages requirements, while avoiding the loading of redundant invalid function options. For example, if a login operation can be performed on page C, the corresponding loaded toolbar can include a login function option. Can not carry out login operation in page D, then login function option is superfluous invalid function option for page D, in this embodiment, when the browser of IE kernel loads the corresponding toolbar of page D, in this toolbar It does not include the login function option, avoiding the loading of invalid function options, providing users with a complete and accurate tool bar suitable for the page, with a high degree of matching, avoiding wrong operations, and further improving operation efficiency and user experience.

需要说明的是,对于前述的方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明所必需的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because Certain steps may be performed in other orders or simultaneously in accordance with the present invention. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention.

实施例六Embodiment six

基于与上述方法实施例同一发明构思。参照图7,示出了本发明第六实施例中一种在浏览器中加载工具条的装置的结构框图。Based on the same inventive concept as the above method embodiment. Referring to FIG. 7 , it shows a structural block diagram of an apparatus for loading a toolbar in a browser in the sixth embodiment of the present invention.

在本实施例中,所述在浏览器中加载工具条的装置,包括:In this embodiment, the device for loading a toolbar in a browser includes:

生成模块602,用于在IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知。The generation module 602 is configured to generate a message notification when the current page of the browser with the IE kernel triggers a page loading event.

其中,所述消息通知中携带有所述页面加载事件信息。Wherein, the message notification carries the page loading event information.

发送模块604,用于在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序。The sending module 604 is configured to send the message notification to an application program independent of the browser through the setting interface in the browser of the IE kernel under the instruction of the preset function.

接收模块606,用于接收所述独立于浏览器的应用程序返回的调用请求。The receiving module 606 is configured to receive the call request returned by the browser-independent application program.

调用模块608,用于响应所述调用请求,调用动态链接库DLL。The calling module 608 is configured to call the dynamic link library DLL in response to the calling request.

加载模块610,用于通过所述DLL在所述IE内核的浏览器中加载设定的工具条。The loading module 610 is configured to load the set toolbar in the browser with the IE kernel through the DLL.

其中,所述预置函数和所述DLL由所述独立于浏览器的应用程序通过BHO注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述DLL。Wherein, the preset function and the DLL are injected into the browser of the IE core by the browser-independent application through BHO, so that the browser of the IE core acquires and loads the preset function and The DLL.

综上所述,本实施例所述的一种在浏览器中加载工具条的装置,当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知,并将所述消息通知发送至独立于浏览器的应用程序;然后响应独立于浏览器的应用程序返回的调用请求,调用动态链接库DLL,并通过所述DLL在所述IE内核的浏览器中加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。In summary, a device for loading a tool bar in a browser described in this embodiment generates a message notification when the current page of the browser with the IE kernel triggers a page loading event, and sends the message notification to The browser-independent application program; then responding to the call request returned by the browser-independent application program, calling the dynamic link library DLL, and loading the set toolbar in the browser of the IE kernel through the DLL. The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

实施例七Embodiment seven

参照图8,示出了本发明第七实施例中一种在浏览器中加载工具条的装置的结构框图。Referring to FIG. 8 , it shows a structural block diagram of an apparatus for loading a toolbar in a browser in a seventh embodiment of the present invention.

在本实施例中,所述在浏览器中加载工具条的装置,包括:In this embodiment, the device for loading a toolbar in a browser includes:

生成模块702,用于在IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知。The generation module 702 is configured to generate a message notification when the current page of the browser with the IE kernel triggers a page loading event.

其中,所述消息通知中携带有所述页面加载事件信息。较佳地,所述页面加载事件信息可以包括:所述当前页面的统一资源定位符URL和标题Title。Wherein, the message notification carries the page loading event information. Preferably, the page loading event information may include: the Uniform Resource Locator URL and Title of the current page.

状态确定模块704,用于确定所述当前页面的加载状态。A status determining module 704, configured to determine the loading status of the current page.

较佳地,所述加载状态可以但不仅限于:加载请求状态、访问完成状态、文档建立状态和页面加载完成状态。Preferably, the loading status may be, but not limited to: loading request status, access completion status, document creation status and page loading completion status.

发送模块706,用于在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序。The sending module 706 is configured to send the message notification to an application program independent of the browser through the setting interface in the browser of the IE kernel under the instruction of the preset function.

较佳地,所述发送模块706,具体用于在所述状态确定模块704确定所述当前页面的加载状态为访问完成状态时,在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序。Preferably, the sending module 706 is specifically configured to notify the message through the The setting interface in the browser of the IE core is sent to the application program independent of the browser.

其中,所述设定接口可以是IWebBrowser接口。Wherein, the setting interface may be an IWebBrowser interface.

接收模块708,用于接收所述独立于浏览器的应用程序返回的调用请求。The receiving module 708 is configured to receive the call request returned by the browser-independent application program.

较佳地,所述接收模块708,具体用于接收所述独立于浏览器的应用程序在接收到所述消息通知,并确定所述消息通知中的URL和Title与预置标准信息相匹配之后返回的调用请求。其中,所述预置标准信息对应指示的页面是游戏页面。Preferably, the receiving module 708 is specifically configured to receive the browser-independent application program after receiving the message notification and determining that the URL and Title in the message notification match the preset standard information The returned call request. Wherein, the page indicated by the preset standard information is a game page.

调用模块710,用于响应所述调用请求,调用动态链接库DLL。The calling module 710 is configured to call the dynamic link library DLL in response to the calling request.

加载模块712,用于通过所述DLL在所述IE内核的浏览器中加载设定的工具条。The loading module 712 is used to load the set toolbar in the browser with the IE kernel through the DLL.

其中,所述预置函数和所述DLL由所述独立于浏览器的应用程序通过BHO注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述DLL。较佳地,所述预置函数和所述DLL可以由网盾通过BHO注入所述IE内核的浏览器。又一较佳地,所述预置函数和所述DLL可以由所述独立于浏览器的应用程序通过BHO注入至所述IE内核的浏览器的主进程中。Wherein, the preset function and the DLL are injected into the browser of the IE core by the browser-independent application through BHO, so that the browser of the IE core acquires and loads the preset function and The DLL. Preferably, the preset function and the DLL can be injected into the IE kernel browser by the network shield through BHO. Still another preferably, the preset function and the DLL can be injected by the browser-independent application program into the main process of the browser of the IE kernel through BHO.

在本实施例中,所述设定的工具条中包括一个或多个功能选项。所述调用请求中携带有标签信息,所述标签信息用于指示所述当前页面的页面属性。所述加载模块712,具体可以用于根据所述标签信息,通过所述DLL在所述IE内核的浏览器中加载与所述标签信息相匹配的工具条。In this embodiment, the setting tool bar includes one or more function options. The call request carries tag information, and the tag information is used to indicate the page attributes of the current page. The loading module 712 may specifically be configured to load, according to the tag information, a toolbar matching the tag information in the browser of the IE kernel through the DLL.

进一步地,所述设定的工具条包括多种,不同的工具条与不同的标签信息相匹配。所述页面属性包括:网页游戏页面、平台游戏页面和客户端游戏页面。较佳地,所述加载模块712,可以包括:Further, the set tool bar includes multiple types, and different tool bars are matched with different label information. The page attributes include: web page game page, platform game page and client game page. Preferably, the loading module 712 may include:

第一加载模块7122,用于在所述标签信息指示所述当前页面为网页游戏页面时,通过所述DLL在所述IE内核的浏览器中加载与网页游戏相匹配的第一工具条。The first loading module 7122 is configured to load the first tool bar matching the web game in the browser of the IE kernel through the DLL when the tag information indicates that the current page is a web game page.

第二加载模块7124,用于在所述标签信息指示所述当前页面为平台游戏页面时,通过所述DLL在所述IE内核的浏览器中加载与平台游戏相匹配的第二工具条。The second loading module 7124 is configured to load a second tool bar matching the platform game in the browser of the IE kernel through the DLL when the tag information indicates that the current page is a platform game page.

第三加载模块7126,用于在所述标签信息指示所述当前页面为客户端游戏页面时,通过所述DLL在所述IE内核的浏览器中加载与客户端游戏相匹配的第三工具条。The third loading module 7126 is configured to load a third tool bar matching the client game in the browser of the IE kernel through the DLL when the tag information indicates that the current page is a client game page .

综上所述,本实施例所述的一种在浏览器中加载工具条的装置,当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知,并将所述消息通知发送至独立于浏览器的应用程序;然后响应独立于浏览器的应用程序返回的调用请求,调用动态链接库DLL,并通过所述DLL在所述IE内核的浏览器中加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。In summary, a device for loading a tool bar in a browser described in this embodiment generates a message notification when the current page of the browser with the IE kernel triggers a page loading event, and sends the message notification to The browser-independent application program; then responding to the call request returned by the browser-independent application program, calling the dynamic link library DLL, and loading the set toolbar in the browser of the IE kernel through the DLL. The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

进一步地,所述在浏览器中加载工具条的装置可以根据页面属性,加载与所述页面属性相匹配的工具条,且,加载的该工具条中的功能选项也与页面属性相匹配,可以适应不同的页面需求,同时避免了多余的无效功能选项的加载。如,页面C中可以进行登录操作,则对应加载的工具条中可以包括登录功能选项。页面D中不可以进行登录操作,则登录功能选项对于页面D来说是多余的无效功能选项,在本实施例中,所述在浏览器中加载工具条的装置在加载页面D对应的工具条时,该工具条中则不包括登录功能选项,避免了无效功能选项的加载,向用户提供完整准确的与页面相适应的工具条,匹配度高,避免了错误操作,进一步提高了操作效率,及用户体验。Further, the device for loading a tool bar in the browser can load a tool bar that matches the page property according to the page property, and the function options in the loaded tool bar also match the page property, and can Adapt to different page requirements, while avoiding the loading of redundant invalid function options. For example, if a login operation can be performed on page C, then the corresponding loaded toolbar can include a login function option. If the login operation is not allowed in page D, then the login function option is a redundant invalid function option for page D. In this embodiment, the device for loading the tool bar in the browser loads the tool bar corresponding to page D , the toolbar does not include the login function option, avoiding the loading of invalid function options, providing users with a complete and accurate toolbar suitable for the page, with a high degree of matching, avoiding erroneous operations, and further improving operation efficiency. and user experience.

实施例八Embodiment eight

参照图9,示出了本发明第八实施例中一种加载工具条的装置的结构框图。Referring to FIG. 9 , it shows a structural block diagram of a device for loading tool bars in the eighth embodiment of the present invention.

在本实施例中,所述加载工具条的装置,包括:In this embodiment, the device for loading a toolbar includes:

消息通知接收模块802,用于接收IE内核的浏览器在预置函数的指示下通过设定接口发送的、所述IE内核的浏览器当前页面的页面加载事件对应的消息通知。The message notification receiving module 802 is configured to receive the message notification corresponding to the page loading event of the current page of the browser of the IE kernel sent by the browser of the IE kernel through the setting interface under the instruction of the preset function.

其中,所述消息通知中携带有所述页面加载事件信息。Wherein, the message notification carries the page loading event information.

事件信息获取模块804,用于在接收到所述消息通知时,获取所述消息通知中的页面加载事件信息。The event information acquiring module 804 is configured to acquire the page loading event information in the message notification when the message notification is received.

解析模块806,用于解析所述页面加载事件信息,获取所述当前页面的页面信息。The parsing module 806 is configured to parse the page loading event information and acquire the page information of the current page.

比较模块808,用于将所述页面信息与预置标准信息进行比较。A comparing module 808, configured to compare the page information with preset standard information.

请求发送模块810,用于当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载设定的工具条。Request sending module 810, for when described page information matches with preset standard information, send calling request to the browser of described IE kernel, to request the browser of described IE kernel to call dynamic link library DLL, load device specified toolbar.

综上所述,本实施例所述的一种加载工具条的装置,当接收到IE内核的浏览器发送的消息通知时,获取所述消息通知中的页面加载事件信息,并进一步获取页面信息。当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。To sum up, the device for loading a tool bar described in this embodiment, when receiving the message notification sent by the browser of the IE kernel, obtains the page loading event information in the message notification, and further obtains the page information . When the page information matches the preset standard information, a call request is sent to the browser with the IE core to request the browser with the IE core to call the dynamic link library DLL to load the set toolbar. The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

实施例九Embodiment nine

参照图10,示出了本发明第九实施例中一种加载工具条的装置的结构框图。Referring to FIG. 10 , it shows a structural block diagram of a device for loading a tool bar in the ninth embodiment of the present invention.

在本实施例中,所述加载工具条的装置,包括:In this embodiment, the device for loading a toolbar includes:

注入模块902,用于将预置函数和DLL通过BHO注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述DLL。The injection module 902 is configured to inject preset functions and DLLs into the IE core browser through BHO, so that the IE core browsers acquire and load the preset functions and the DLL.

较佳地,所述注入模块902,具体可以用于将所述预置函数和所述DLL通过BHO注入所述IE内核的浏览器的主进程中。Preferably, the injection module 902 can be specifically configured to inject the preset function and the DLL into the main process of the browser of the IE kernel through BHO.

消息通知接收模块904,用于接收IE内核的浏览器在预置函数的指示下通过设定接口发送的、所述IE内核的浏览器当前页面的页面加载事件对应的消息通知。The message notification receiving module 904 is configured to receive the message notification corresponding to the page loading event of the current page of the browser of the IE kernel sent by the browser of the IE kernel through the setting interface under the instruction of the preset function.

其中,所述消息通知中携带有所述页面加载事件信息。所述设定接口可以是IWebBrowser接口。Wherein, the message notification carries the page loading event information. The setting interface may be an IWebBrowser interface.

在IE内核的浏览器中,当前页面的加载状态可以包括但不仅限于:加载请求状态、访问完成状态、文档建立状态和页面加载完成状态。较佳地,所述消息通知接收模块904,具体可以用于接收IE内核的浏览器在所述当前页面的加载状态为访问完成状态时、在预置函数的指示下通过设定接口发送的所述IE内核的浏览器当前页面的页面加载事件对应的消息通知。In the browser with the IE core, the loading status of the current page may include but not limited to: loading request status, access completion status, document creation status and page loading completion status. Preferably, the message notification receiving module 904 can specifically be used to receive all the information sent by the browser of the IE kernel through the setting interface under the instruction of the preset function when the loading status of the current page is the access completion status. Describes the message notification corresponding to the page loading event of the current page of the browser in the IE kernel.

事件信息获取模块906,用于在接收到所述消息通知时,获取所述消息通知中的页面加载事件信息。The event information acquiring module 906 is configured to acquire the page loading event information in the message notification when the message notification is received.

解析模块908,用于解析所述页面加载事件信息,获取所述当前页面的页面信息。The parsing module 908 is configured to parse the page loading event information and acquire the page information of the current page.

较佳地,所述解析模块908,具体可以用于解析所述页面加载事件信息,获取所述当前页面的统一资源定位符URL和标题Title。Preferably, the parsing module 908 can be specifically configured to parse the page loading event information, and obtain the URL and Title of the current page.

比较模块910,用于将所述页面信息与预置标准信息进行比较。A comparing module 910, configured to compare the page information with preset standard information.

较佳地,所述比较模块910,具体可以用于将所述当前页面的URL和Title与所述预置标准信息进行比较。其中,所述预置标准信息对应指示的页面是游戏页面;在所述当前页面的URL和Title与所述预置标准信息相匹配时,则确定所述页面信息与预置标准信息相匹配。Preferably, the comparison module 910 can be specifically configured to compare the URL and Title of the current page with the preset standard information. Wherein, the page correspondingly indicated by the preset standard information is a game page; when the URL and Title of the current page match the preset standard information, it is determined that the page information matches the preset standard information.

调用请求生成模块912,用于根据所述预置标准信息确定所述当前页面的页面属性,生成携带标签信息的调用请求。The call request generating module 912 is configured to determine the page attribute of the current page according to the preset standard information, and generate a call request carrying tag information.

其中,所述标签信息用于指示所述当前页面的页面属性。所述页面属性包括:网页游戏页面、平台游戏页面和客户端游戏页面。Wherein, the tag information is used to indicate the page attributes of the current page. The page attributes include: web page game page, platform game page and client game page.

对应地,Correspondingly,

所述标签信息包括第一标签信息、第二标签信息和第三标签信息;其中,所述第一标签信息用于指示所述当前页面的页面属性为网页游戏页面;所述第二标签信息用于指示所述当前页面的页面属性为平台游戏页面;所述第三标签信息用于指示所述当前页面的页面属性为客户端游戏页面。The tag information includes first tag information, second tag information and third tag information; wherein, the first tag information is used to indicate that the page attribute of the current page is a webpage game page; the second tag information uses The page attribute of the current page is used to indicate that the page attribute of the current page is a platform game page; the third tag information is used to indicate that the page attribute of the current page is a client game page.

在本实施例中,所述调用请求生成模块912,可以包括:In this embodiment, the call request generation module 912 may include:

第一调用请求生成模块9122,用于在根据所述预置标准信息确定所述当前页面为网页游戏页面时,生成携带所述第一标签信息的调用请求。The first call request generation module 9122 is configured to generate a call request carrying the first tag information when it is determined according to the preset standard information that the current page is a webpage game page.

第二调用请求生成模块9124,用于在根据所述预置标准信息确定所述当前页面为平台游戏页面时,生成携带所述第二标签信息的调用请求。The second call request generating module 9124 is configured to generate a call request carrying the second tag information when it is determined according to the preset standard information that the current page is a platform game page.

第三调用请求生成模块9126,用于在根据所述预置标准信息确定所述当前页面为客户端游戏页面时,生成携带所述第三标签信息的调用请求。The third call request generation module 9126 is configured to generate a call request carrying the third tag information when it is determined according to the preset standard information that the current page is a client game page.

请求发送模块914,用于当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载设定的工具条。Request sending module 914, for when described page information matches with preset standard information, send calling request to the browser of described IE core, to request the browser of described IE core to call dynamic link library DLL, load device specified toolbar.

在本实施例中,所述请求发送模块914,包括:In this embodiment, the request sending module 914 includes:

第一请求发送模块9142,用于在所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送携带所述第一标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载第一工具条。其中,所述第一工具条中的功能选项与网页游戏相匹配。The first request sending module 9142 is configured to send a call request carrying the first tag information to the browser of the IE kernel when the page information matches the preset standard information, so as to request the IE kernel's The browser invokes the dynamic link library DLL to load the first toolbar. Wherein, the function options in the first tool bar match the web game.

第二请求发送模块9144,用于在所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送携带所述第二标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载第二工具条。其中,所述第二工具条中的功能选项与平台游戏相匹配。The second request sending module 9144 is configured to send a call request carrying the second tag information to the browser of the IE kernel when the page information matches the preset standard information, so as to request the IE kernel's The browser invokes the dynamic link library DLL to load the second toolbar. Wherein, the function options in the second tool bar match the platform game.

第三请求发送模块9146,用于在所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送携带所述第三标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载第三工具条。其中,所述第三工具条中的功能选项与客户端游戏相匹配。The third request sending module 9146 is configured to send a call request carrying the third tag information to the browser of the IE core when the page information matches the preset standard information, so as to request the IE core's The browser invokes the dynamic link library DLL to load the third toolbar. Wherein, the function options in the third tool bar match the client game.

综上所述,本实施例所述的一种加载工具条的装置,当接收到IE内核的浏览器发送的消息通知时,获取所述消息通知中的页面加载事件信息,并进一步获取页面信息。当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载设定的工具条。用户可以通过加载在IE内核的浏览器侧的设定工具条对所述IE内核的浏览器中的当前页面进行快捷操作,如,用户可以通过对所述设定工具条进行操作,直接登录账户,不再需要用户去页面中查找登录选项的所在位置,操作简单快捷,提高了操作效率。To sum up, the device for loading a tool bar described in this embodiment, when receiving the message notification sent by the browser of the IE kernel, obtains the page loading event information in the message notification, and further obtains the page information . When the page information matches the preset standard information, a call request is sent to the browser with the IE core to request the browser with the IE core to call the dynamic link library DLL to load the set toolbar. The user can perform shortcut operations on the current page in the browser of the IE kernel through the setting toolbar loaded on the browser side of the IE kernel. For example, the user can directly log in to the account by operating the setting toolbar , it is no longer necessary for the user to find the location of the login option on the page, the operation is simple and fast, and the operation efficiency is improved.

进一步地,所述一种加载工具条的装置可以根据页面属性,生成携带与页面属性相匹配的标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载与所述页面属性相匹配的工具条,可以适应不同的页面需求,同时避免了多余的无效功能选项的加载。如,页面C中可以进行登录操作,则对应生成携带与页面C的页面属性相匹配的标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载包括登录功能选项的工具条。页面D中不可以进行登录操作,则对应生成携带与页面D的页面属性相匹配的标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库DLL,加载与页面D对应匹配的工具条,该工具条中则可以不包括登录功能选项。避免了无效功能选项的加载,向用户提供完整准确的与页面相适应的工具条,匹配度高,避免了错误操作,进一步提高了操作效率,及用户体验。Further, the device for loading a tool bar can generate a call request carrying label information matching the page property according to the page property, so as to request the browser of the IE kernel to call the dynamic link library DLL to load the Toolbars with matching page attributes can adapt to different page requirements, while avoiding the loading of redundant invalid function options. For example, the login operation can be performed in page C, then correspondingly generate a call request carrying label information matching with the page attribute of page C, to request the browser of the IE kernel to call the dynamic link library DLL, and load the DLL including the login function option toolbar. If the login operation is not allowed in the page D, a call request carrying label information matching the page attribute of the page D is correspondingly generated, so as to request the browser of the IE kernel to call the dynamic link library DLL, and load the corresponding matching page DLL. The tool bar may not include the login function option in the tool bar. It avoids the loading of invalid function options, provides users with a complete and accurate tool bar suitable for the page, has a high degree of matching, avoids wrong operations, and further improves operation efficiency and user experience.

对于上述装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the above-mentioned device embodiments, because they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的加载工具条装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the loading tool bar device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了A1、一种加载工具条的方法,所述方法包括:The invention discloses A1, a method for loading a toolbar, the method comprising:

当IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知;其中,所述消息通知中携带有所述页面加载事件信息;When the current page of the browser of the IE kernel triggers the page loading event, a message notification is generated; wherein, the page loading event information is carried in the message notification;

在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序;Under the instruction of the preset function, the message notification is sent to the application program independent of the browser through the setting interface in the browser of the IE kernel;

接收所述独立于浏览器的应用程序返回的调用请求;receiving the call request returned by the browser-independent application;

响应所述调用请求,调用动态链接库,并通过所述动态链接库在所述IE内核的浏览器中加载设定的工具条;Respond to the calling request, call the dynamic link library, and load the toolbar set in the browser of the IE kernel by the dynamic link library;

其中,所述预置函数和所述动态链接库由所述独立于浏览器的应用程序通过浏览器辅助对象注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述动态链接库。Wherein, the preset function and the dynamic link library are injected into the browser of the IE core by the browser-independent application program through the browser auxiliary object, so that the browser of the IE core acquires and loads the The preset function and the dynamic link library.

A2、如A1所述的方法,所述页面加载事件信息包括:所述当前页面的统一资源定位符和标题。A2. The method described in A1, wherein the page loading event information includes: the uniform resource locator and title of the current page.

A3、如A2所述的方法,所述接收所述独立于浏览器的应用程序返回的调用请求,包括:A3. The method as described in A2, the receiving the call request returned by the browser-independent application program includes:

接收所述独立于浏览器的应用程序在接收到所述消息通知,并确定所述消息通知中的统一资源定位符和标题与预置标准信息相匹配之后返回的调用请求;其中,所述预置标准信息对应指示的页面是游戏页面。receiving the call request returned by the browser-independent application program after receiving the message notification and determining that the uniform resource locator and title in the message notification match the preset standard information; wherein, the preset The page corresponding to the setting standard information is a game page.

A4、如A1所述,在所述生成消息通知的步骤之后,所述方法还包括:A4. As described in A1, after the step of generating a message notification, the method further includes:

确定所述当前页面的加载状态;其中,所述加载状态包括:加载请求状态、访问完成状态、文档建立状态和页面加载完成状态。Determine the loading status of the current page; wherein, the loading status includes: loading request status, access completion status, document creation status and page loading completion status.

A5、如A4所述的方法,所述在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序,包括:A5, the method as described in A4, under the instruction of preset function, described message notification is sent to the application program independent of browser by the setting interface in the browser of described IE core, including:

当确定所述当前页面的加载状态为访问完成状态时,在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序。When it is determined that the loading state of the current page is the access completion state, under the instruction of the preset function, the message notification is sent to the application program independent of the browser through the setting interface in the browser of the IE kernel .

A6、如A1所述的方法,A6. The method described in A1,

所述设定的工具条中包括一个或多个功能选项;The tool bar of the setting includes one or more function options;

所述调用请求中携带有标签信息,所述标签信息用于指示所述当前页面的页面属性。The call request carries tag information, and the tag information is used to indicate the page attributes of the current page.

A7、如A6所述的方法,所述通过所述动态链接库在所述IE内核的浏览器中加载设定的工具条,包括:A7, the method as described in A6, described loading the tool bar of setting in the browser of described IE kernel by described dynamic link library, comprising:

根据所述标签信息,通过所述动态链接库在所述IE内核的浏览器中加载与所述标签信息相匹配的工具条;According to the label information, load the tool bar matching the label information in the browser of the IE kernel through the dynamic link library;

其中,所述设定的工具条包括多种,不同的工具条与不同的标签信息相匹配。Wherein, the set tool bar includes multiple types, and different tool bars match different label information.

A8、如A6或A7所述的方法,所述页面属性包括:网页游戏页面、平台游戏页面和客户端游戏页面;A8, the method as described in A6 or A7, the page attributes include: web page game page, platform game page and client game page;

所述通过所述动态链接库在所述IE内核的浏览器中加载设定的工具条,包括:The described tool bar that loads setting in the browser of described IE kernel by described dynamic link library, comprises:

当所述标签信息指示所述当前页面为网页游戏页面时,通过所述动态链接库在所述IE内核的浏览器中加载与网页游戏相匹配的第一工具条;When the tag information indicates that the current page is a webpage game page, load the first tool bar matching the webpage game in the browser of the IE kernel through the dynamic link library;

当所述标签信息指示所述当前页面为平台游戏页面时,通过所述动态链接库在所述IE内核的浏览器中加载与平台游戏相匹配的第二工具条;When the label information indicates that the current page is a platform game page, load the second tool bar matching the platform game in the browser of the IE kernel through the dynamic link library;

当所述标签信息指示所述当前页面为客户端游戏页面时,通过所述动态链接库在所述IE内核的浏览器中加载与客户端游戏相匹配的第三工具条。When the tag information indicates that the current page is a client game page, a third toolbar matching the client game is loaded in the browser with the IE kernel through the dynamic link library.

A9、如A1所述的方法,所述预置函数和所述动态链接库由所述独立于浏览器的应用程序通过浏览器辅助对象注入所述IE内核的浏览器,包括:A9, the method as described in A1, described preset function and described dynamic link library are injected into the browser of described IE kernel by browser auxiliary object by described browser-independent application program, comprising:

所述预置函数和所述动态链接库由网盾通过浏览器辅助对象注入所述IE内核的浏览器。The preset function and the dynamic link library are injected into the browser of the IE kernel by the network shield through the browser auxiliary object.

A10、如A1所述的方法,所述预置函数和所述动态链接库由所述独立于浏览器的应用程序通过浏览器辅助对象注入所述IE内核的浏览器,包括:A10, the method as described in A1, described preset function and described dynamic link storehouse are injected into the browser of described IE kernel by browser auxiliary object by described browser-independent application program, comprising:

所述预置函数和所述动态链接库由所述独立于浏览器的应用程序通过浏览器辅助对象注入至所述IE内核的浏览器的主进程中。The preset function and the dynamic link library are injected into the main process of the browser of the IE kernel by the browser-independent application program through the browser auxiliary object.

A11、如A1所述的方法,所述设定接口为IWebBrowser接口。A11. The method described in A1, wherein the setting interface is an IWebBrowser interface.

本发明还公开了B12、一种加载工具条的方法,所述方法包括:The present invention also discloses B12, a method for loading a toolbar, the method comprising:

接收IE内核的浏览器在预置函数的指示下通过设定接口发送的、所述IE内核的浏览器当前页面的页面加载事件对应的消息通知;其中,所述消息通知中携带有所述页面加载事件信息;Receive the message notification corresponding to the page loading event of the current page of the browser of the IE kernel sent by the browser of the IE kernel through the setting interface under the instruction of the preset function; wherein, the message notification carries the page load event information;

当接收到所述消息通知时,获取所述消息通知中的页面加载事件信息;When receiving the message notification, acquire the page loading event information in the message notification;

解析所述页面加载事件信息,获取所述当前页面的页面信息;Analyzing the page loading event information to obtain the page information of the current page;

将所述页面信息与预置标准信息进行比较;comparing the page information with preset standard information;

当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库,加载设定的工具条。When the page information matches the preset standard information, a call request is sent to the browser with the IE core to request the browser with the IE core to call the dynamic link library and load the set toolbar.

B13、如B12所述的方法,所述解析所述页面加载事件信息,获取所述当前页面的页面信息,包括:B13, the method as described in B12, described parsing described page loading event information, obtains the page information of described current page, comprises:

解析所述页面加载事件信息,获取所述当前页面的统一资源定位符和标题。Analyzing the page loading event information to obtain the uniform resource locator and title of the current page.

B14、如B13所述的方法,所述将所述页面信息与预置标准信息进行比较,包括:B14, the method as described in B13, the described page information is compared with preset standard information, including:

将所述当前页面的统一资源定位符和标题与所述预置标准信息进行比较;其中,所述预置标准信息对应指示的页面是游戏页面;Comparing the uniform resource locator and title of the current page with the preset standard information; wherein, the page correspondingly indicated by the preset standard information is a game page;

当所述当前页面的统一资源定位符和标题与所述预置标准信息相匹配时,则确定所述页面信息与预置标准信息相匹配。When the uniform resource locator and title of the current page match the preset standard information, it is determined that the page information matches the preset standard information.

B15、如B12所述的方法,当前页面的加载状态包括:加载请求状态、访问完成状态、文档建立状态和页面加载完成状态;B15, the method as described in B12, the loading status of the current page includes: loading request status, access completion status, document creation status and page loading completion status;

所述接收IE内核的浏览器在预置函数的指示下通过设定接口发送的所述IE内核的浏览器当前页面的页面加载事件对应的消息通知,包括:The browser receiving the IE kernel sends the message notification corresponding to the page loading event of the browser current page of the IE kernel sent by setting the interface under the instruction of the preset function, including:

接收IE内核的浏览器在所述当前页面的加载状态为访问完成状态时、在预置函数的指示下通过设定接口发送的所述IE内核的浏览器当前页面的页面加载事件对应的消息通知。Receive the message notification corresponding to the page loading event of the browser current page of the IE kernel sent by the browser of the IE kernel through the setting interface when the loading state of the current page is the access completion state under the instruction of the preset function .

B16、如B12所述的方法,在所述向所述IE内核的浏览器发送调用请求的步骤之前,所述方法还包括:B16, the method as described in B12, before the described step of sending call request to the browser of described IE core, described method also includes:

根据所述预置标准信息确定所述当前页面的页面属性,生成携带标签信息的调用请求;其中,所述标签信息用于指示所述当前页面的页面属性。Determine the page attribute of the current page according to the preset standard information, and generate a call request carrying tag information; wherein the tag information is used to indicate the page attribute of the current page.

B17、如B16所述的方法,B17. The method as described in B16,

所述页面属性包括:网页游戏页面、平台游戏页面和客户端游戏页面;The page attributes include: web page game page, platform game page and client game page;

所述标签信息包括第一标签信息、第二标签信息和第三标签信息;其中,所述第一标签信息用于指示所述当前页面的页面属性为网页游戏页面;所述第二标签信息用于指示所述当前页面的页面属性为平台游戏页面;所述第三标签信息用于指示所述当前页面的页面属性为客户端游戏页面。The tag information includes first tag information, second tag information and third tag information; wherein, the first tag information is used to indicate that the page attribute of the current page is a webpage game page; the second tag information uses The page attribute of the current page is used to indicate that the page attribute of the current page is a platform game page; the third tag information is used to indicate that the page attribute of the current page is a client game page.

B18、如B17所述的方法,所述根据所述预置标准信息确定所述当前页面的页面属性,生成携带标签信息的调用请求,包括:B18. The method as described in B17, said determining the page attribute of said current page according to said preset standard information, generating a call request carrying label information, including:

当根据所述预置标准信息确定所述当前页面为网页游戏页面时,生成携带所述第一标签信息的调用请求;When it is determined according to the preset standard information that the current page is a webpage game page, generate a call request carrying the first tag information;

当根据所述预置标准信息确定所述当前页面为平台游戏页面时,生成携带所述第二标签信息的调用请求;When it is determined according to the preset standard information that the current page is a platform game page, generate a call request carrying the second tag information;

当根据所述预置标准信息确定所述当前页面为客户端游戏页面时,生成携带所述第三标签信息的调用请求。When it is determined according to the preset standard information that the current page is a client game page, a call request carrying the third tag information is generated.

B19、如B18所述的方法,所述向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库,加载设定的工具条,包括:B19, the method as described in B18, described sending call request to the browser of described IE core, to request the browser of described IE core to call dynamic link library, load the tool bar of setting, comprise:

向所述IE内核的浏览器发送携带所述第一标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库,加载第一工具条;其中,所述第一工具条中的功能选项与网页游戏相匹配;Send the calling request that carries described first tag information to the browser of described IE kernel, call dynamic link library with the browser of request described IE kernel, load the first toolbar; Wherein, in the first toolbar Function options match web games;

或,or,

向所述IE内核的浏览器发送携带所述第二标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库,加载第二工具条;其中,所述第二工具条中的功能选项与平台游戏相匹配;Send the calling request that carries described second label information to the browser of described IE kernel, call dynamic link library with the browser of request described IE kernel, load the second toolbar; Wherein, in the second toolbar Feature options to match platformer games;

或,or,

向所述IE内核的浏览器发送携带所述第三标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库,加载第三工具条;其中,所述第三工具条中的功能选项与客户端游戏相匹配。Send the calling request that carries described the 3rd tag information to the browser of described IE core, call the dynamic link library with the browser of requesting described IE core, load the 3rd toolbar; Wherein, in the 3rd toolbar Feature options match client games.

B20、如B12所述的方法,在所述接收IE内核的浏览器在预置函数的指示下通过设定接口发送的所述IE内核的浏览器当前页面的页面加载事件对应的消息通知的步骤之前,所述方法还包括:B20, the method as described in B12, the step of the message notification corresponding to the page loading event of the browser current page of the browser current page of the described IE kernel that the browser receiving the IE kernel sends by setting the interface under the instruction of the preset function Previously, the method further included:

将所述预置函数和所述动态链接库通过浏览器辅助对象注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述动态链接库。The preset function and the dynamic link library are injected into the IE core browser through the browser auxiliary object, so that the IE core browser obtains and loads the preset function and the dynamic link library.

B21、如B20所述的方法,所述将所述预置函数和所述动态链接库通过浏览器辅助对象注入所述IE内核的浏览器,包括:B21, the method as described in B20, described described preset function and described dynamic link library are injected into the browser of described IE kernel by browser auxiliary object, comprising:

将所述预置函数和所述动态链接库通过浏览器辅助对象注入所述IE内核的浏览器的主进程中。The preset function and the dynamic link library are injected into the main process of the browser of the IE kernel through the browser auxiliary object.

B22、如B12所述的方法,所述设定接口为IWebBrowser接口。B22. The method as described in B12, wherein the setting interface is an IWebBrowser interface.

本发明还公开了C23、一种加载工具条的装置,包括:The invention also discloses C23, a device for loading tool bars, including:

生成模块,用于在IE内核的浏览器的当前页面触发页面加载事件时,生成消息通知;其中,所述消息通知中携带有所述页面加载事件信息;A generating module, configured to generate a message notification when the current page of the browser of the IE kernel triggers a page loading event; wherein, the message notification carries the page loading event information;

发送模块,用于在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序;The sending module is used to send the message notification to an application program independent of the browser through the setting interface in the browser of the IE kernel under the instruction of the preset function;

接收模块,用于接收所述独立于浏览器的应用程序返回的调用请求;a receiving module, configured to receive the call request returned by the browser-independent application;

调用模块,用于响应所述调用请求,调用动态链接库;A calling module, used to respond to the calling request and call the dynamic link library;

加载模块,用于通过所述动态链接库在所述IE内核的浏览器中加载设定的工具条;A loading module, for loading a set toolbar in the browser of the IE kernel through the dynamic link library;

其中,所述预置函数和所述动态链接库由所述独立于浏览器的应用程序通过浏览器辅助对象注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述动态链接库。Wherein, the preset function and the dynamic link library are injected into the browser of the IE core by the browser-independent application program through the browser auxiliary object, so that the browser of the IE core acquires and loads the The preset function and the dynamic link library.

C24、如C23所述的装置,所述页面加载事件信息包括:所述当前页面的统一资源定位符和标题。C24. The device according to C23, wherein the page loading event information includes: the uniform resource locator and title of the current page.

C25、如C24所述的装置,C25. A device as described in C24,

所述接收模块,具体用于接收所述独立于浏览器的应用程序在接收到所述消息通知,并确定所述消息通知中的统一资源定位符和标题与预置标准信息相匹配之后返回的调用请求;其中,所述预置标准信息对应指示的页面是游戏页面。The receiving module is specifically configured to receive the browser-independent application returned after receiving the message notification and determining that the uniform resource locator and title in the message notification match the preset standard information A call request; wherein, the page indicated by the preset standard information is a game page.

C26、如C23所述的装置,所述装置还包括:C26. The device as described in C23, the device also includes:

状态确定模块,用于在所述生成模块生成消息通知之后,确定所述当前页面的加载状态;其中,所述加载状态包括:加载请求状态、访问完成状态、文档建立状态和页面加载完成状态。A status determining module, configured to determine the loading status of the current page after the message notification is generated by the generating module; wherein the loading status includes: loading request status, access completion status, document creation status and page loading completion status.

C27、如C26所述的装置,C27. A device as described in C26,

所述发送模块,具体用于在确定所述当前页面的加载状态为访问完成状态时,在预置函数的指示下,将所述消息通知通过所述IE内核的浏览器中的设定接口发送至独立于浏览器的应用程序。The sending module is specifically used to send the message notification through the setting interface in the browser of the IE kernel under the instruction of the preset function when it is determined that the loading state of the current page is the access completion state to browser-independent applications.

C28、如C23所述的装置,C28. The device described in C23,

所述设定的工具条中包括一个或多个功能选项;The tool bar of the setting includes one or more function options;

所述调用请求中携带有标签信息,所述标签信息用于指示所述当前页面的页面属性。The call request carries tag information, and the tag information is used to indicate the page attributes of the current page.

C29、如C28所述的装置,C29. A device as described in C28,

所述加载模块,具体用于根据所述标签信息,通过所述动态链接库在所述IE内核的浏览器中加载与所述标签信息相匹配的工具条;The loading module is specifically used to load a toolbar matching the tag information in the browser of the IE kernel through the dynamic link library according to the tag information;

其中,所述设定的工具条包括多种,不同的工具条与不同的标签信息相匹配。Wherein, the set tool bar includes multiple types, and different tool bars match different label information.

C30、如C28或C29所述的装置,所述页面属性包括:网页游戏页面、平台游戏页面和客户端游戏页面;C30, the device as described in C28 or C29, the page attributes include: a webpage game page, a platform game page, and a client game page;

所述加载模块,包括:The loading module includes:

第一加载模块,用于在所述标签信息指示所述当前页面为网页游戏页面时,通过所述动态链接库在所述IE内核的浏览器中加载与网页游戏相匹配的第一工具条;The first loading module is used to load the first tool bar matching the web game in the browser of the IE kernel through the dynamic link library when the tag information indicates that the current page is a web game page;

第二加载模块,用于在所述标签信息指示所述当前页面为平台游戏页面时,通过所述动态链接库在所述IE内核的浏览器中加载与平台游戏相匹配的第二工具条;The second loading module is used to load the second tool bar matching the platform game in the browser of the IE kernel through the dynamic link library when the label information indicates that the current page is a platform game page;

第三加载模块,用于在所述标签信息指示所述当前页面为客户端游戏页面时,通过所述动态链接库在所述IE内核的浏览器中加载与客户端游戏相匹配的第三工具条。The third loading module is used to load a third tool that matches the client game in the browser of the IE kernel through the dynamic link library when the tag information indicates that the current page is a client game page strip.

C31、如C23所述的装置,C31. The device described in C23,

所述预置函数和所述动态链接库由网盾通过浏览器辅助对象注入所述IE内核的浏览器。The preset function and the dynamic link library are injected into the browser of the IE kernel by the network shield through the browser auxiliary object.

C32、如C23所述的装置,C32. The device described in C23,

所述预置函数和所述动态链接库由所述独立于浏览器的应用程序通过浏览器辅助对象注入至所述IE内核的浏览器的主进程中。The preset function and the dynamic link library are injected into the main process of the browser of the IE kernel by the browser-independent application program through the browser auxiliary object.

C33、如C23所述的装置,所述设定接口为IWeCCrowser接口。C33. The device described in C23, wherein the setting interface is an IWeCCrowser interface.

本发明还公开了D34、一种加载工具条的装置,所述装置包括:The present invention also discloses D34, a device for loading tool bars, said device comprising:

消息通知接收模块,用于接收IE内核的浏览器在预置函数的指示下通过设定接口发送的、所述IE内核的浏览器当前页面的页面加载事件对应的消息通知;其中,所述消息通知中携带有所述页面加载事件信息;The message notification receiving module is used to receive the message notification corresponding to the page loading event of the browser current page of the browser current page of the IE kernel sent by setting the interface under the instruction of the preset function for receiving the IE kernel; wherein the message The notification carries the page loading event information;

事件信息获取模块,用于在接收到所述消息通知时,获取所述消息通知中的页面加载事件信息;An event information acquiring module, configured to acquire the page loading event information in the message notification when the message notification is received;

解析模块,用于解析所述页面加载事件信息,获取所述当前页面的页面信息;A parsing module, configured to parse the page loading event information, and obtain the page information of the current page;

比较模块,用于将所述页面信息与预置标准信息进行比较;A comparison module, configured to compare the page information with preset standard information;

请求发送模块,用于当所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送调用请求,以请求所述IE内核的浏览器调用动态链接库,加载设定的工具条。Request sending module, for when described page information matches with preset standard information, send calling request to the browser of described IE core, to request the browser of described IE core to call dynamic link library, load the set toolbar.

D35、如D34所述的装置,D35. The device as described in D34,

所述解析模块,具体用于解析所述页面加载事件信息,获取所述当前页面的统一资源定位符和标题。The parsing module is specifically configured to parse the page loading event information, and obtain the URL and title of the current page.

D36、如D35所述的装置,D36. The device as described in D35,

所述比较模块,具体用于将所述当前页面的统一资源定位符和标题与所述预置标准信息进行比较;其中,所述预置标准信息对应指示的页面是游戏页面;在所述当前页面的统一资源定位符和标题与所述预置标准信息相匹配时,则确定所述页面信息与预置标准信息相匹配。The comparison module is specifically configured to compare the uniform resource locator and title of the current page with the preset standard information; wherein, the page correspondingly indicated by the preset standard information is a game page; When the uniform resource locator and title of the page match the preset standard information, it is determined that the page information matches the preset standard information.

D37、如D34所述的装置,当前页面的加载状态包括:加载请求状态、访问完成状态、文档建立状态和页面加载完成状态;D37. The device as described in D34, the loading status of the current page includes: loading request status, access completion status, document creation status and page loading completion status;

所述消息通知接收模块,具体用于接收IE内核的浏览器在所述当前页面的加载状态为访问完成状态时、在预置函数的指示下通过设定接口发送的所述IE内核的浏览器当前页面的页面加载事件对应的消息通知。The message notification receiving module is specifically used to receive the browser of the IE kernel sent by the setting interface under the instruction of the preset function when the loading state of the current page is the access completion state of the browser of the IE kernel The message notification corresponding to the page loading event of the current page.

D38、D34所述的装置,所述装置还包括:The device described in D38 and D34, which also includes:

调用请求生成模块,用于在所述请求发送模块向所述IE内核的浏览器发送调用请求之前,根据所述预置标准信息确定所述当前页面的页面属性,生成携带标签信息的调用请求;其中,所述标签信息用于指示所述当前页面的页面属性。A call request generating module, used to determine the page attributes of the current page according to the preset standard information before the request sending module sends a call request to the browser of the IE kernel, and generate a call request carrying tag information; Wherein, the tag information is used to indicate the page attributes of the current page.

D39、如D38所述的装置,D39. The device as described in D38,

所述页面属性包括:网页游戏页面、平台游戏页面和客户端游戏页面;The page attributes include: web page game page, platform game page and client game page;

所述标签信息包括第一标签信息、第二标签信息和第三标签信息;其中,所述第一标签信息用于指示所述当前页面的页面属性为网页游戏页面;所述第二标签信息用于指示所述当前页面的页面属性为平台游戏页面;所述第三标签信息用于指示所述当前页面的页面属性为客户端游戏页面。The tag information includes first tag information, second tag information and third tag information; wherein, the first tag information is used to indicate that the page attribute of the current page is a webpage game page; the second tag information uses The page attribute of the current page is used to indicate that the page attribute of the current page is a platform game page; the third tag information is used to indicate that the page attribute of the current page is a client game page.

D40、如D39所述的装置,所述调用请求生成模块,包括:D40. The device as described in D39, the calling request generation module includes:

第一调用请求生成模块,用于在根据所述预置标准信息确定所述当前页面为网页游戏页面时,生成携带所述第一标签信息的调用请求;A first call request generating module, configured to generate a call request carrying the first tag information when the current page is determined to be a webpage game page according to the preset standard information;

第二调用请求生成模块,用于在根据所述预置标准信息确定所述当前页面为平台游戏页面时,生成携带所述第二标签信息的调用请求;A second call request generating module, configured to generate a call request carrying the second tag information when determining that the current page is a platform game page according to the preset standard information;

第三调用请求生成模块,用于在根据所述预置标准信息确定所述当前页面为客户端游戏页面时,生成携带所述第三标签信息的调用请求。A third call request generating module, configured to generate a call request carrying the third tag information when it is determined according to the preset standard information that the current page is a client game page.

D41、如D40所述的装置,D41. A device as described in D40,

所述请求发送模块,包括:The request sending module includes:

第一请求发送模块,用于在所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送携带所述第一标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库,加载第一工具条;其中,所述第一工具条中的功能选项与网页游戏相匹配;A first request sending module, configured to send a call request carrying the first label information to the browser of the IE kernel when the page information matches the preset standard information, so as to request browsing of the IE kernel The device calls the dynamic link library to load the first tool bar; wherein, the function options in the first tool bar match the web game;

第二请求发送模块,用于在所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送携带所述第二标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库,加载第二工具条;其中,所述第二工具条中的功能选项与平台游戏相匹配;The second request sending module is configured to send a call request carrying the second tag information to the browser of the IE kernel when the page information matches the preset standard information, so as to request browsing of the IE kernel The device calls the dynamic link library to load the second tool bar; wherein, the function options in the second tool bar match the platform game;

第三请求发送模块,用于在所述页面信息与预置标准信息相匹配时,向所述IE内核的浏览器发送携带所述第三标签信息的调用请求,以请求所述IE内核的浏览器调用动态链接库,加载第三工具条;其中,所述第三工具条中的功能选项与客户端游戏相匹配。A third request sending module, configured to send a call request carrying the third label information to the browser of the IE kernel when the page information matches the preset standard information, so as to request browsing of the IE kernel The browser calls the dynamic link library to load the third tool bar; wherein, the function options in the third tool bar match the client game.

D42、如D34所述的装置,所述装置还包括:D42. The device as described in D34, said device further comprising:

注入模块,用于在所述消息通知接收模块接收IE内核的浏览器在预置函数的指示下通过设定接口发送的所述IE内核的浏览器当前页面的页面加载事件对应的消息通知之前,将所述预置函数和所述动态链接库通过浏览器辅助对象注入所述IE内核的浏览器,以使所述IE内核的浏览器获取并加载所述预置函数和所述动态链接库。Injection module, for the browser of described IE kernel receiving the message notification corresponding to the page loading event of the current page of the browser current page of the described IE kernel sent by setting interface under the instruction of preset function before described message notification receiving module, The preset function and the dynamic link library are injected into the IE core browser through the browser auxiliary object, so that the IE core browser obtains and loads the preset function and the dynamic link library.

D43、如D42所述的装置,所述注入模块,具体用于将所述预置函数和所述动态链接库通过浏览器辅助对象注入所述IE内核的浏览器的主进程中。D43. The device as described in D42, the injection module is specifically configured to inject the preset function and the dynamic link library into the main process of the browser of the IE kernel through the browser auxiliary object.

D44、如D34所述的装置,所述设定接口为IWeDDrowser接口。D44. The device as described in D34, wherein the setting interface is an IWeDDrowser interface.

Claims (10)

1. a method for loading tool bar, is characterized in that, described method comprises:
In the time that the current page of the browser of IE kernel triggers page load events, generating messages notice; Wherein, in described message informing, carry described page load events information;
Under the instruction of preset function, described message informing is sent to the application program that is independent of browser by the setting interface in the browser of described IE kernel;
Described in reception, be independent of the call request that the application program of browser is returned;
Respond described call request, call dynamic link library, and in the browser of described IE kernel, load by described dynamic link library the tool bar of setting;
Wherein, described preset function and described dynamic link library are injected the browser of described IE kernel by browser auxiliary object by the described application program that is independent of browser, so that the browser of described IE kernel obtains and load described preset function and described dynamic link library.
2. the method for claim 1, is characterized in that, described page load events information comprises: the URL(uniform resource locator) of described current page and title.
3. method as claimed in claim 2, is characterized in that, is independent of the call request that the application program of browser is returned described in described reception, comprising:
The application program that is independent of browser described in reception is receiving described message informing, and determines URL(uniform resource locator) in described message informing and title and the pre-set criteria information call request of returning afterwards that matches; Wherein, the page of the corresponding instruction of described pre-set criteria information is games page.
4. as claimed in claim 1, it is characterized in that, after the step of described generating messages notice, described method also comprises:
Determine the stress state of described current page; Wherein, described stress state comprises: load request state, access completion status, document are set up state and page loading completion status.
5. a method for loading tool bar, is characterized in that, described method comprises:
The browser that receives IE kernel passes through to set the message informing corresponding to page load events of interface browser current page that send, described IE kernel under the instruction of preset function; Wherein, in described message informing, carry described page load events information;
In the time receiving described message informing, obtain the page load events information in described message informing;
Resolve described page load events information, obtain the page info of described current page;
Described page info and pre-set criteria information are compared;
In the time that described page info and pre-set criteria information match, send call request to the browser of described IE kernel, call dynamic link library with the browser of asking described IE kernel, load the tool bar of setting.
6. method as claimed in claim 5, is characterized in that, the described page load events of described parsing information is obtained the page info of described current page, comprising:
Resolve described page load events information, obtain URL(uniform resource locator) and the title of described current page.
7. method as claimed in claim 6, is characterized in that, described described page info and pre-set criteria information is compared, and comprising:
The URL(uniform resource locator) of described current page and title and described pre-set criteria information are compared; Wherein, the page of the corresponding instruction of described pre-set criteria information is games page;
In the time that the URL(uniform resource locator) of described current page and title and described pre-set criteria information match, determine that described page info and pre-set criteria information match.
8. method as claimed in claim 5, is characterized in that, the stress state of current page comprises: load request state, access completion status, document are set up state and page loading completion status;
The message informing corresponding to page load events of the browser current page of the described IE kernel that the browser of described reception IE kernel sends by setting interface under the instruction of preset function, comprising:
The browser that receives IE kernel is message informing corresponding to page load events that passes through the browser current page of the described IE kernel of setting interface transmission under the instruction while accessing completion status, in preset function at the stress state of described current page.
9. a device for loading tool bar, is characterized in that, comprising:
Generation module, in the time that the current page of the browser of IE kernel triggers page load events, generating messages notice; Wherein, in described message informing, carry described page load events information;
Sending module, under the instruction of preset function, is sent to by the setting interface in the browser of described IE kernel the application program that is independent of browser by described message informing;
Receiver module, the call request of returning for being independent of the application program of browser described in receiving;
Calling module, for responding described call request, calls dynamic link library;
Load-on module, for loading at the browser of described IE kernel the tool bar of setting by described dynamic link library;
Wherein, described preset function and described dynamic link library are injected the browser of described IE kernel by browser auxiliary object by the described application program that is independent of browser, so that the browser of described IE kernel obtains and load described preset function and described dynamic link library.
10. a device for loading tool bar, is characterized in that, described device comprises:
Message informing receiver module, for the browser that receives IE kernel under the instruction of preset function by setting the message informing corresponding to page load events of interface browser current page that send, described IE kernel; Wherein, in described message informing, carry described page load events information;
Event information acquisition module, in the time receiving described message informing, obtains the page load events information in described message informing;
Parsing module, for resolving described page load events information, obtains the page info of described current page;
Comparison module, for comparing described page info and pre-set criteria information;
Request sending module, in the time that described page info and pre-set criteria information match, sends call request to the browser of described IE kernel, calls dynamic link library with the browser of asking described IE kernel, loads the tool bar of setting.
CN201410295716.9A 2014-06-26 2014-06-26 A kind of method and device of loading tool bar Active CN104063246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410295716.9A CN104063246B (en) 2014-06-26 2014-06-26 A kind of method and device of loading tool bar

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410295716.9A CN104063246B (en) 2014-06-26 2014-06-26 A kind of method and device of loading tool bar

Publications (2)

Publication Number Publication Date
CN104063246A true CN104063246A (en) 2014-09-24
CN104063246B CN104063246B (en) 2017-07-28

Family

ID=51550970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410295716.9A Active CN104063246B (en) 2014-06-26 2014-06-26 A kind of method and device of loading tool bar

Country Status (1)

Country Link
CN (1) CN104063246B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004729A (en) * 2009-09-03 2011-04-06 阿里巴巴集团控股有限公司 Method and system for showing website webpage and website server
CN102999613A (en) * 2012-11-28 2013-03-27 北京奇虎科技有限公司 Method and device for loading tool window in browser
CN103019703A (en) * 2012-11-28 2013-04-03 北京奇虎科技有限公司 Method and device for loading browser tool window
CN103226486A (en) * 2013-04-23 2013-07-31 北京奇虎科技有限公司 Method and device for optimizing browser operation
CN103605924A (en) * 2013-11-28 2014-02-26 北京奇虎科技有限公司 Method and device for preventing malicious program from attacking online payment page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004729A (en) * 2009-09-03 2011-04-06 阿里巴巴集团控股有限公司 Method and system for showing website webpage and website server
CN102999613A (en) * 2012-11-28 2013-03-27 北京奇虎科技有限公司 Method and device for loading tool window in browser
CN103019703A (en) * 2012-11-28 2013-04-03 北京奇虎科技有限公司 Method and device for loading browser tool window
CN103226486A (en) * 2013-04-23 2013-07-31 北京奇虎科技有限公司 Method and device for optimizing browser operation
CN103605924A (en) * 2013-11-28 2014-02-26 北京奇虎科技有限公司 Method and device for preventing malicious program from attacking online payment page

Also Published As

Publication number Publication date
CN104063246B (en) 2017-07-28

Similar Documents

Publication Publication Date Title
US12341811B2 (en) Detecting malicious behavior using an accomplice model
KR102006396B1 (en) Identifying matching applications based on browsing activity
CN107390994B (en) Interface presentation method and device
US8631394B2 (en) Static resource processing
JP6328233B2 (en) Computer program product, system and method for optimizing web page loading
CN104572968B (en) A kind of method for updating pages and device
JP6440828B2 (en) Visibility detection of digital content
JP2016197470A (en) Reducing redirects
US20160359989A1 (en) Recording And Triggering Web And Native Mobile Application Events With Mapped Data Fields
CN104469528B (en) A kind of method, apparatus and browser client for carrying out video data loading
CN108416021B (en) Browser webpage content processing method and device, electronic equipment and readable medium
US10205678B2 (en) Systems and methods for client-side dynamic information resource activation and deactivation
CN102917059A (en) Client end and method for downloading application
CN104462571A (en) Webpage loading method and device and browser client-side
CN104021154B (en) A kind of method and apparatus scanned in a browser
CN105260421A (en) Webpage loading method and apparatus
CN104484386A (en) Information sharing method and browser client
CN105260424A (en) Processing method and apparatus for webpage browsing historical records and most common accesses of user
CN104063247B (en) The call method and system of a kind of application program
US10021210B1 (en) Providing faster data access using multiple caching servers
CN113326418A (en) Method and device for determining webpage information source and webpage quality
CN103544271B (en) Load Image in a kind of browser the method and apparatus for processing window
CN113781137B (en) Channel information display method, display device, computer system and storage medium
CN104361094A (en) Storage method and device for file in search result, and browser client
US11770437B1 (en) Techniques for integrating server-side and client-side rendered content

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230713

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing 360 Zhiling Technology Co.,Ltd.

Country or region after: China

Address before: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee before: Beijing Hongxiang Technical Service Co.,Ltd.

Country or region before: China