CN100469061C - Display method for instant message in instant communication - Google Patents

Display method for instant message in instant communication Download PDF

Info

Publication number
CN100469061C
CN100469061C CNB2005100986257A CN200510098625A CN100469061C CN 100469061 C CN100469061 C CN 100469061C CN B2005100986257 A CNB2005100986257 A CN B2005100986257A CN 200510098625 A CN200510098625 A CN 200510098625A CN 100469061 C CN100469061 C CN 100469061C
Authority
CN
China
Prior art keywords
apply
information
message
need
replied
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2005100986257A
Other languages
Chinese (zh)
Other versions
CN1929454A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2005100986257A priority Critical patent/CN100469061C/en
Publication of CN1929454A publication Critical patent/CN1929454A/en
Application granted granted Critical
Publication of CN100469061C publication Critical patent/CN100469061C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

This invention relates to one display method for prompt communication message, which comprises the following steps: a, answer part IM determines needed inquire message from inquire part; when sending, current chat message input content as answer content and combines the current inquire and answer content to one data package to set answer message label; inquire part IM receives data package with label to analyze its needed inquire message content; in chat record window, the current inquire message and answer message for display.

Description

The display packing of instant message in a kind of instant messaging
Technical field
The present invention relates to the message transmission and the page Display Technique of network instant communication instrument (IM), relate in particular to the display packing of instant message in a kind of instant messaging.
Background technology
Network instant communication instrument (IM) software development was accepted by most netizen to today.For example IM softwares such as QQ, TM, POPO, MSN, RTX are widely used.In IM software, the function that user's frequency of utilization is the highest is utilized IM software and the contact person communication of chatting exactly, and this also is the basic functions of IM software, can so that the user realize carrying out real-time communication by network.Continuous development along with IM software, the user not only can carry out single chat to list with a contact person and link up, carry out common communication but also can form discussion group with regard to certain topic with many people, also can set up simultaneously various types of groups, carry out exchanging of group chat with contact person with same feature.Like this, the chat window in the IM software is that the user contacts maximum IM software modules.
Fig. 1 is the composition schematic diagram of current typical IM software chat window.Referring to Fig. 1, chat window mainly is made up of chat record demonstration subwindow 11 (hereinafter to be referred as showing subwindow) and chat message input subwindow 12 two parts, show the subwindow 11 responsible chat records that show, for example: the message that the user sends and receives, and the state that sends or receive; Chat message input subwindow 12 mainly is the editor that the user imports message.When the user is chatting communication, often need drag the Rolling valve 14 that shows in subwindow 11 the right scroll bars 13, check chat record to turn back.
In the communication technology of current I M instrument, adopt point-to-point UDP transmission or transit server transmission between the IM terminal, with the instantaneity that realizes communicating by letter between the IM.At transmit leg IM, user's input in chat message input subwindow 12 needs the content of the message of transmission, then click " transmission " button, IM monitor " transmission " button clicked after, the message content that chat message is imported in the subwindow becomes packet with the Message-text format combination, sends packet by the transmission sockets interface with communication counterpart IM (being recipient IM) agreement; At recipient IM, generate earlier with answer party IM agreement accept the message sockets interface, accept asynchronous wait reception packet in the message sockets interface at this, to the packet that receives be decrypted and dissection process after, obtain effective message content and text formatting, then the bottom function of the API (API) by this recipient IM place computer operating system (for example Windows operating system) is obtained the handle that chat record shows subwindow 11, send Windows then and add text message, directly the message content that parses is presented at the bottom that chat record shows subwindow 11 with the text formatting that parses.
Above-mentioned prior art has guaranteed the instantaneity that communicating pair IM links up, and after promptly transmit leg IM had write message, recipient IM can be in real time be presented at chat record with the message of this transmit leg IM and shows in the subwindow.
But, can not realize question and answer are communicated by letter between the relevant IM specific aim, order and validity in the above-mentioned prior art scheme.When a certain IM and another IM communicate, if local some problem of IM inquiry the other side IM, sent apply for information to the other side IM at certain problem, when sending this apply for information, the other side IM has transmitted some other irrelevant messages may for local IM, just send the response message of aforementioned apply for information then, the chat record that is presented at local IM this moment shows that the message content in the subwindow is according to the sequencing that the receives message demonstration that adds up, the response message that apply for information is corresponding with it is not arranged accordingly pointedly and is shown, make local IM user be difficult to identify the other side and answered which problem of oneself, the no specific aim of this inquire message and randomness show the validity that has had a strong impact on IM user both sides communications, the answer information of recipient IM effectively is not shown to transmit leg IM, a kind of obstacle that has caused IM user both sides to exchange has seriously hindered the communication efficient between the IM user.
Summary of the invention
In view of this, main purpose of the present invention is to provide the display packing of instant message in a kind of instant messaging, be implemented in chat record and show corresponding apply for information and its corresponding response message of showing in the subwindow, make instant messaging both sides' the pointed and order of question and answer communication, improve the communication efficient between the IM user.
In order to realize the foregoing invention purpose, main technical schemes of the present invention is:
The display packing of instant message in a kind of instant messaging, this method comprises:
A, answer party IM determine the apply for information that current need are replied from the apply for information that the need that the side of inquiry IM sends are replied;
B, answer party IM are when sending message, with the content of the content in the current chat message input subwindow as response message, and the content of the content of the apply for information that the current need that described steps A is determined are replied and described response message is combined to same packet and sends, and sets the response message sign in this packet;
After C, inquiry side IM receive the packet with response message sign, parse the apply for information content that current need wherein reply and the content of response message; The apply for information that need are replied and the content of response message merge and are presented at this chat record and show in subwindow.
Preferably, among the step B, after described answer party IM sends packet, further comprise: the apply for information that need are replied merges with the content of response message and is presented in the chat record demonstration subwindow.
The content of described apply for information that need are replied and response message merges and is presented at chat record and shows that the concrete grammar in the subwindow is: determine that apply for information that described current need reply shows position in the subwindow at chat record that should the side of answering IM; Show in subwindow at this chat record, the content of described response message is inserted into after the apply for information present position that described current need reply; Be in message content dynamic arrangement after the apply for information position that described current need reply after described response message with former.
In the steps A, the concrete mode of determining the apply for information that current need are replied the apply for information that the need that described answer party IM sends from the side of inquiry IM are replied is: be extracted in the apply for information that chat record shows current cursor position in the subwindow, the apply for information that this apply for information is replied as current need; And after steps A, further comprise: the mapping relations of setting up the content of the apply for information that described cursor position and described current need reply; Describedly determine that apply for information that current need reply shows that at chat record that should the side of answering IM the concrete grammar of the position in the subwindow is: the described mapping relations of content search of the apply for information of replying according to current need, the apply for information that the cursor position that inquires is replied as current need shows position in the subwindow at chat record that should the side of answering IM.
Preferably, among the step C, the apply for information that need are replied and the content of response message merge and are presented at this chat record and show that the concrete grammar in subwindow is:
C1, determine that apply for information that described current need reply shows position in the subwindow at the chat record of this side of inquiry IM;
C2, the content of described response message is inserted into after the apply for information present position that described current need reply;
C3, be in message content dynamic arrangement after the apply for information position that described current need reply after described response message with former.
In the steps A, the concrete mode of determining the apply for information that current need are replied the apply for information that the need that described answer party IM sends from the side of inquiry IM are replied is: the side of inquiry IM sets specific problem identification in this apply for information when sending the apply for information that need reply; After answer party IM receives apply for information,, then judge the apply for information of this apply for information, and in chat record demonstration subwindow, highlight the apply for information that this need be replied for replying if find wherein to carry specific problem identification; When answer party IM monitors apply for information that some need reply when clicked, determine that then this apply for information that need reply is the apply for information that current need are replied; Herein, after inquiry side IM sends the apply for information that need reply, further comprise: the side of inquiry IM sets up and preserves the dynamic link table structure of the apply for information that described need reply, and this apply for information that need reply and the sequence number correspondence in message sequence thereof are kept in this dynamic link table structure; And the concrete grammar of step C1 described herein is: the side of inquiry IM inquires about described dynamic link table structure, determine the sequence number of apply for information in message sequence that described current need are replied, in the position of determining according to this sequence number in the chat record demonstration subwindow of apply for information that these current need are replied at this side of inquiry IM.
Before described step C1, further comprise: judge the content that in the current chat record demonstration subwindow of inquiry side IM, whether has the apply for information that described current need reply, if, execution in step C1 then, otherwise, the adjacent part that apply for information that described current need are replied and response message are merged into a message, distinguish apply for information and the response message part that described current need are replied by different font colors, the message of this merging directly is inserted into the bottom of the chat record demonstration subwindow of inquiry side IM.
Preferably, in the steps A, the concrete mode of determining the apply for information that current need are replied the apply for information that the need that described answer party IM sends from the side of inquiry IM are replied is: be extracted in the apply for information that chat record shows current cursor position in the subwindow, the apply for information that this apply for information is replied as current need.
Herein, described extraction chat record shows that the concrete grammar of the apply for information of current cursor position in the subwindow is: whether the position of judging current cursor changes, and shows position in the subwindow if change then redefine current cursor at chat record; According to the position of current cursor in chat record demonstration subwindow, utilize operating system control function to extract the apply for information of position that current cursor is walked.
Preferably, in the steps A, the concrete mode of determining the apply for information that current need are replied the apply for information that the need that described answer party IM sends from the side of inquiry IM are replied is: the side of inquiry IM sets specific problem identification in this apply for information when sending the apply for information that need reply; After answer party IM receives apply for information,, then judge the apply for information of this apply for information, and in chat record demonstration subwindow, highlight the apply for information that this need be replied for replying if find wherein to carry specific problem identification; When answer party IM monitors apply for information that some need reply when clicked, determine that then this apply for information that need reply is the apply for information that current need are replied.
Herein, described inquiry side IM sets the concrete grammar of specific problem identification and is in apply for information: the button that the issue message type is set on the IM chat interface in advance; After the input apply for information content and before sending apply for information, judge whether the button of described issue message type is clicked, if then in the apply for information that is sent, set problem identification.
Herein, described answer party IM highlights the method for the apply for information that described need reply and is: show at chat record with the form of hyperlink to show the apply for information that need reply in the subwindow.
Herein, after the apply for information that the described need that show in chat record demonstration subwindow with super type of attachment are replied is clicked, then current cursor is navigated to automatically in the chat message input subwindow, and the apply for information that described clicked need are replied is repainted into the form of ordinary text message.
Preferably, behind described step C, further comprise: the side of inquiry IM navigates to cursor position the display position of described response message; Perhaps use the color different to show the content of response message with other message.
Preferably, the content of described apply for information that need are replied and response message merges and is presented at chat record and shows that the concrete grammar in the subwindow is:
The adjacent part that apply for information that described current need are replied and response message are merged into a message, distinguish apply for information and the response message part that described current need are replied by different font colors, the message of this merging directly is inserted into the bottom of chat record demonstration subwindow.
Because when method of the present invention is inquired with acknowledge communication at instant communicating pair, the corresponding adjacent chat record that is presented at response message of apply for information is shown in the subwindow, make local IM user identify the other side at an easy rate and answered which apply for information of oneself, and what the content of its response message is, therefore make the pointed and order of question and answer communication of instant messaging, improved the validity that IM user both sides link up, improved the communication efficient between the IM user, can save user's the communication exchange time greatly, guarantee the instant fluency of linking up of user.
Apply for information and response message that the mode that the present invention further shows with cursor position or color is given prominence to adjacent demonstration, make the user discern the response message that the other side makes at certain bar apply for information of we easily, therefore further improve IM user's communication efficient, reached the purpose of effective communication.
Description of drawings
Fig. 1 is the composition schematic diagram of current typical IM software chat window;
Fig. 2 is the flow chart of core technology scheme of the present invention;
Fig. 3 is the flow chart of first embodiment of the invention;
Fig. 4 is the flow chart of second embodiment of the invention.
Embodiment
Below by specific embodiments and the drawings the present invention is described in further details.
Fig. 2 is the flow chart of core technology scheme of the present invention.Referring to Fig. 2, the present invention is the display packing of instant message in a kind of instant messaging, and this method comprises:
Step 201, answer party IM determine the apply for information that current need are replied from the apply for information that the need that the side of inquiry IM sends are replied;
Step 202, answer party IM are when sending message, with the content of the content in the current chat message input subwindow as response message, and the content of the content of the apply for information that the current need that described steps A is determined are replied and described response message is combined to same packet and sends, and sets the response message sign in this packet;
After step 203, inquiry side IM receive the packet with response message sign, parse the content that wherein current need are replied apply for information content and response message; Show in the subwindow at this chat record, described current need are replied the corresponding adjacent demonstration of content of apply for information and response message.
For convenience, herein, to two mutually the intercommunication IM the name be called agreement, promptly be divided into: the inquiry side IM of message and the answer party IM of message.The inquiry side IM of described message is the initiator of described apply for information, and the answer party IM of described message is promptly at the answer party IM of this apply for information.Described apply for information can be all message that a side IM sends to the opposing party IM, the literal sense of possible some message is not certain problem of inquiry, but because the other user can reply at each message, therefore this paper for convenience of explanation, with might all be called apply for information to its message of replying.
Determine the apply for information of replying by the current need that inquiry side IM sends corresponding to the described answer party IM of step 201, according to different user's requests, two kinds of modes of determining the apply for information that current need are replied are arranged, and at every kind of mode, the concrete processing mode of step 202 and step 203 also can be different.Therefore, this paper is following divides two embodiment that the present invention is described.
First embodiment: answer party IM determines the apply for information that current need are replied according to the designated identification of inquiry side IM.The side of inquiry IM specifies the apply for information of this apply for information for replying by set specific problem identification in this apply for information when sending a certain apply for information; After answer party IM receives apply for information, resolve the content of this apply for information,, then judge the apply for information of this apply for information, and highlight the apply for information that this need be replied for replying if find wherein to carry problem identification; When answer party IM monitors apply for information that some need reply when clicked, determine that then this apply for information is the apply for information that current need are replied.
In order to make inquiry side IM is that the apply for information that is sent is set specific problem identification, in this first embodiment, the type that the message that sends is set on the IM chat interface in advance is the button of issue message type, and in the transmission packet issue message type field is set.The apply for information of specifying institute to be sent by inquiry side IM is that the concrete grammar of need response message is that following step 301 is to step 302.
Fig. 3 is the flow chart of first embodiment of the invention.Referring to Fig. 3, the left side is the flow process of inquiry side IM, and the right is the flow process of answer party IM, and this first embodiment comprises:
Step 301, described inquiry side IM monitor the user in chat message input subwindow behind the input message content, before sending this message (promptly monitor " transmission " button clicked before), whether the button of judging described issue message type is clicked, if then execution in step 302; Otherwise, handle process ends according to existing normal message mode.
Step 302, the value of message type field that the apply for information of current transmission is set are problem identification, and promptly this type of message is the issue message type; When inquiry side IM monitor " transmission " button clicked after, utilize Windows window control function to extract all message contents in the chat message input subwindow, all message contents and the Message-text format combination imported in described message type field, the chat messages input subwindow are become packet, send socket by message and carry out the transmission of message with the other side IM agreement.
The result that step 303, inquiry side IM return according to server, whether the packet of judging described issue message type has successfully sent, if message sends successfully, then set up the dynamic link table structure of preserving such apply for information (being the apply for information of issue message type), and front successful apply for information and the sequence number correspondence of this apply for information in message sequence of transmission is saved in this dynamic link table structure; If do not send successfully, then show at chat record to show in the subwindow that this packet does not send the cause for the success according to the result who returns, and process ends.
The packet of accepting asynchronous wait reception new information in the message socket that step 304, answer party IM are arranging, the packet that receives is decrypted with parse operation handles, judge whether this new information is effective message, if not efficient message, then abandon the packet that this has received, and return the packet of execution in step 304, the asynchronous wait reception of continuation new information again; If efficient message, then execution in step 305.
Step 305, answer party IM resolve the message type field in the described packet, judge whether this message is the issue message type, if, execution in step 306, otherwise, process ends handled according to existing type of message handling process
Step 306, answer party IM parses the content of the apply for information in the packet, the handle that shows subwindow by the chat record that calls chat window, utilize Windows api function SendMessage to send windows messaging EM_REPLACESEL (this message is mainly used in chat record demonstration subwindow and inserts text), the content of apply for information is inserted in the described chat record demonstration subwindow, this chat record shows whether the type of the function judgement insertion message of subwindow is the apply for information that need reply, if then show that at chat record the form with hyperlink shows the apply for information that this need be replied in the subwindow, promptly in drawing function, reply the apply for information content at need and draw horizontal line, and show with blueness below by the Windows mapping function.
Step 307, answer party IM monitoring chat record shows whether certain apply for information of replying with need of hyperlink form performance in the subwindow clicked, if, then execution in step 308 otherwise, repeated execution of steps 307 continues monitoring.
Step 308, answer party IM judges that the apply for information that clicked need are replied is the apply for information that current needs are replied, current cursor is navigated in the chat message input subwindow automatically, clicked current need are replied the content of apply for information described in the obtaining step 307, and the windows messaging that transmission repaints shows that to chat message the apply for information of in the subwindow described current need being replied repaints into the form of ordinary text message, reply the original hyperlink form of expression of apply for information to reach these current need of cancellation, expression answer party IM at this but preceding need reply apply for information and done corresponding answer.
Step 309, answer party IM are monitoring " transmission " when button is clicked, utilize Windows window control function to extract all message contents in the chat message input subwindow, these message contents are replied the content of the response message of apply for information as described current need, it is the response message type that setting will send the data packet message type field, described message type field, described current need are replied the content of apply for information and the content of response message is combined into packet, and protocol format packages and encrypts by appointment.
Step 310, answer party IM utilize the transmission message socket of arranging with the other side IM that described packet is sent, the result who returns according to server judges whether successfully to have sent packet, if do not have successfully then show at chat record to show in the subwindow that this packet does not send the cause for the success, and process ends according to the result who returns; If packet sends successfully, then execution in step 311.
Step 311, answer party IM reply described current need the corresponding adjacent demonstration of content of apply for information and response message.That is: utilize chat record to show the handle of subwindow and the window function of Windows, reply the apply for information text according to described current need and obtain these current need and reply apply for information and show position in the subwindow, i.e. line number at chat record; Obtain the content of original message of this row back by Windows control function, and the insertion function that utilizes Windows is in this row back and be close to these current need and reply the content that apply for information dynamically inserts the response message that the user sent just now, the message content in the promptly described chat message input subwindow; Again dynamically original direct back that is inserted into this response message content that is close to of message content of replying the apply for information back at these current need.
As a kind of replacement scheme, this step 311 also can be carried out following operation, described current need are replied the adjacent demonstration of content correspondence of apply for information and response message:
Current need are replied apply for information to answer party IM and response message is merged into a message, distinguish current need by different font colors and reply apply for information and response message part, utilize chat record to show that the function of subwindow directly inserts the bottom of the message of this merging to this subwindow.
Processing by above-mentioned steps 311, answer party IM user can see and oneself answered certain apply for information, simultaneously the response message correspondence of this apply for information being presented at chat record shows in the subwindow, described corresponding the demonstration is meant that the next-door neighbour is presented at the back of described apply for information, like this user can to pick out described response message at an easy rate be response message at which apply for information, improved IM user's communication efficient.
Step 312, inquiry side IM with the socket port of the reception message of answer party IM agreement in the packet of asynchronous wait the other side return messages, the packet that receives is decrypted and dissection process, judge whether this packet is the active data bag, if be effective data packets, then execution in step 313; Otherwise, abandon the packet that this has received, and return the packet of execution in step 312, the asynchronous wait reception of continuation the other side return messages again.
Step 313, inquiry side IM parse the message type field in the packet, and the current need that parse are wherein replied the content of apply for information and the content of response message, judge whether to be the response message type, if then execution in step 314; Otherwise, handle process ends according to existing type of message handling process.
Step 314, inquiry side IM judge by Windows control function the current chat record at this side of inquiry IM shows in the subwindow whether exist above-mentioned current need to reply the content of apply for information, if then execution in step 315; Otherwise, described current need are replied the adjacent part that apply for information and response message are merged into a message, distinguish described current need by different font colors and reply apply for information and response message part, the chat record that utilizes message after the merging that the window control function of Windows will parse dynamically to be inserted into inquiry side IM shows the bottommost of subwindow.
The reason of carrying out 314 judgements of this step is that IM user may close the chat record display window.Closed because if chat record shows subwindow, then the message received of IM just can not be input to this chat record and shows in subwindow.
Step 315, inquiry side IM show in the subwindow at chat record, dynamically described current need are replied the corresponding adjacent demonstration of content of apply for information and response message.Below be respectively display packing, wherein step a be wherein a kind of to step c, promptly dynamically inserts the mode that the current need of response message in chat record demonstration subwindow are replied after the apply for information and realized automatic positioning cursor:
Step a, inquiry side IM utilize the current need that parse to reply the content of apply for information, the dynamic link table structure of the issue message type of setting up in the query steps 303, determine that these current need reply the sequence number of apply for information in message sequence, simultaneously according to this sequence number, and utilize Windows bottom api function to determine the message position that current need are replied apply for information place in chat record demonstration subwindow, i.e. line number.
Step b, inquiry side IM dynamically are inserted into the current need that obtain among the step a to the content of the response message that parses in the packet and reply back and next-door neighbour's this current need of the line number of apply for information and reply apply for information, and the while dynamically will be arranged in current need originally and reply the message content of apply for information back and be inserted into the back of described response message and be close to this response message.
Step c, utilize the Windows bottom automatically cursor position to be navigated to the display position of described response message at the api function of cursor operations.Perhaps can show the content of described response message herein with other methods that highlights, for example use the color different to show the content of response message with other message.
Arrive step c by above-mentioned steps a, the side of inquiry IM makes answer party IM at certain apply for information of we response message correspondence is presented at local chat record and shows in the subwindow, described corresponding the demonstration is meant that also the next-door neighbour is presented at the back of described apply for information, and the side of inquiry IM user can see this response message clearly by cursor position or outstanding color, improve IM user's communication efficient, reached the purpose of effective communication.
Step a can cause chat record to show the rolling of subwindow to this display mode of step c; If it is too frequent not wish that chat record shows that subwindow rolls, then available following mode substitutes above-mentioned steps a and arrives step c:
After the side of inquiry IM replys the content and response message content of apply for information at the current need that extract packet, current need are replied the apply for information content and the response message content is merged into a message, distinguish current need by different font colors and reply apply for information and response message part, utilize chat record to show that the function of subwindow directly inserts the bottom of the message of this merging to this subwindow.
Replace step a to step c by the way, then can avoid chat record to show the too frequent cursor positioning rolling effect that subwindow may occur, avoid cursor to roll user's reading influence.
For Windows function calls mode herein, has the multiple choices mode owing to realize the Windows function of certain function, and by the corresponding concrete Windows function of the function selecting of function is conventionally known to one of skill in the art, so this paper is for realizing which Windows function is certain function specifically call and repeat no more.
The first above-mentioned embodiment initiatively specifies certain message of its transmission to reply by the side that IM communicates by letter; But the IM communicating pair is in communication process, also may be that a certain side's hope can be added some message and exchanges after certain message of the opposing party who is received, (literal sense of possible this other side's some message is not inquiry promptly by a side who receives message all message of the other side all to be considered as apply for information, but because the user can reply at each message, therefore this paper for convenience of explanation, with might all be called apply for information to its message of replying), and determine that certain message is the apply for information that current need are replied, one side that will specify current need to reply apply for information herein is called answer party, and the communication counterpart of this answer party is called inquiry side.For the processing mode of this demand, the invention allows for the second following embodiment.In this second embodiment, answer party IM determines that in the other side's who self receives apply for information a certain apply for information is the apply for information that current need are replied, and adopt based on cursor automatically the chat pattern of location determine that current need reply apply for information.
Fig. 4 is the flow chart of second embodiment of the invention.Referring to Fig. 4, this flow process comprises:
At first be extracted in the message content that chat record shows current cursor position in the subwindow in the present embodiment, the apply for information that this message is replied as current need.This process specifically arrives step 403 referring to step 401.
Step 401, answer party IM judge whether the position of cursor changes, if change then redefine the position numerical value of current cursor.
In this step, answer party IM shows the press key message of intercepting and capturing the user in the subwindow by Windows preliminary treatment message interface function at chat record, and the parent window of chat display window is given in loopback, it is chat window shown in Figure 1, obtain the virtual key assignments of the keyboard that the user presses, judge whether current virtual key assignments is the key assignments that waits the control cursor direction in the keyboard up and down, if not, then carry out the intercepting and capturing of press key message again and handle; If the key assignments of isotropy up and down, judge that then current cursor position changes, moving direction and number of times according to different key assignments, determine the moving direction and the distance of cursor of mouse, finally determine new cursor of mouse position numerical value by Windows operational light target bottom api function.
This step also can utilize the api function GetCusorPos of Windows to determine the location parameter of cursor in addition, whether change to judge whether cursor position changes according to location parameter, if change then finally determine new cursor position numerical value by Windows operational light target bottom api function.
Step 402, answer party IM determine that chat message shows total line number of all message in the subwindow, and the height number that sets font, both are multiplied each other, obtain the maximum height that chat message shows subwindow, and determine that according to the height number of the position numerical value of the cursor of mouse that obtains in the step 401 and font current cursor place chat record shows the position in the subwindow, i.e. line number.
Step 403, answer party IM are according to the line number of current cursor place message, utilize Windows control function to extract the message content of the current position of cursor, the apply for information that this message is replied as current needs, set up current cursor place message line number (being the position) and these current need simultaneously and reply the Map mapping relations table of the content of apply for information, so that can use this data structure in the subsequent step.
Step 404, when answer party IM monitors " transmission " when button is clicked, utilize Windows window control function to extract all message contents in the chat message input subwindow, with the content of these message contents as response message, the type of message that setting will send message is the response message type, with message type field, the content of response message, and the content that determined current need are replied apply for information in the step 403 is combined into packet, and protocol format packages and encrypts by appointment, and utilize the transmission message socket of arranging that above-mentioned packet is sent with inquiry side IM.
Whether step 405, answer party IM successfully send according to the return results judgment data bag of server, if do not send successfully, then show the reason that video data Bao Wei is successfully sent in the subwindow, process ends according to return results at chat record; If send successfully, then execution in step 406.
Step 406, answer party IM reply described current need the corresponding adjacent demonstration of content of apply for information and response message.That is: the Map mapping relations table of setting up in the message content finding step 403 of being expert at by current cursor, determine the position at current cursor place, be line number, apply for information replied as current need in this position show position in the subwindow at chat record that should the side of answering IM; The response message content next-door neighbour who utilizes Windows bottom api function dynamically the user to be sent simultaneously is inserted into after the line number of current cursor place, be that described current need are replied after the apply for information position, and dynamic drafting was arranged in all message contents of current cursor back originally again, and these message contents next-door neighbour is presented at after the response message content of being inserted.Make and oneself can see that the message of transmission correctly has been positioned at the place of own needs.
As a kind of replacement scheme, this step 406 also can be carried out following operation, described current need are replied the adjacent demonstration of content correspondence of apply for information and response message:
Current need are replied apply for information to answer party IM and response message is merged into a message, distinguish current need by different font colors and reply apply for information and response message part, utilize chat record to show that the function of subwindow directly inserts the bottom of the message of this merging to this subwindow.
Processing by above-mentioned steps 406, answer party IM user can see and oneself answered certain apply for information, simultaneously the response message correspondence of this apply for information being presented at chat record shows in the subwindow, described corresponding the demonstration is meant that the next-door neighbour is presented at the back of described apply for information, like this user can to pick out described response message at an easy rate be response message at which apply for information, improved IM user's communication efficient.
Following steps 407 are accepted the handling process of response message for inquiry side IM to step 413:
Step 407, inquiry side IM with answer party IM agreement accept the medium pending data bag of message socket; After receiving packet, mode by appointment is decrypted and parse operation packet, judges whether it is the active data bag, if invalid, then directly abandons this packet, returns step 407, continues to wait for new packet; Otherwise, execution in step 408.
Step 408, inquiry side IM parse the message type field in the described effective data packets, parse described current need and reply the content of apply for information and the content of response message, whether the value of judging this field is the response message type, if then execution in step 409; Otherwise handle process ends according to existing processing mode to message.
Step 409, inquiry side IM judge by Windows control function the current chat record at this side of inquiry IM shows in the subwindow whether exist above-mentioned current need to reply the content of apply for information, if then execution in step 410; Otherwise, described current need are replied the adjacent part that apply for information and response message are merged into a message, distinguish described current need by different font colors and reply apply for information and response message part, the chat record that utilizes message after the merging that the window control function of Windows will parse dynamically to be inserted into inquiry side IM shows the bottommost of subwindow.
Step 410, inquiry side IM reply the adjacent demonstration with response message of apply for information to current need in chat record demonstration subwindow.
Current need are replied apply for information to concrete adopted subordinate step and response message shows.
The windows messaging that certain text chunk is searched in step a1, transmission shows subwindow to chat message, the parameter of this windows messaging is that described current need are replied apply for information, chooses at chat message by Windows window control function to show that in the subwindow this need reply the text chunk of apply for information.
Step b1, inquiry side IM utilize chat message to show the Windows api function FindText of subwindow, the Message-text section as function parameters, can obtain above-mentioned Message-text section shows subwindow at chat message position by function return value, and send specific event message to the parent window class, inform that these current need of parent window reply the position at apply for information place.
In addition, also can utilize Windows api function GetLineCount to obtain described current need earlier and reply the line number of apply for information in chat record demonstration subwindow, utilize chat message to show that the font height in the subwindow multiply by the line number that obtains simultaneously, obtain these current need and reply apply for information place chat message and show position in the subwindow.
Step c1, the positional information in chat record demonstration subwindow of the dynamic definite response message content of the side of inquiry IM, the current need that are about to obtain among the step b1 are replied the height that the position of apply for information in chat message demonstration subwindow adds one or more fonts, obtain the positional information of response message content, sending the windows messaging that inserts text chunk in the position of this response message content shows in the subwindow to chat message, the content of text section is the content of response message, dynamically being inserted into described need with the content with response message replys after the apply for information, and the function that utilizes Windows input frame control dynamically moves and was arranged in described need originally and replys all message contents in apply for information back, these message contents is inserted into the back of described response message content.
Steps d 1, inquiry side IM utilize the Windows bottom automatically cursor position to be navigated to the display position of described response message at the api function of cursor operations.Perhaps can show the content of described response message herein with other methods that highlights, for example use the color different to show the content of response message with other message.
Arrive steps d 1 by above-mentioned steps a1, the side of inquiry IM makes answer party IM at certain apply for information of we response message correspondence is presented at local chat record and shows in the subwindow, described corresponding the demonstration is meant that also the next-door neighbour is presented at the back of described apply for information, and the side of inquiry IM user can see this response message clearly by cursor position or outstanding color, improve IM user's communication efficient, reached the purpose of effective communication.
Step a1 is a kind of scheme of current need being replied the corresponding adjacent demonstration of content of apply for information and response message in this second embodiment to steps d 1, and the present invention also can utilize following displaying scheme to replace above-mentioned step a1 to arrive steps d 1:
After the side of inquiry IM replys the content and response message content of apply for information at the current need that extract packet, current need are replied the apply for information content and the response message content is merged into a message, distinguish current need by different font colors and reply apply for information and response message part, utilize chat record to show that the function of subwindow directly inserts the bottom of the message of this merging to this subwindow.
Can reach the purpose of effective communication between the user by above-mentioned two technical schemes, make that the communication between the user becomes more smoothly, greatly facilitate the process that the user uses IM software to link up immediately.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.

Claims (15)

1, the display packing of instant message in a kind of instant messaging is characterized in that this method comprises:
A, answer party IM determine the apply for information that current need are replied from the apply for information that the need that the side of inquiry IM sends are replied;
B, answer party IM are when sending message, with the content of the content in the current chat message input subwindow as response message, and the content of the content of the apply for information that the current need that described steps A is determined are replied and described response message is combined to same packet and sends, and sets the response message sign in this packet;
After C, inquiry side IM receive the packet with response message sign, parse the content of the apply for information that current need wherein reply and the content of current response message; The apply for information that need are replied and the content of response message merge and are presented at this chat record and show in subwindow.
2, method according to claim 1 is characterized in that, among the step B, after described answer party IM sends packet, further comprises: the apply for information that need are replied merges with the content of response message and is presented in the chat record demonstration subwindow.
3, method according to claim 2 is characterized in that, the content of described apply for information that need are replied and response message merges and is presented at chat record and shows that the concrete grammar in the subwindow is:
Determine that apply for information that described current need reply shows position in the subwindow at chat record that should the side of answering IM; Show in subwindow at this chat record, the content of described response message is inserted into after the apply for information present position that described current need reply; Be in message content dynamic arrangement after the apply for information position that described current need reply after described response message with former.
4, method according to claim 3 is characterized in that,
In the steps A, the concrete mode of determining the apply for information that current need are replied the apply for information that the need that described answer party IM sends from the side of inquiry IM are replied is: be extracted in the apply for information that chat record shows current cursor position in the subwindow, the apply for information that this apply for information is replied as current need;
And after steps A, further comprise: the mapping relations of setting up the content of the apply for information that described cursor position and described current need reply;
Describedly determine that apply for information that current need reply shows that at chat record that should the side of answering IM the concrete grammar of the position in the subwindow is: the described mapping relations of content search of the apply for information of replying according to current need, the apply for information that the cursor position that inquires is replied as current need shows position in the subwindow at chat record that should the side of answering IM.
5, method according to claim 1 is characterized in that, among the step C, the apply for information that need are replied and the content of response message merge and be presented at this chat record and show that the concrete grammar in subwindow is:
C1, determine that apply for information that described current need reply shows position in the subwindow at the chat record of this side of inquiry IM;
C2, the content of described response message is inserted into after the apply for information present position that described current need reply;
C3, be in message content dynamic arrangement after the apply for information position that described current need reply after described response message with former.
6, method according to claim 5 is characterized in that,
In the steps A, the concrete mode of determining the apply for information that current need are replied the apply for information that the need that described answer party IM sends from the side of inquiry IM are replied is: the side of inquiry IM sets specific problem identification in this apply for information when sending the apply for information that need reply; After answer party IM receives apply for information,, then judge the apply for information of this apply for information, and in chat record demonstration subwindow, highlight the apply for information that this need be replied for replying if find wherein to carry specific problem identification; When answer party IM monitors apply for information that some need reply when clicked, determine that then this apply for information that need reply is the apply for information that current need are replied;
And after inquiry side IM sends the apply for information that need reply, further comprise: the side of inquiry IM sets up and preserves the dynamic link table structure of the apply for information that described need reply, and this apply for information that need reply and the sequence number correspondence in message sequence thereof are kept in this dynamic link table structure;
And the concrete grammar of described step C1 is: the side of inquiry IM inquires about described dynamic link table structure, determine the sequence number of apply for information in message sequence that described current need are replied, in the position of determining according to this sequence number in the chat record demonstration subwindow of apply for information that these current need are replied at this side of inquiry IM.
7, method according to claim 5 is characterized in that, before described step C1, further comprises:
Judgement shows the content that whether has the apply for information that described current need reply in the subwindow at the current chat record of inquiry side IM, if, execution in step C1 then, otherwise, the adjacent part that apply for information that described current need are replied and response message are merged into a message, distinguish apply for information and the response message part that described current need are replied by different font colors, the message of this merging directly is inserted into the bottom of the chat record demonstration subwindow of inquiry side IM.
8, according to claim 1,2,3,5 or 7 described methods, it is characterized in that, in the steps A, determine the apply for information that the need that described answer party IM sends from the side of inquiry IM are replied that the concrete mode of the apply for information that current need are replied is:
Be extracted in the apply for information that chat record shows current cursor position in the subwindow, the apply for information that this apply for information is replied as current need.
9, method according to claim 8 is characterized in that, described extraction chat record shows that the concrete grammar of the apply for information of current cursor position in the subwindow is:
Whether the position of judging current cursor changes, and shows position in the subwindow if change then redefine current cursor at chat record; According to the position of current cursor in chat record demonstration subwindow, utilize operating system control function to extract the apply for information of position that current cursor is walked.
10, according to claim 1,2,3,5 or 7 described methods, it is characterized in that, in the steps A, the concrete mode of determining the apply for information that current need are replied the apply for information that the need that described answer party IM sends from the side of inquiry IM are replied is: the side of inquiry IM sets specific problem identification in this apply for information when sending the apply for information that need reply; After answer party IM receives apply for information,, then judge the apply for information of this apply for information, and in chat record demonstration subwindow, highlight the apply for information that this need be replied for replying if find wherein to carry specific problem identification; When answer party IM monitors apply for information that some need reply when clicked, determine that then this apply for information that need reply is the apply for information that current need are replied.
11, method according to claim 10 is characterized in that, described inquiry side IM sets specific problem identification in apply for information concrete grammar is: the button that the issue message type is set on the IM chat interface in advance; After the input apply for information content and before sending apply for information, judge whether the button of described issue message type is clicked, if then in the apply for information that is sent, set problem identification.
12, method according to claim 11 is characterized in that, the method that described answer party IM highlights the apply for information that described need reply is: show at chat record with the form of hyperlink to show the apply for information that need reply in the subwindow.
13, method according to claim 12, it is characterized in that, after the apply for information that the described need that show in chat record demonstration subwindow with super type of attachment are replied is clicked, then current cursor is navigated to automatically in the chat message input subwindow, and the apply for information that described clicked need are replied is repainted into the form of ordinary text message.
14, according to each described method of claim 1 to 7, it is characterized in that, behind described step C, further comprise: the side of inquiry IM navigates to cursor position the display position of described response message; Perhaps use the color different to show the content of response message with other message.
15, method according to claim 1 and 2 is characterized in that, the content of described apply for information that need are replied and response message merges and is presented at this chat record and shows that the concrete grammar in subwindow is:
The adjacent part that apply for information that described current need are replied and response message are merged into a message, distinguish apply for information and the response message part that described current need are replied by different font colors, the message of this merging directly is inserted into the bottom of chat record demonstration subwindow.
CNB2005100986257A 2005-09-05 2005-09-05 Display method for instant message in instant communication Active CN100469061C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100986257A CN100469061C (en) 2005-09-05 2005-09-05 Display method for instant message in instant communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100986257A CN100469061C (en) 2005-09-05 2005-09-05 Display method for instant message in instant communication

Publications (2)

Publication Number Publication Date
CN1929454A CN1929454A (en) 2007-03-14
CN100469061C true CN100469061C (en) 2009-03-11

Family

ID=37859243

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100986257A Active CN100469061C (en) 2005-09-05 2005-09-05 Display method for instant message in instant communication

Country Status (1)

Country Link
CN (1) CN100469061C (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060502B (en) * 2007-05-25 2010-05-26 北京金山软件有限公司 A method and device for simultaneous viewing the chat record and the latest news
CN101431479B (en) * 2007-11-08 2011-12-07 华为技术有限公司 Method, client and server for implementing question and answer service
CN101227425B (en) * 2007-12-25 2010-11-10 腾讯科技(深圳)有限公司 System, client end and method for obtaining history message and feeding back history message
US8739048B2 (en) * 2008-08-28 2014-05-27 Microsoft Corporation Modifying conversation windows
CN103795607A (en) * 2012-10-30 2014-05-14 联想(北京)有限公司 Message processing method, instant messaging client, and instant messaging system
CN103902253B (en) * 2012-12-24 2019-03-01 腾讯科技(深圳)有限公司 Information processing method and system based on ios platform
CN104104588B (en) * 2014-04-30 2019-01-18 中兴通讯股份有限公司 Instant message display methods and device
CN105681160B (en) * 2014-11-21 2019-02-05 中国移动通信集团公司 The method and device of conversation message random ordering is corrected in a kind of instantaneous communication system
WO2017197566A1 (en) * 2016-05-16 2017-11-23 华为技术有限公司 Method, device, and system for journal displaying
CN110620841B (en) * 2018-06-20 2022-04-15 中兴通讯股份有限公司 Information processing method, multi-screen terminal and computer readable storage medium
CN111131002B (en) * 2019-12-30 2022-06-03 论客科技(广州)有限公司 Method, system and storage medium for tracing chat records
CN112242930A (en) * 2020-10-19 2021-01-19 珠海格力电器股份有限公司 Conversation processing method, device, server and storage medium

Also Published As

Publication number Publication date
CN1929454A (en) 2007-03-14

Similar Documents

Publication Publication Date Title
CN100469061C (en) Display method for instant message in instant communication
CN100493045C (en) Group message transmitting method, transmitting client and system
CN101159714B (en) Instant communication method and device
CN102591980B (en) Method and system used for classifying image files in instant messaging
CN101496363A (en) Multi-threaded instant messaging
CN101179520A (en) Method and system for sensing mail status
CN100468305C (en) Communication information displaying method in communication system
CN101193070A (en) Instant communication system, instant communication client and instant communication method
CN101296198B (en) Method and client for inserting affluent interface constituent in instant communication window
CN102404251A (en) Realization method, client and system for instant messaging with remarking function
CN102222064A (en) Real-time translation system and method, network communication apparatus
CN106407065A (en) Password keyboard USB communication abnormality recovery method and system
CN102611641B (en) Gather the method and system that instant messaging record carries out gathering
CN102566863A (en) Method and system for setting auxiliary area in instant messaging tool
CN102664831B (en) Method, client and the system of file data are transmitted by instant messaging tools
CN109302340A (en) One kind burying point data report method, device and computer readable storage medium
CN101094202A (en) Method and system for receiving events in management system through instant communication tool
CN102629919B (en) In order to add the method for contact person, client and system in instant messaging
CN101247363A (en) Method, client terminal and system for implementing instant communication message reminding
CN101557354A (en) Method for sending picture by client service personnel on line
CN101075955B (en) Method and apparatus for accessing Internet simultaneously by browser and instant communicator
CN101018210A (en) Automatic information reply method and device in the communication system
CN111262773A (en) Message synchronization method and data center
CN100463402C (en) Method and device for recording display of communication information in communication system
CN100450006C (en) Discussion group realizing method based on reciprocal mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant