CN101996095B - Method and device for accessing instant messaging program to plugin - Google Patents
Method and device for accessing instant messaging program to plugin Download PDFInfo
- Publication number
- CN101996095B CN101996095B CN200910168488.8A CN200910168488A CN101996095B CN 101996095 B CN101996095 B CN 101996095B CN 200910168488 A CN200910168488 A CN 200910168488A CN 101996095 B CN101996095 B CN 101996095B
- Authority
- CN
- China
- Prior art keywords
- window
- plug
- unit
- agent
- message
- 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.)
- Expired - Fee Related
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
Technical field
The application relates to applications of computer network field, particularly the method and apparatus of plug-in unit access instant messaging (IM) program.
Background technology
Host program is for the carrier for plug-in component operation, has also formulated the access criteria of plug-in unit simultaneously, and generally instant messaging (Instant Messaging, IM) program is host program.Plug-in unit is a kind of program module, refers to the access criteria that meets service platform, can run on service platform and the necessary function of non-service platform itself or business module.From physical form, including but not limited to dynamic link library (Dynamic Link Library, DLL).Window-type plug-in unit refers to that plug-in unit is presented in Instant Messenger (IM) software program with the form of an embedded window, and described embedded window is exactly a region that is embedded into IM program.Can, with reference to shown in figure 1, be the schematic diagram of an embedded window in reality.Wherein, by the part that square frame frame goes out, be a weather forecast plug-in unit, and the interface that this plug-in unit is shown (insert window) is that plug-in unit provides; And IM program has only been to provide the region that can access for plug-in unit.
In prior art, a kind of method that has plug-in unit access host program, this plug-in unit and insert window are all created in detached process, be that insert window is not created by host process, this insert window is that user is visible, this detached process also using this insert window directly as the subwindow of instant messaging open area; Insert window is as user interface (the User Interface between subwindow and instant messaging program parent window, UI) all leap processes of business are carried out, interacting message when wherein, UI business refers to IM program parent window and changes and between insert window.In actual applications, when 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 IM program produces because of the variation of IM program parent window, at every turn when being sent to card module corresponding to insert window, all need to just can carry out subsequent treatment receiving after card module is for the response of current UI message.
Therefore, there is following shortcoming in the method simultaneously: the parent window of insert window be open window (being positioned at host program) with insert window lay respectively at two in-process, when therefore two windows carry out communication, be exactly striding course communication; And when IM program window and insert window carry out UI interacting message each time, IM program all needs 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 at present the urgent technical matters solving of those skilled in the art to be exactly: the method for a kind of plug-in unit access of the proposition instant messaging program how can innovate, 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 is to provide a kind of method of plug-in unit access instant messaging program, in order to solve the problem that the response time is long and response efficiency is lower at interface.
The application also provides a kind of device of plug-in unit access instant messaging program, in order to guarantee said method implementation and application in practice.
In order to address the above problem, the application discloses a kind of method of plug-in unit access instant messaging program, comprising:
In instant messaging IM software, IM program creation comprises the open window in open access region;
Loader process creates agent window according to described open window, the subwindow that described agent window is described open window, and described loader process is the detached process of described IM program creation;
Proxy module corresponding to described agent window creates insert window, the subwindow that described insert window is described agent window.
Preferably, proxy module corresponding to described agent window creates insert window, specifically comprises:
Described proxy module sends the handle of agent window to plug-in unit;
Described plug-in unit creates subwindow using the handle of described agent window as parent window handle, and described subwindow is insert window.
Preferably, proxy module corresponding to described agent window creates insert window, specifically comprises:
Proxy module corresponding to described agent window creates an insert window;
Judge whether to exist other plug-in units, if so, continue to create described insert window corresponding to other plug-in units; If not, process ends.
The application provides a kind of method of processing user interface message, and after the method that adopts above-mentioned plug-in unit access instant messaging program accesses plug-in unit in IM program, the method comprises:
When proxy module corresponding to described agent window receives user interface UI message, according to described package types, judge whether to need plug-in unit to process;
If so, described UI message is forwarded to described plug-in unit, if not, described proxy module is directly processed described UI message.
Preferably, described agent window is directly processed described UI message, specifically comprises:
Described agent window directly abandons described UI message, or described proxy module carries out buffer memory by described UI, is sent to plug-in unit so that follow-up.
The application also provides a kind of device of plug-in unit access instant messaging program, and this device comprises:
IM program module, at instant messaging IM software, creates the open window that comprises open access region;
Loader process module, for creating agent window according to described open window, the subwindow that described agent window is described open window, described loader process is the detached process of described IM program creation;
Proxy module, the proxy module corresponding for described agent window creates insert window, the subwindow that described insert window is described agent window.
Preferably, described proxy module is specifically for sending the handle of agent window to plug-in unit as parent window handle, so that described plug-in unit creates the subwindow of described parent window, described subwindow is insert window.
Preferably, described proxy module comprises:
Create submodule, for creating an insert window;
Judgement submodule, for judging whether to exist other plug-in units, if so, continues to create described insert window corresponding to other plug-in units; If not, process ends.
The application also provides a kind of system of processing user interface message, and this system comprises:
Access device, for adopting the method for claim 1 to access plug-in unit in IM program;
Proxy module, when receiving user interface UI message, judges whether to need plug-in unit to process according to described package types;
Forwarding module, for when judgment result is that of described proxy module is, is forwarded to described plug-in unit by described UI message;
Direct processing module, when when described forwarding module, the determination result is NO, described agent window is directly processed described UI message.
Preferably, described direct processing module, specifically comprises:
Abandon submodule, for described UI message is directly abandoned;
Cache sub-module, for described UI is carried out to buffer memory, is sent to plug-in unit so that follow-up.
Compared with prior art, the application comprises following advantage:
In the embodiment of the present application, in instant messaging IM software, IM program creation comprises the open window in open access region; 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; Proxy module corresponding to described agent window creates insert window, the subwindow that described insert window is described agent window.In the embodiment of the present application, between insert window and open window, added again one deck agent window, therefore follow-up while needing to carry out UI interacting message between open window and insert window, just can first judge whether this UI message needs plug-in unit to process by agent window, thereby when plug-in unit is processed UI message, or while not needing plug-in unit to process, directly return, 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 plug-in unit process.Certainly, arbitrary product of enforcement the application might not need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic diagram of insert window in prior art;
Fig. 2 is the application's structural representation in actual applications;
Fig. 3 is the process flow diagram that a kind of widget of the application accesses the embodiment of the method 1 of instant messaging program;
Fig. 4 is the process flow diagram that a kind of widget of the application accesses the embodiment of the method 2 of instant messaging program;
Fig. 5 is a kind of process flow diagram of processing the embodiment of the method for user interface message of the application;
Fig. 6 is the structured flowchart that a kind of widget of the application accesses the device embodiment 1 of instant messaging program;
Fig. 7 is the structured flowchart that a kind of widget of the application accesses the device embodiment 2 of instant messaging program;
Fig. 8 is a kind of structured flowchart of processing the system embodiment of user interface message of the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not making the every other embodiment obtaining under 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 configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multi-processor device, comprise distributed computing environment of above any device or equipment etc.
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 data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, by the teleprocessing equipment being connected by communication network, be executed 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, shown in figure 2, for the present embodiment structural representation in actual applications, can find out, create open window in the host process of instant communication program after, instant messaging program has started loader process, by loader process creation a proxy plug-ins, and proxy plug-ins creates an agent window, and this agent window is set to the subwindow of open window on IM interface, then the in-process proxy module corresponding with agent window of loader reloads the application plug-in in reality, this application plug-in creates an insert window again, and the parent window using described agent window as this insert window.Wherein, agent window is the window that proxy plug-ins creates, and is the window in graphical interfaces meaning, is that user is sightless.Therefore the present embodiment unlike the prior art, between insert window and open window, added again one deck agent window, therefore follow-up, while needing to carry out UI interacting message between open window and insert window, just can first judge whether this UI message needs plug-in unit to process by proxy module corresponding to agent window.While needing, UI message can be put into a queue, the follow-up application plug-in that is forwarded to again, is to postpone the time that application plug-in is processed.While not needing application plug-in to process, directly returning, 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 application plug-in process.
With reference to figure 3, show the process flow diagram of the embodiment of the method 1 of a kind of plug-in unit access of the application instant messaging program, can comprise the following steps:
Step 301: in instant messaging IM software, IM program creation comprises the open window in open access region;
In IM software, after user's login, IM program can create an open window that comprises open access region, wherein, this open window can be user's finding, can not be also user's finding, but there is such open window, can be for access application plug-in; Wherein, described application plug-in is various types of plug-in units in 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 IM program creation after described open window, in actual applications, can, after receiving that plugin manager has sent the notice that open window set up, create in addition a loader process; Wherein, described plugin manager can be for detection of the plug-in unit service condition of IM program, when detecting after open window is created, just notifies IM program; Described loader process can be for being different from other detached processes of host process corresponding to IM program;
This loader process creation agent window, this agent window can be used standard A PI SetParent function oneself that windows provides to be set to the subwindow of open window, this agent window is as described open window at the in-process subwindow of loader, and this agent window constructive process is in practice identical with the constructive process of other any application plug-in windows; Concrete, described loader process can create corresponding agent window by proxy plug-ins by creating the mode of a proxy plug-ins, and it is proxy module that Batch Processing corresponding to described agent window processed code; This agent window is that user is sightless, after this agent window of loader process creation, and just can be so that first the message being produced by the variation of open window arrive agent window;
Step 303: proxy module corresponding to described agent window creates application plug-in window, the subwindow that described insert window is described agent window.
Proxy module corresponding to described agent window creates application plug-in window, concrete, described proxy module can load the application plug-in in reality, program module by application plug-in creates application plug-in window, and agent window is set to the parent window of this application plug-in window, be described agent window and described insert window father and son's window each other, and same in-process.Meanwhile, when having a plurality of plug-in units need to access 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; When system detects shared plug-in unit, just check and whether had shared loader process to exist; If there is this shared loader process of just obtaining; Otherwise just create 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 because of proxy module corresponding to agent window and card module corresponding to insert window in same process, and agent window is as one deck assistant window, can receive prior to insert window the UI message of open window, thereby first message response is returned to the residing host program of open window by proxy module, IM program is just without waiting for that plug-in unit handling response that UI message is returned like this, this has just reduced the interaction time between IM interface and plug-in unit, improved the efficiency of UI Message Processing, can improve the UI interactive efficiency between open window and insert window simultaneously.
With reference to figure 4, the plug-in unit that shows the application accesses the process flow diagram of the embodiment of the method 2 of instant messaging program, can comprise the following steps:
Step 401: in instant messaging IM software, IM program creation comprises the open window in open access region;
Step 402: detached process of described IM program creation is as loader process;
Wherein, creating loader process is to start an executable program in actual applications, IM program can be passed to described loader process by the handle hSlot of open window simultaneously, so that described loader process creates the subwindow of open window according to described handle, in practice, loader process, before creating window, can be received the handle of the open window that Windows system sends, be loader process only need this handle and the handle of agent window be set to set membership; Described handle is the standard term of windows, and window handle is 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; What wherein, create window is operating as windows standard operation; The title of handle can arrange arbitrarily, and only need accomplish can be unique in any process of current I M program;
Concrete, first loader process, in this process, can create a proxy plug-ins, then by proxy plug-ins, creates corresponding agent window; For example, exist a proxy module to be called proxy.dll, and this dll is loaded after the loading of device process, its internal code will create 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 is created, residing host program can be informed insert window by the window handle of its parent window, and therefore, proxy module sends the handle hProxy of agent window to plug-in unit as parent window handle again;
Step 405: described plug-in unit creates subwindow according to the handle of described agent window, and described subwindow is insert window;
It should be noted that, the window of plug-in unit is created by plug-in unit oneself, detailed process is, plug-in unit need to 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;
Be that hProxy is set to oneself parent window simultaneously in this step; In actual applications, Windows directly provides api function SetParent can complete content in this step; Wherein, plug-in unit, when being loaded, does not need to know whom the parent window receiving is, only needs to receive a parent window;
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 to load, if so, enter step 407; If not, process ends.
Loader process, after creating the insert window that plug-in unit is corresponding, continues to judge whether to exist other plug-in units, if existed, continues common other corresponding insert windows, if there is no, and process ends.
Step 407: continue to create described insert window corresponding to other plug-in units.
Scheme in the present embodiment is when there is a plurality of plug-in unit, need to first judge whether also to exist other plug-in units, if existed, adopt the method for introducing to continue to create insert window, and, when creating window, loader process by IM program creation creates agent window, thereby agent window and insert window are all existed in loader process, all need to cross over host process and plug-in unit process with user interface message all in prior art, thereby the response time at main interface is compared with regard to long shortcoming, method described in the present embodiment, the UI message that does not need plug-in unit to process directly can be processed by agent window, or by agent window temporary cache, follow-uply process being sent to plug-in unit, thereby improved the response time at interface.
With reference to figure 5, show a kind of process flow diagram of processing the embodiment of the method for user interface message of the application, can comprise the following steps:
Step 501: in instant messaging IM software, IM program creation comprises the open window in open access region;
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: proxy module corresponding to described agent window creates insert window, the subwindow that described insert window is described agent window;
Abovementioned steps for accessing the process of plug-in unit in current I M program;
Step 504: when described agent window receives user interface UI message, proxy module corresponding to agent window judges whether to need plug-in unit to process according to described package types, if so, enters step 505, if not, enters step 506;
Wherein, when user has carried out corresponding operation to the interface of current I M software, for example, user drags the interface of current I M software, or changed the size at current I M interface, IM program will be notified described agent window in the mode of window message, and the proxy module of running background judges whether to need plug-in unit to process immediately according to the package types of access;
It should be noted that, plug-in unit self possesses some attributes, set, for example, the attribute of certain plug-in unit in open window is " according to open window transform size ", and " background colour remains unchanged " etc., the UI message receiving when agent window is so that background colour is when having occurred to change, described agent window can be judged as this UI message the UI message of " not needing plug-in unit to process ", when if the UI message that agent window receives is " window size of IM program converts ", described agent window can be judged as this UI message the UI message that needs plug-in unit to process, therefore, can find out, according to the difference of package types in actual conditions, and the type of UI message is different, can have a variety of criterions, and the present invention will not enumerate at this,
Step 505: described UI message is forwarded to described plug-in unit.
Proxy module corresponding to described agent window is directly forwarded to described plug-in unit by described UI message; It should be noted that, when proxy module is directly forwarded to described plug-in unit by described UI message, can also be divided into more specifically, whether need plug-in unit to process immediately, for example, when the interface of IM program, size is changed (being that does not put at the interface that user drags current I M program), and described UI message plug-in unit is without processing immediately, if the interface size of IM program has changed, described plug-in unit can disposablely refresh insert window;
Step 506: described agent window is directly processed described UI message.
Described agent window is directly processed described UI message, can directly be abandoned, and is left intact, and is directly back to the open window of described IM program simultaneously, represents that this UI message processing procedure being triggered by open window finishes.In actual applications, for example, the position of insert window is fixed, so when open window changes, because the window of set membership need to directly carry out interacting message, so the subwindow of open window is agent window, directly process, need to do not processed by insert window; Wherein, Windows has a set of window standard, and the communication wherein existing between father and son's window, is stipulated by windows, and as aforesaid interface size in the present embodiment, in variation, and after changing, windows will send message automatically;
Wherein, described step 506 can comprise at another embodiment:
Described agent window can directly abandon described UI message, or described agent window can be carried out buffer memory by described UI, is sent to plug-in unit so that follow-up.
In the present embodiment, agent window can also have the particular content of UI message to carry out in advance once judgement according to package types in advance, see whether all UI message all needs plug-in unit to process, if do not needed, just can directly not return, so just be equivalent to some of them UI message to be optimized, just on certain procedures, reduced the blocking time of UI message, thereby improved interface response speed, and agent window and insert window are in a process, not all UI message all need to be crossed over process interaction between insert window and open window, will improve interface response speed like this.
For aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the application is not subject 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 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 embodiment of the method 1 of a kind of plug-in unit access of above-mentioned the application instant messaging program provides, referring to Fig. 6, the application also provides the device embodiment 1 of plug-in unit access instant messaging program, and in the present embodiment, this device can comprise:
In IM software, after user's login, IM program module can create an open window that comprises open access region, wherein, this open window can be user's finding, can not be also user's finding, but there is such open window, for accessing plug-in unit;
After IM program module has created described open window, in actual applications, can, after receiving that plugin manager has sent the notice that open window set up, create in addition a loader process; Wherein, described plugin manager can be for detection of the plug-in unit service condition of IM program, when detecting after open window is created, just notifies IM program module; Described loader process module can adopt other detached processes that are different from host process corresponding to IM program to realize; It should be noted that, owing to there being proxy module, therefore plug-in unit process can not be directly used in the realization of loader process, because plug-in unit process does not know how to use proxy module, only has 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 (being agent window); Wherein, described transparent processing can be understood as, for the open window in 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, namely agent window " transparence ";
This loader process module creation agent window, this agent window is as described open window at the in-process subwindow of loader, and the constructive process that this agent window neutralizes other any insert windows at actual constructive process is identical;
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 in same, go down town because of agent window and insert window, thereby reduced interaction time, improved the efficiency of Message Processing, can improve the UI interactive efficiency between father and son's window simultaneously.
Corresponding with the method that the embodiment of the method 2 of a kind of plug-in unit access of above-mentioned the application instant messaging program provides, referring to Fig. 7, the application also provides a kind of embodiment 2 of device of plug-in unit access instant messaging program, and in the present embodiment, this device specifically can comprise:
Wherein, creating loader process is to start an executable program in actual applications, IM program can be passed to described loader process by the handle hSlot of open window simultaneously, so that described loader process creates the subwindow of open window according to described handle; Described handle is the standard term of windows, and window handle is 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; What wherein, create window is operating as windows standard operation; The title of handle can arrange arbitrarily, only need accomplish in any process of current I M program unique;
Wherein, plug-in unit standard convention is fixed, and when insert window is 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 parent window handle again; Comprise in the present embodiment two submodules, create submodule 701, for creating an insert window;
Loader process, after creating the insert window that plug-in unit is corresponding, continues to judge whether to exist other plug-in units, if existed, continues common other corresponding insert windows, if there is no, and process ends.
All need to cross over host process and plug-in unit process with user interface message all in prior art, thereby the response time at main interface is compared with regard to long shortcoming, method described in the present embodiment, the UI message that does not need plug-in unit to process directly can be processed by agent window, or by agent window temporary cache, follow-uply process being sent to plug-in unit, thereby improved response time at interface.
Corresponding with the method that a kind of embodiment of the method for processing user interface message of above-mentioned the application provides, referring to Fig. 8, the application also provides a kind of system embodiment of processing user interface message, and in the present embodiment, this system specifically can comprise:
Wherein, described access device 801 comprises:
IM program module, at instant messaging IM software, creates the open window that comprises open access region;
Loader process module, for creating agent window as the subwindow of described open window, described loader process is the detached process of described IM program creation;
Proxy module, the proxy module corresponding for described agent window creates insert window, the subwindow that described insert window is described agent window.
Wherein, when user has carried out corresponding operation to the interface of current I M software, for example, user drags the interface of current I M software, or changed the size at current I M interface, IM program will be notified described agent window in the mode of window message, and the proxy module of running background judges whether to need plug-in unit to process immediately according to the package types of access;
It should be noted that, plug-in unit self possesses some attributes, set, for example, the attribute of certain plug-in unit in open window is " according to open window transform size ", and " background colour remains unchanged " etc., the UI message receiving when agent window is so that background colour is when having occurred to change, described agent window can be judged as this UI message the UI message of " not needing plug-in unit to process ", when if the UI message that agent window receives is " window size of IM program converts ", described agent window can be judged as this UI message the UI message that needs plug-in unit to process, therefore, can find out, according to the difference of package types in actual conditions, and the type of UI message is different, can have a variety of criterions, and the present invention will not enumerate at this,
Described forwarding module is directly forwarded to described plug-in unit by described UI message; It should be noted that, when proxy module is directly forwarded to described plug-in unit by described UI message, can also be divided into more specifically, whether need plug-in unit to process immediately, for example, when the interface of IM program, size is changed (being that does not put at the interface that user drags current I M program), and described UI message plug-in unit is without processing immediately, if the interface size of IM program has changed, described plug-in unit can disposablely refresh insert window;
Described direct processing module 804 specifically can directly be processed described UI message, can directly be abandoned, and is left intact, and is directly back to the open window of described IM program simultaneously, represents that this UI message processing procedure being triggered by open window finishes.
Described direct processing module 804, specifically comprises:
Abandon submodule, for described UI message is directly abandoned;
Cache sub-module, for described UI is carried out to buffer memory, is sent to plug-in unit so that follow-up.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited 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.
The method and apparatus of the plug-in unit access instant messaging program above the application being provided is described in detail, applied specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; Meanwhile, for one of ordinary skill in the art, the thought according to the application, all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.
Claims (10)
1. a method for plug-in unit access instant messaging program, is characterized in that, the method comprises:
In instant messaging IM software, IM program creation comprises the open window in open access region, and described open window is used for accessing application plug-in;
Loader process creates agent window according to described open window, the subwindow that described agent window is described open window, and described loader process is the detached process of described IM program creation;
Proxy module corresponding to described agent window creates insert window, the subwindow that described insert window is described agent window; Described insert window and described agent window are in same process.
2. method according to claim 1, is characterized in that, proxy module corresponding to described agent window creates insert window, specifically comprises:
Described proxy module sends the handle of agent window to plug-in unit;
Described plug-in unit creates subwindow using the handle of described agent window as parent window handle, and described subwindow is insert window.
3. method according to claim 1, is characterized in that, proxy module corresponding to described agent window creates insert window, specifically comprises:
Proxy module corresponding to described agent window creates an insert window;
Judge whether to exist other plug-in units, if so, continue to create described insert window corresponding to other plug-in units; If not, process ends.
4. process a method for user interface message, adopt the method for claim 1 to access plug-in unit in IM program, it is characterized in that, the method comprises:
When proxy module corresponding to described agent window receives user interface UI message, according to described package types, judge whether to need plug-in unit to process;
If so, described UI message is forwarded to described plug-in unit, if not, described proxy module is directly processed described UI message.
5. method according to claim 4, is characterized in that, described agent window is directly processed described UI message, specifically comprises:
Described agent window directly abandons described UI message, or described proxy module carries out buffer memory by described UI, is sent to plug-in unit so that follow-up.
6. a device for plug-in unit access instant messaging program, is characterized in that, this device comprises:
IM program module, at instant messaging IM software, creates the open window that comprises open access region, and described open window is used for accessing application plug-in;
Loader process module, for creating agent window according to described open window, the subwindow that described agent window is described open window, described loader process is the detached process of described IM program creation;
Proxy module, the proxy module corresponding for described agent window creates insert window, the subwindow that described insert window is described agent window; Described insert window and described agent window are in same process.
7. device according to claim 6, is characterized in that, described proxy module is specifically for sending the handle of agent window to plug-in unit as parent window handle, so that described plug-in unit creates the subwindow of described parent window, described subwindow is insert window.
8. device according to claim 6, is characterized in that, described proxy module comprises:
Create submodule, for creating an insert window;
Judgement submodule, for judging whether to exist other plug-in units, if so, continues to create described insert window corresponding to other plug-in units; If not, process ends.
9. a system of processing user interface message, is characterized in that, this system comprises:
Access device, for adopting the method for claim 1 to access plug-in unit in IM program;
Proxy module, when receiving user interface UI message, judges whether to need plug-in unit to process according to described package types;
Forwarding module, for when judgment result is that of described proxy module is, is forwarded to described plug-in unit by described UI message;
Direct processing module, when when described forwarding module, the determination result is NO, described agent window is directly processed described UI message.
10. system according to claim 9, is characterized in that, described direct processing module, specifically comprises:
Abandon submodule, for described UI message is directly abandoned;
Cache sub-module, for described UI is carried out to buffer memory, is sent to plug-in unit so that follow-up.
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 CN101996095A (en) | 2011-03-30 |
CN101996095B true 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) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102413115B (en) * | 2011-08-12 | 2015-05-13 | 乐视网信息技术(北京)股份有限公司 | Client plug-in system |
CN102546762A (en) * | 2011-12-16 | 2012-07-04 | 深圳中兴网信科技有限公司 | Instant messaging system and method of webpage |
CN104021167B (en) * | 2011-12-28 | 2017-06-16 | 北京奇虎科技有限公司 | A kind of method and device for browsing webpage |
CN104021168B (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 |
CN106874020B (en) * | 2015-12-10 | 2021-02-02 | 五八同城信息技术有限公司 | Method and device for starting plug-in |
CN107102880B (en) | 2017-05-11 | 2018-11-23 | 腾讯科技(深圳)有限公司 | Message treatment method, device, storage medium and computer equipment |
CN109697067A (en) * | 2018-11-19 | 2019-04-30 | 北京奇虎科技有限公司 | Data packing method and device |
CN113176913B (en) * | 2021-05-25 | 2023-03-24 | 深圳前海微众银行股份有限公司 | Processing method and device of JAVA agent, terminal equipment and storage medium |
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 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1629803A (en) * | 2003-12-18 | 2005-06-22 | 腾讯科技(深圳)有限公司 | 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 |
-
2009
- 2009-08-26 CN CN200910168488.8A patent/CN101996095B/en not_active Expired - Fee Related
-
2011
- 2011-04-19 HK HK11103960.7A patent/HK1149817A1/en not_active IP Right Cessation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1629803A (en) * | 2003-12-18 | 2005-06-22 | 腾讯科技(深圳)有限公司 | 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 |
Also Published As
Publication number | Publication date |
---|---|
HK1149817A1 (en) | 2011-10-14 |
CN101996095A (en) | 2011-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101996095B (en) | Method and device for accessing instant messaging program to plugin | |
JP5936157B2 (en) | Systems, methods, and computer programs for hidden automated data mirroring for native interfaces in distributed virtual machines (hidden automated data mirroring for native interfaces in distributed virtual machines ) | |
CN102498483B (en) | The server end that event triggers is grand | |
CN112068936B (en) | Workflow management platform and workflow management system | |
CA2600503C (en) | Method and system for executing a container-managed application on a processing device | |
EP3504619B1 (en) | Apparatus and method for managing notification | |
CN109118160B (en) | Information sharing method, device, terminal equipment and medium | |
CN110830546A (en) | Available domain construction method, device and equipment based on container cloud platform | |
CN109325195A (en) | Rendering method and system, computer equipment, the computer storage medium of browser | |
US8561010B2 (en) | Software approval process using service governance | |
CN104838388A (en) | Versatile and reliable intelligent package | |
CN110287146B (en) | Method, device and computer storage medium for downloading application | |
US8689243B2 (en) | Web service API for unified contact store | |
CN113254445B (en) | Real-time data storage method, device, computer equipment and storage medium | |
KR20100110823A (en) | Isolation of content by processes in an application | |
CN114586005B (en) | System and method for hosting another browser within a browser | |
CN107704155A (en) | Application program image target methods of exhibiting, device, terminal and storage medium | |
CN106980537A (en) | The method and system of cloud main frame is deleted in cloud computing environment | |
US9032326B2 (en) | Late instantiation of dependent objects | |
CN107657155B (en) | Method and device for authenticating user operation authority | |
CN112581257A (en) | Dispute service management method, system, device and medium supporting different card organizations | |
CN115510508A (en) | Page information protection method and device and electronic equipment | |
CN113781154A (en) | Information rollback method, system, electronic equipment and storage medium | |
CN114579004A (en) | Method and device for generating flow canvas and electronic equipment | |
CN112613955A (en) | Order processing method and device, electronic equipment and storage medium |
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 |