CN101996095A - Method and device for accessing instant messaging program to plugin - Google Patents

Method and device for accessing instant messaging program to plugin Download PDF

Info

Publication number
CN101996095A
CN101996095A CN2009101684888A CN200910168488A CN101996095A CN 101996095 A CN101996095 A CN 101996095A CN 2009101684888 A CN2009101684888 A CN 2009101684888A CN 200910168488 A CN200910168488 A CN 200910168488A CN 101996095 A CN101996095 A CN 101996095A
Authority
CN
China
Prior art keywords
window
plug
unit
insert
program
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
CN2009101684888A
Other languages
Chinese (zh)
Other versions
CN101996095B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN200910168488.8A priority Critical patent/CN101996095B/en
Publication of CN101996095A publication Critical patent/CN101996095A/en
Priority to HK11103960.7A priority patent/HK1149817A1/en
Application granted granted Critical
Publication of CN101996095B publication Critical patent/CN101996095B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a method, device and system for accessing an instant messaging program to a plugin. The method comprises: the establishment of the instant messaging (IM) program comprises opening the open window of an access region in IM program; the progress of a loader establishes an agency window as the child window of the open window, and the progress of the loader is the independent progress established by the IM program; the agency module corresponding to the agency window establishes a plugin window; and the plugin window is the child window of the agency window. Compared with the prior art, the embodiment of the invention shortens the response time of an IM interface and enhances the response efficiency between the main progress and the plugin progress when the information interaction of user interfaces (UI) is subsequently carried out.

Description

Plug-in unit inserts the method and apparatus of instant messaging program
Technical field
The application relates to applications of computer network field, and particularly plug-in unit inserts the method and apparatus of instant messaging (IM) program.
Background technology
Host program is the carrier that is used for for plug-in component operation, has also formulated the access standard of plug-in unit simultaneously, and (Instant Messaging, IM) program promptly is a host program in instant messaging generally speaking.Plug-in unit is a kind of program module, promptly be meant the access standard that meets service platform, can run on service platform and necessary function of non-service platform itself or business module.On physical form, including but not limited to dynamic link library (Dynamic Link Library, DLL).The Window-type plug-in unit is meant that plug-in unit is presented in the Instant Messenger (IM) software program with the form of an embedded window, and described embedded window is exactly a zone that is embedded into the IM program.Can be the synoptic diagram of an embedded window in the reality with reference to shown in Figure 1.Wherein, the part that goes out with the square frame frame is a weather forecast plug-in unit, and the interface that this plug-in unit is showed (insert window) is that plug-in unit provides; And the IM program has only provided a zone that can supply plug-in unit to insert.
In the prior art, there is a kind of plug-in unit to insert the method for host program, this plug-in unit and insert window all are created in detached process, be that insert window is not created by host process, this insert window is that the user is visible, this detached process also with this insert window directly as the subwindow of instant messaging open area; Insert window as the user interface between subwindow and the instant messaging program parent window (User Interface, UI) professional all leap processes are carried out, wherein, the UI business refers to IM program parent window when changing and the interacting message between the insert window.In actual applications, when the user clicks insert window on the interface of IM program, the processing code of this UI message will run on the residing detached process of insert window, simultaneously, the UI message that the IM program produces because of the variation of IM program parent window, each when being sent to the card module of insert window correspondence, all need just can carry out subsequent treatment receiving after card module is for the response of current UI message.
Therefore, there is following shortcoming simultaneously in this method: the parent window of insert window promptly be open window (being positioned at host program) with insert window lay respectively at two in-process, be exactly the striding course communication when therefore two windows carry out communication; And when IM program window and insert window carried out the UI interacting message each time, the IM program all needed parent window to wait for the return messages of subwindow, therefore, the interface response overlong time of IM program, the response efficiency at IM interface is lower.
In a word, need the urgent technical matters that solves of those skilled in the art to be exactly at present: a kind of plug-in unit of the proposition how can innovate inserts the method for instant messaging program, to solve the problem that the response time is long and response efficiency is lower of prior art median surface.
Summary of the invention
The application's technical matters to be solved provides the method that a kind of plug-in unit inserts the instant messaging program, in order to solve the problem that the response time is long and response efficiency is lower at interface.
The device that the application also provides a kind of plug-in unit to insert the instant messaging program is in order to guarantee said method realization and application in practice.
In order to address the above problem, the application discloses the method that a kind of plug-in unit inserts the instant messaging program, comprising:
In instant messaging IM software, the IM program creation comprises the open open window that inserts the zone;
The loader process is created agent window according to described open window, and described agent window is the subwindow of described open window, and described loader process is the detached process of described IM program creation;
The proxy module of described agent window correspondence is created insert window, and described insert window is the subwindow of described agent window.
Preferably, the proxy module of described agent window correspondence is created insert window, specifically comprises:
Described proxy module sends the handle of agent window to plug-in unit;
Described plug-in unit is created subwindow with the handle of described agent window as the parent window handle, and described subwindow is an insert window.
Preferably, the proxy module of described agent window correspondence is created insert window, specifically comprises:
The proxy module of described agent window correspondence is created an insert window;
Judge whether to exist other plug-in units, if then the insert window of described other plug-in unit correspondences is created in continuation; If not, process ends then.
The application provides the method for a kind of process user interface message, and the method that adopts above-mentioned plug-in unit to insert the instant messaging program inserted plug-in unit in the IM program after, this method comprised:
When the proxy module of described agent window correspondence receives user interface UI message, judge whether the processing of needs plug-in unit according to described package types;
If, then with described UI forwards to described plug-in unit, if not, then described proxy module is directly handled described UI message.
Preferably, described agent window is directly handled described UI message, specifically comprises:
Described agent window directly abandons described UI message, and perhaps, described proxy module carries out buffer memory with described UI, so that the follow-up plug-in unit that is sent to.
The application also provides a kind of plug-in unit to insert the device of instant messaging program, and this device comprises:
The IM program module is used for the software at instant messaging IM, creates to comprise the open open window that inserts the zone;
Loader process module is used for creating agent window according to described open window, and described agent window is the subwindow of described open window, and described loader process is the detached process of described IM program creation;
Proxy module, the proxy module that is used for described agent window correspondence is created insert window, and described insert window is the subwindow of described agent window.
Preferably, described proxy module specifically is used for sending the handle of agent window to plug-in unit as the parent window handle, so that described plug-in unit is created the subwindow of described parent window, described subwindow is an insert window.
Preferably, described proxy module comprises:
Create submodule, be used to create an insert window;
Judge submodule, be used to judge whether to exist other plug-in units, if then the insert window of described other plug-in unit correspondences is created in continuation; If not, process ends then.
The application also provides the system of a kind of process user interface message, and this system comprises:
Access device is used for adopting the method for claim 1 to insert plug-in unit in the IM program;
Proxy module when being used to receive user interface UI message, judges whether the processing of needs plug-in unit according to described package types;
Forwarding module, be used for when the judged result of described proxy module when being, then with described UI forwards to described plug-in unit;
Direct processing module, be used for when the judged result of described forwarding module when denying, then described agent window is then directly handled described UI message.
Preferably, described direct processing module specifically comprises:
Abandon submodule, be used for described UI message is directly abandoned;
Cache sub-module is used for described UI is carried out buffer memory, so that the follow-up plug-in unit that is sent to.
Compared with prior art, the application comprises following advantage:
In the embodiment of the present application, in instant messaging IM software, the IM program creation comprises the open open window that inserts the zone; Loader process creation agent window is as the subwindow of described open window, and described loader process is the detached process of described IM program creation; The proxy module of described agent window correspondence is created insert window, and described insert window is the subwindow of described agent window.In the embodiment of the present application, between insert window and open window, added one deck agent window again, therefore follow-up when needing to carry out the UI interacting message between open window and the insert window, just can judge at first whether this UI message needs plug-in unit to handle by agent window, thereby when plug-in unit is handled UI message, when perhaps not needing plug-in unit to handle, directly return, promptly be that this UI message processing procedure is through with, so just shorten the response time at interface, improved the response efficiency between host process and the plug-in unit process.Certainly, arbitrary product of enforcement the application might not need to reach simultaneously above-described all advantages.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiment of the application, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the synoptic diagram of insert window in the prior art;
Fig. 2 is the application's structural representation in actual applications;
Fig. 3 is the process flow diagram that a kind of window plug-in unit of the application inserts the method embodiment 1 of instant messaging program;
Fig. 4 is the process flow diagram that a kind of window plug-in unit of the application inserts the method embodiment 2 of instant messaging program;
Fig. 5 is the process flow diagram of method embodiment of a kind of process user interface message of the application;
Fig. 6 is the structured flowchart that a kind of window plug-in unit of the application inserts the device embodiment 1 of instant messaging program;
Fig. 7 is the structured flowchart that a kind of window plug-in unit of the application inserts the device embodiment 2 of instant messaging program;
Fig. 8 is the structured flowchart of system embodiment of a kind of process user interface message of the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the application's protection.
The application can be used in numerous general or special purpose calculation element environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multiprocessor device, comprise distributed computing environment of above any device or equipment or the like.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, by by communication network connected teleprocessing equipment execute the task.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
The application's main thought comprises, with reference to shown in Figure 2, be a present embodiment structural representation in actual applications, as can be seen, in the host process of instant communication program, create after the open window, the instant messaging program start loader process, by the loader process creation proxy plug-ins, and proxy plug-ins is created an agent window, and this agent window is set to the subwindow of open window on the IM interface, the in-process proxy module corresponding with agent window of loader reloads the application plug-in in the reality then, and this application plug-in is created an insert window again, and with the parent window of described agent window as this insert window.Wherein, agent window is the window that proxy plug-ins is created, and is the window on the graphical interfaces meaning, is that the user is sightless.Therefore present embodiment unlike the prior art, between insert window and open window, added one deck agent window again, therefore when needing to carry out the UI interacting message between open window and the insert window, just can judge at first whether this UI message needs the plug-in unit processing follow-up by the proxy module of agent window correspondence.UI message can be put into a formation when needing, the follow-up application plug-in that is forwarded to again promptly is to postpone the time that application plug-in is handled.When not needing application plug-in to handle, directly returning, promptly is that this UI message processing procedure is through with.So just shorten the response time at interface, improved the response efficiency between host process and the application plug-in process.
With reference to figure 3, show the process flow diagram that a kind of plug-in unit of the application inserts the method embodiment 1 of instant messaging program, can may further comprise the steps:
Step 301: in instant messaging IM software, the IM program creation comprises the open open window that inserts the zone;
In IM software, after user's login, the IM program can be created one and comprise the open open window that inserts the zone, wherein, this open window can be user's finding, can not be user's finding also, but there is such open window, can be used to insert application plug-in; Wherein, described application plug-in promptly is various types of plug-in units in the reality, and why being called application plug-in is in order to distinguish mutually with aforesaid proxy plug-ins;
Step 302: loader process creation agent window is as the subwindow of described open window, and described loader process is the detached process of described IM program creation;
When the IM program creation after the described open window, in actual applications, can after receiving that plugin manager has sent the notice that open window set up, create a loader process in addition; Wherein, described plugin manager can be used to detect the plug-in unit operating position of IM program, when detecting after open window is created, just notifies the IM program; Described loader process can be other detached processes of the host process that is different from IM program correspondence;
This loader process creation agent window, the standard A PI SetParent function oneself that this agent window can use windows to provide is set to the subwindow of open window, promptly at the in-process subwindow of loader, this agent window constructive process in practice is identical with the constructive process of other any application plug-in windows as described open window for this agent window; Concrete, described loader process can be created corresponding agent window by proxy plug-ins by creating the mode of a proxy plug-ins, and the backstage business processing code of described agent window correspondence is a proxy module; This agent window is that the user is sightless, after this agent window of loader process creation, and just can be so that at first arrive agent window by the message that variation produced of open window;
Step 303: the proxy module of described agent window correspondence is created the application plug-in window, and described insert window is the subwindow of described agent window.
The proxy module of described agent window correspondence is created the application plug-in window, concrete, described proxy module can load the application plug-in in the reality, program module by application plug-in is created the application plug-in window, and agent window is set to the parent window of this application plug-in window, promptly be described agent window and described insert window father and son's window each other, and same in-process.Simultaneously, when a plurality of plug-in units need insert the IM program, can be configured to the corresponding loader process of each application plug-in, also can be configured to a plurality of application plug-in and share some processes; Concrete, in actual applications, can be that plug-in unit is numbered by supplier, be labeled as shared or monopolize; Whether when system detects shared plug-in unit, just checking has had shared loader process to exist; If exist and just obtain the loader process that this is shared; Otherwise just create the loader process.
Principle in the present embodiment is exactly to have added one deck agent window between former father and son's window of crossing over two processes (host process and loader process), and this agent window and insert window are positioned at same process, like this in subsequent treatment UI message, just can be in same process because of the proxy module of agent window correspondence and the card module of insert window correspondence, and agent window is as one deck assistant window, can receive the UI message of open window prior to insert window, thereby at first message response is returned to the residing host program of open window by proxy module, the IM program just need not to wait for that plug-in unit handling response that UI message is returned like this, this has just reduced the mutual time between IM interface and the plug-in unit, improve the efficient of UI Message Processing, can improve the UI interactive efficiency between open window and the insert window simultaneously.
With reference to figure 4, the plug-in unit that shows the application inserts the process flow diagram of the method embodiment 2 of instant messaging program, can may further comprise the steps:
Step 401: in instant messaging IM software, the IM program creation comprises the open open window that inserts the zone;
Step 402: detached process of described IM program creation is as the loader process;
Wherein, creating the loader process promptly is to start an executable program in actual applications, the IM program can be passed to the handle hSlot of open window described loader process simultaneously, so that described loader process is created the subwindow of open window according to described handle, in practice, the loader process can be received the handle of the open window that the Windows system sends before creating window, promptly be that the loader process only needs the handle of this handle and agent window to be set to set membership to get final product; Described handle is the standard term of windows, and window handle then is used for window of unique identification;
Step 403: loader process creation agent window is as the subwindow of described open window;
Described this agent window of loader process is set to the subwindow of open window hSlot, and the handle of supposing agent window is hProxy; That wherein, creates window is operating as the windows standard operation; The title of handle can be provided with arbitrarily, only need accomplish can uniquely to get final product in any process of current I M program;
Concrete, the loader process can at first be created a proxy plug-ins in this process, create corresponding agent window by proxy plug-ins then; For example, exist a proxy module to be called proxy.dll, and after this dll is loaded the device process and loads, its internal code will be created an agent window corresponding with proxy module; Described proxy module is background program when operation one section code corresponding with agent window;
Step 404: described proxy module sends the handle of agent window to plug-in unit; Wherein, plug-in unit standard convention is fixed, and when insert window was created, residing host program can be informed insert window with the window handle of its parent window, and therefore, proxy module sends the handle hProxy of agent window to plug-in unit as the parent window handle again;
Step 405: described plug-in unit is created subwindow according to the handle of described agent window, and described subwindow is an insert window;
Need to prove, the window of plug-in unit is created by plug-in unit oneself, detailed process is, plug-in unit need oneself window be set to the subwindow handle of the window handle that host program transmits into, and in the present embodiment, concerning plug-in unit, will think that the handle of described agent window is exactly the open window handle of IM;
Promptly be that hProxy is set to oneself parent window simultaneously in this step; In actual applications, Windows directly provides api function SetParent can finish content in this step; Wherein, plug-in unit does not need to know whom the parent window that receives is when being loaded, and only needs to receive a parent window and gets final product;
Wherein, described api function SetParent can be with reference to following code:
HWND?SetParent(
HWND?hWndChild,
HWND?hWndNewParent
);
Step 406: judge whether to exist other plug-in units that need load, if then enter step 407; If not, process ends then.
The loader process continues to judge whether to exist other plug-in units after creating the insert window of a plug-in unit correspondence, if exist, then continue common other corresponding insert windows, if there is no, and process ends then.
Step 407: the insert window that continues to create described other plug-in unit correspondences.
Scheme in the present embodiment promptly is when having a plurality of plug-in unit, need at first judge whether also to exist other plug-in units, if exist, then adopt the method for introducing to continue to create insert window, and, when creating window, loader process by the IM program creation is created agent window, thereby make agent window and insert window all exist in the loader process, all need to cross over host process and plug-in unit process with user interface message all in the prior art, thereby the response time at main interface is compared with regard to long shortcoming, the described method of present embodiment can directly be handled the UI message that does not need plug-in unit to handle, perhaps by the agent window temporary cache by agent window, follow-uply handle being sent to plug-in unit, thereby improved response time at interface.
With reference to figure 5, show the process flow diagram of the method embodiment of a kind of process user of the application interface message, can may further comprise the steps:
Step 501: in instant messaging IM software, the IM program creation comprises the open open window that inserts the zone;
Step 502: loader process creation agent window is as the subwindow of described open window, and described loader process is the detached process of described IM program creation;
Step 503: the proxy module of described agent window correspondence is created insert window, and described insert window is the subwindow of described agent window;
Abovementioned steps is to insert the process of plug-in unit in current I M program;
Step 504: when described agent window received user interface UI message, the proxy module of agent window correspondence judged whether the processing of needs plug-in unit according to described package types, if, then enter step 505, if not, then enter step 506;
Wherein, when the user has carried out corresponding operation to the interface of current I M software, for example, the user drags the interface of current I M software, perhaps changed the size at current I M interface, then the IM program will be notified described agent window in the mode of window message, and then the proxy module of running background then judges whether that according to the package types that inserts the needs plug-in unit handles immediately;
Need to prove, plug-in unit self possesses some attributes, set, for example, the attribute of certain plug-in unit in open window is " according to the open window transform size ", and " background colour remains unchanged " etc., when ought act on behalf of UI message that window receives so and be background colour and taken place to change, then described agent window then can be judged as this UI message the UI message of " not needing plug-in unit to handle ", when if the UI message that agent window receives is " the window size generation conversion of IM program ", then described agent window then can be judged as this UI message the UI message that needs plug-in unit to handle; Therefore, as can be seen, according to the difference of package types in the actual conditions, and the type difference of UI message, a variety of criterions can be arranged, the present invention enumerates no longer one by one at this;
Step 505: with described UI forwards to described plug-in unit.
The proxy module of described agent window correspondence directly is forwarded to described plug-in unit with described UI message; Need to prove, when proxy module directly is forwarded to described plug-in unit with described UI message, can also be divided into more specifically, whether need plug-in unit to handle immediately, for example, size is changed (promptly being that does not put at the interface that the user drags current I M program) when the interface of IM program, and then described UI message plug-in unit need not to handle immediately, if the interface size of IM program has changed finish, then described plug-in unit can disposablely refresh insert window;
Step 506: described agent window is directly handled described UI message.
Described agent window is directly handled described UI message, can directly it be abandoned, and is left intact, and directly is back to the open window of described IM program simultaneously, represents that this is finished by the UI message processing procedure that open window triggers.In actual applications, for example, the position of insert window is fixed, so when open window changes, because the window of set membership need directly carry out interacting message, the direct processing gets final product so the subwindow of open window promptly is an agent window, need do not handled by insert window; Wherein, Windows has a cover window standard, the wherein communication that exists between father and son's window, and by the windows regulation, in variation, and after changing, windows will send message automatically as aforesaid interface size in the present embodiment;
Wherein, described step 506 can comprise at another embodiment:
Described agent window can directly abandon described UI message, and perhaps, described agent window can be carried out buffer memory with described UI, so that the follow-up plug-in unit that is sent to.
In the present embodiment, agent window can also have the particular content of UI message to carry out in advance once judging according to package types in advance, see whether all UI message all needs plug-in unit to handle, just can directly not return if do not need, so just be equivalent to some of them UI message is optimized, blocking time of on certain program, having reduced UI message just, thereby improved interface response speed, and agent window and insert window are in a process, not all UI message all need be crossed over process interaction between insert window and open window, will improve interface response speed like this.
For aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the application is not subjected to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
Corresponding with the method that the method embodiment 1 of a kind of plug-in unit access of above-mentioned the application instant messaging program is provided, referring to Fig. 6, the application also provides plug-in unit to insert the device embodiment 1 of instant messaging program, and in the present embodiment, this device can comprise:
IM program module 601 is used for the software at instant messaging IM, creates to comprise the open open window that inserts the zone;
In IM software, after user's login, the IM program module can be created one and comprise the open open window that inserts the zone, wherein, this open window can be user's finding, can not be user's finding also, but there is such open window, is used to insert plug-in unit;
Loader process module 602 is used to create the subwindow of agent window as described open window, and described loader process is the detached process of described IM program creation;
After the IM program module has been created described open window, in actual applications, can after receiving that plugin manager has sent the notice that open window set up, create a loader process in addition; Wherein, described plugin manager can be used to detect the plug-in unit operating position of IM program, when detecting after open window is created, just notifies the IM program module; Described loader process module can adopt other detached processes of the host process that is different from IM program correspondence to realize; Need to prove, owing to there is proxy module, therefore the plug-in unit process can not be directly used in the realization of loader process, because the plug-in unit process does not know how to use proxy module, has only the loader process, can allow the plug-in code that existed not need just to revise can directly use because loader process module can transparent processing indirect window (promptly being agent window); Wherein, described transparent processing can be understood as, for the open window in the IM program, mean that oneself carrying out mutual is exactly plug-in unit, for plug-in unit, the parent window that means oneself is exactly the open window of IM program conversely, just agent window " transparence ";
At the in-process subwindow of loader, this agent window is identical at the neutralize constructive process of other any insert windows of the constructive process of reality as described open window for this loader process module creation agent window, this agent window;
Proxy module 603, the proxy module that is used for described agent window correspondence is created insert window, and described insert window is the subwindow of described agent window.
Principle in the present embodiment is exactly to have added one deck agent window between former father and son's window of crossing over two processes (host process and loader process), and this agent window and insert window are positioned at same process, like this in subsequent treatment UI message, just can be in same going down town because of agent window and insert window, thereby reduced the mutual time, improve the efficient of Message Processing, can improve the UI interactive efficiency between father and son's window simultaneously.
Corresponding with the method that the method embodiment 2 of a kind of plug-in unit access of above-mentioned the application instant messaging program is provided, referring to Fig. 7, the application also provides a kind of plug-in unit to insert the embodiment 2 of the device of instant messaging program, and in the present embodiment, this device specifically can comprise:
IM program module 601 is used for the software at instant messaging IM, creates to comprise the open open window that inserts the zone;
Loader process module 602 is used to create the subwindow of agent window as described open window, and described loader process is the detached process of described IM program creation;
Wherein, creating the loader process promptly is to start an executable program in actual applications, the IM program can be passed to the handle hSlot of open window described loader process simultaneously, so that described loader process is created the subwindow of open window according to described handle; Described handle is the standard term of windows, and window handle then is used for window of unique identification;
This agent window of described loader is set to the subwindow of open window hSlot, and the handle of supposing agent window is hProxy; That wherein, creates window is operating as the windows standard operation; The title of handle can be provided with arbitrarily, only need accomplish unique getting final product in any process of current I M program;
Proxy module 603 can specifically be used for sending the handle of agent window to plug-in unit as the parent window handle in actual applications, so that described plug-in unit is created the subwindow of described parent window, described subwindow is an insert window.
Wherein, plug-in unit standard convention is fixed, and when insert window was created, residing host program can be informed the window handle of parent window, and therefore, proxy module sends the handle hProxy of agent window to plug-in unit as the parent window handle again; Comprise two submodules in the present embodiment, create submodule 701, be used to create an insert window;
Judge submodule 702, be used to judge whether to exist other plug-in units, if then the insert window of described other plug-in unit correspondences is created in continuation; If not, process ends then.
The loader process continues to judge whether to exist other plug-in units after creating the insert window of a plug-in unit correspondence, if exist, then continue common other corresponding insert windows, if there is no, and process ends then.
All need to cross over host process and plug-in unit process with user interface message all in the prior art, thereby the response time at main interface is compared with regard to long shortcoming, the described method of present embodiment, the UI message that does not need plug-in unit to handle directly can be handled by agent window, perhaps by the agent window temporary cache, follow-uply handle being sent to plug-in unit, thereby improved response time at interface.
Corresponding with the method that method embodiment provided of a kind of process user of above-mentioned the application interface message, referring to Fig. 8, the application also provides the system embodiment of a kind of process user interface message, and in the present embodiment, this system specifically can comprise:
Access device 801 is used for adopting the method for claim 1 to insert plug-in unit in the IM program;
Wherein, described access device 801 comprises:
The IM program module is used for the software at instant messaging IM, creates to comprise the open open window that inserts the zone;
Loader process module is used to create the subwindow of agent window as described open window, and described loader process is the detached process of described IM program creation;
Proxy module, the proxy module that is used for described agent window correspondence is created insert window, and described insert window is the subwindow of described agent window.
Judge module 802 when being used to receive user interface UI message, judges whether the processing of needs plug-in unit according to described package types;
Wherein, when the user has carried out corresponding operation to the interface of current I M software, for example, the user drags the interface of current I M software, perhaps changed the size at current I M interface, then the IM program will be notified described agent window in the mode of window message, and then the proxy module of running background then judges whether that according to the package types that inserts the needs plug-in unit handles immediately;
Need to prove, plug-in unit self possesses some attributes, set, for example, the attribute of certain plug-in unit in open window is " according to the open window transform size ", and " background colour remains unchanged " etc., when ought act on behalf of UI message that window receives so and be background colour and taken place to change, then described agent window then can be judged as this UI message the UI message of " not needing plug-in unit to handle ", when if the UI message that agent window receives is " the window size generation conversion of IM program ", then described agent window then can be judged as this UI message the UI message that needs plug-in unit to handle; Therefore, as can be seen, according to the difference of package types in the actual conditions, and the type difference of UI message, a variety of criterions can be arranged, the present invention enumerates no longer one by one at this;
Forwarding module 803, be used for when the judged result of described judge module when being, then with described UI forwards to described plug-in unit;
Described forwarding module directly is forwarded to described plug-in unit with described UI message; Need to prove, when proxy module directly is forwarded to described plug-in unit with described UI message, can also be divided into more specifically, whether need plug-in unit to handle immediately, for example, size is changed (promptly being that does not put at the interface that the user drags current I M program) when the interface of IM program, and then described UI message plug-in unit need not to handle immediately, if the interface size of IM program has changed finish, then described plug-in unit can disposablely refresh insert window;
Direct processing module 804, be used for when the judged result of described forwarding module when denying, then described agent window is then directly handled described UI message.
Described direct processing module 804 specifically can directly be handled described UI message, can directly it be abandoned, and is left intact, and directly is back to the open window of described IM program simultaneously, represents that this is finished by the UI message processing procedure that open window triggers.
Described direct processing module 804 specifically comprises:
Abandon submodule, be used for described UI message is directly abandoned;
Cache sub-module is used for described UI is carried out buffer memory, so that the follow-up plug-in unit that is sent to.
Need to prove that each embodiment in this instructions all adopts the mode of going forward one by one to describe, what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device class embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
Also need to prove, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Do not having under the situation of more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
More than plug-in unit that the application provided is inserted the instant messaging program method and apparatus be described in detail, used specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.

Claims (10)

1. a plug-in unit inserts the method for instant messaging program, it is characterized in that this method comprises:
In instant messaging IM software, the IM program creation comprises the open open window that inserts the zone;
The loader process is created agent window according to described open window, and described agent window is the subwindow of described open window, and described loader process is the detached process of described IM program creation;
The proxy module of described agent window correspondence is created insert window, and described insert window is the subwindow of described agent window.
2. method according to claim 1 is characterized in that, the proxy module of described agent window correspondence is created insert window, specifically comprises:
Described proxy module sends the handle of agent window to plug-in unit;
Described plug-in unit is created subwindow with the handle of described agent window as the parent window handle, and described subwindow is an insert window.
3. method according to claim 1 is characterized in that, the proxy module of described agent window correspondence is created insert window, specifically comprises:
The proxy module of described agent window correspondence is created an insert window;
Judge whether to exist other plug-in units, if then the insert window of described other plug-in unit correspondences is created in continuation; If not, process ends then.
4. the method for a process user interface message adopts the method for claim 1 to insert plug-in unit in the IM program, it is characterized in that this method comprises:
When the proxy module of described agent window correspondence receives user interface UI message, judge whether the processing of needs plug-in unit according to described package types;
If, then with described UI forwards to described plug-in unit, if not, then described proxy module is directly handled described UI message.
5. method according to claim 4 is characterized in that, described agent window is directly handled described UI message, specifically comprises:
Described agent window directly abandons described UI message, and perhaps, described proxy module carries out buffer memory with described UI, so that the follow-up plug-in unit that is sent to.
6. a plug-in unit inserts the device of instant messaging program, it is characterized in that this device comprises:
The IM program module is used for the software at instant messaging IM, creates to comprise the open open window that inserts the zone;
Loader process module is used for creating agent window according to described open window, and described agent window is the subwindow of described open window, and described loader process is the detached process of described IM program creation;
Proxy module, the proxy module that is used for described agent window correspondence is created insert window, and described insert window is the subwindow of described agent window.
7. device according to claim 6 is characterized in that, described proxy module specifically is used for sending the handle of agent window to plug-in unit as the parent window handle, so that described plug-in unit is created the subwindow of described parent window, described subwindow is an insert window.
8. device according to claim 6 is characterized in that, described proxy module comprises:
Create submodule, be used to create an insert window;
Judge submodule, be used to judge whether to exist other plug-in units, if then the insert window of described other plug-in unit correspondences is created in continuation; If not, process ends then.
9. the system of a process user interface message is characterized in that, this system comprises:
Access device is used for adopting the method for claim 1 to insert plug-in unit in the IM program;
Proxy module when being used to receive user interface UI message, judges whether the processing of needs plug-in unit according to described package types;
Forwarding module, be used for when the judged result of described proxy module when being, then with described UI forwards to described plug-in unit;
Direct processing module, be used for when the judged result of described forwarding module when denying, then described agent window is then directly handled described UI message.
10. system according to claim 9 is characterized in that, described direct processing module specifically comprises:
Abandon submodule, be used for described UI message is directly abandoned;
Cache sub-module is used for described UI is carried out buffer memory, so that the follow-up plug-in unit that is sent to.
CN200910168488.8A 2009-08-26 2009-08-26 Method and device for accessing instant messaging program to plugin Expired - Fee Related CN101996095B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200910168488.8A CN101996095B (en) 2009-08-26 2009-08-26 Method and device for accessing instant messaging program to plugin
HK11103960.7A HK1149817A1 (en) 2009-08-26 2011-04-19 Method and device for accessing plug-in into instant messaging program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910168488.8A CN101996095B (en) 2009-08-26 2009-08-26 Method and device for accessing instant messaging program to plugin

Publications (2)

Publication Number Publication Date
CN101996095A true CN101996095A (en) 2011-03-30
CN101996095B CN101996095B (en) 2014-04-09

Family

ID=43786280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910168488.8A Expired - Fee Related CN101996095B (en) 2009-08-26 2009-08-26 Method and device for accessing instant messaging program to plugin

Country Status (2)

Country Link
CN (1) CN101996095B (en)
HK (1) HK1149817A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413115A (en) * 2011-08-12 2012-04-11 乐视网信息技术(北京)股份有限公司 Client plug-in system
CN102546762A (en) * 2011-12-16 2012-07-04 深圳中兴网信科技有限公司 Instant messaging system and method of webpage
CN102915256A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 Message transmission method and device under multi-core browser
CN104021168A (en) * 2011-12-28 2014-09-03 北京奇虎科技有限公司 Method and device for browsing webpage
CN104021167A (en) * 2011-12-28 2014-09-03 北京奇虎科技有限公司 Method and device for browsing webpage
CN106874020A (en) * 2015-12-10 2017-06-20 五八同城信息技术有限公司 Start the method and device of plug-in unit
WO2018205773A1 (en) * 2017-05-11 2018-11-15 腾讯科技(深圳)有限公司 Message processing method and apparatus, storage medium, and computer device
CN109697067A (en) * 2018-11-19 2019-04-30 北京奇虎科技有限公司 Data packing method and device
CN113176913A (en) * 2021-05-25 2021-07-27 深圳前海微众银行股份有限公司 Processing method and device of JAVA agent, terminal equipment and storage medium
CN113656091A (en) * 2021-07-28 2021-11-16 广州虎牙科技有限公司 Method for realizing independent broadcasting process, related device and equipment
CN114610403A (en) * 2022-01-24 2022-06-10 北京快确信息科技有限公司 Cross-process program running method, device, system and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1629803B (en) * 2003-12-18 2011-04-20 腾讯科技(深圳)有限公司 Method for embedding a third party interface in host program interface
CN101315609A (en) * 2007-05-31 2008-12-03 华为技术有限公司 Apparatus and method for implementing communication between components of single process

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413115B (en) * 2011-08-12 2015-05-13 乐视网信息技术(北京)股份有限公司 Client plug-in system
CN102413115A (en) * 2011-08-12 2012-04-11 乐视网信息技术(北京)股份有限公司 Client plug-in system
CN102546762A (en) * 2011-12-16 2012-07-04 深圳中兴网信科技有限公司 Instant messaging system and method of webpage
CN104021168B (en) * 2011-12-28 2017-06-16 北京奇虎科技有限公司 A kind of method and device for browsing webpage
CN104021167A (en) * 2011-12-28 2014-09-03 北京奇虎科技有限公司 Method and device for browsing webpage
CN104021168A (en) * 2011-12-28 2014-09-03 北京奇虎科技有限公司 Method and device for browsing webpage
CN104021167B (en) * 2011-12-28 2017-06-16 北京奇虎科技有限公司 A kind of method and device for browsing webpage
CN102915256B (en) * 2012-03-08 2015-02-18 北京金山安全软件有限公司 Message transmission method and device under multi-core browser
CN102915256A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 Message transmission method and device under multi-core browser
CN106874020A (en) * 2015-12-10 2017-06-20 五八同城信息技术有限公司 Start the method and device of plug-in unit
WO2018205773A1 (en) * 2017-05-11 2018-11-15 腾讯科技(深圳)有限公司 Message processing method and apparatus, storage medium, and computer device
US10877826B2 (en) 2017-05-11 2020-12-29 Tencent Technology (Shenzhen) Company Limited Message processing method and apparatus, storage medium, and computer device
US11314568B2 (en) 2017-05-11 2022-04-26 Tencent Technology (Shenzhen) Company Limited Message processing method and apparatus, storage medium, and computer device
CN109697067A (en) * 2018-11-19 2019-04-30 北京奇虎科技有限公司 Data packing method and device
CN113176913A (en) * 2021-05-25 2021-07-27 深圳前海微众银行股份有限公司 Processing method and device of JAVA agent, terminal equipment and storage medium
CN113176913B (en) * 2021-05-25 2023-03-24 深圳前海微众银行股份有限公司 Processing method and device of JAVA agent, terminal equipment and storage medium
CN113656091A (en) * 2021-07-28 2021-11-16 广州虎牙科技有限公司 Method for realizing independent broadcasting process, related device and equipment
CN113656091B (en) * 2021-07-28 2024-06-21 广州虎牙科技有限公司 Method for realizing independent open program process, related device and equipment
CN114610403A (en) * 2022-01-24 2022-06-10 北京快确信息科技有限公司 Cross-process program running method, device, system and medium

Also Published As

Publication number Publication date
CN101996095B (en) 2014-04-09
HK1149817A1 (en) 2011-10-14

Similar Documents

Publication Publication Date Title
CN101996095B (en) Method and device for accessing instant messaging program to plugin
CN110830546A (en) Available domain construction method, device and equipment based on container cloud platform
CN108768688B (en) Visual mixing cloud resource method of combination and device
CN102789382B (en) For the system and method that list generates and runs
US10129264B2 (en) Method and apparatus for implementing document sharing between user groups
CN112068936B (en) Workflow management platform and workflow management system
CN106033373A (en) A method and a system for scheduling virtual machine resources in a cloud computing platform
CN103036855B (en) A kind of equipment that realizes of rights management and method
US20160057019A1 (en) Integrated cloud data center management
CN105630461A (en) Managing method of android application interface
CN105094983A (en) Computer, control equipment and data processing method
CN105279535A (en) Intelligent processing system of identification code and processing method thereof
CN101968745A (en) Development system and development method for application programs of mobile terminal
KR20100110823A (en) Isolation of content by processes in an application
CN113626128B (en) Audio-visual media micro-service third-party module access method, system and electronic equipment
CN102646055A (en) Method for data interaction between systems
JP2018537777A (en) Internet of things information system
CN113254445A (en) Real-time data storage method and device, computer equipment and storage medium
CN105955743A (en) Resource data transfer request generating method, device and system
CN105207989A (en) Multi-dimensional user workbench system and control method thereof
CN101938579A (en) Seating system based on multi-process and method for realizing seating business
CN112199200B (en) Resource scheduling method and device, computer equipment and storage medium
CN113205320A (en) Service processing method and device, electronic equipment and computer readable medium
CN106104531A (en) Automatically numerical map is embedded in software application
CN115169891B (en) Method for realizing workflow engine comprising multi-start-point multi-branch flow

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1149817

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1149817

Country of ref document: HK

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140409

Termination date: 20190826

CF01 Termination of patent right due to non-payment of annual fee