CN102255824B - Instant messaging method and system - Google Patents

Instant messaging method and system Download PDF

Info

Publication number
CN102255824B
CN102255824B CN201110003818.5A CN201110003818A CN102255824B CN 102255824 B CN102255824 B CN 102255824B CN 201110003818 A CN201110003818 A CN 201110003818A CN 102255824 B CN102255824 B CN 102255824B
Authority
CN
China
Prior art keywords
user
chat window
window
page
chat
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
CN201110003818.5A
Other languages
Chinese (zh)
Other versions
CN102255824A (en
Inventor
张矗
郭丽娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING KAIXINREN INFORMATION TECHNOLOGY Co Ltd
Original Assignee
BEIJING KAIXINREN INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING KAIXINREN INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING KAIXINREN INFORMATION TECHNOLOGY Co Ltd
Priority to CN201110003818.5A priority Critical patent/CN102255824B/en
Publication of CN102255824A publication Critical patent/CN102255824A/en
Application granted granted Critical
Publication of CN102255824B publication Critical patent/CN102255824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an instant messaging method and a system. The method comprises the following steps: S1) choosing a chat object by a user; S2) judging if a chat window of a current chat object group exists or not by a client, if so, entering the step S3, and if not, creating the chat window of the current chat object group; S3) judging if a current session page of the chat object exists or not by the client, if so, entering the step S4, and if not, entering the step S5; S4) determining the chat window by the user; and S5) creating the session page of the chat object in the chat window of the current chat object group by the client. By the adoption of the method and the system disclosed by the invention, a user can chat with several friends by using a same window; in addition, different chat windows are opened according to different groups, the session pages under the same group are placed into the same chat window, thereby bringing convenience to the user for managing the session pages, and saving system resources.

Description

A kind of method and system of instant messaging
Technical field
The present invention relates to a kind of instant communication method and system, belong to network communication field.
Background technology
The abbreviation of Instant Messaging (instant messaging, real-time communication) is IM, and this is a kind of service that can allow user set up certain real-time communication on network.Messager, NET Messager Service, Jabber, ICQ etc.
In current instant messaging, user is when using IM instrument to chat, if wanted, engage in the dialogue from different session objects, need to create different chat windows and conversation page, adopt in this way and can waste a large amount of system resource, thereby can affect the speed of service of application program under multitask environment, user's use is inconvenient, and user experiences bad; In addition, use a plurality of chat windows and conversation page, be not easy to the management of user to conversation page.
Summary of the invention
The object of the invention is to, a kind of method and system of instant messaging are provided, it can be realized user and use the same window and a plurality of good friend to carry out session, is convenient to user session is managed, and user is easy to use, and has saved system resource.
For solving the problems of the technologies described above, the present invention adopts following technical scheme: a kind of method of instant messaging, comprises the following steps:
S1, user selects chatting object;
S2, client judges whether the chat window of chatting object's current group exists; If so, perform step S3, if not, forward step S4 to;
S3, client judges whether chatting object's the current sessions page exists; If so, forward step S7 to; If not, forward step S5 to;
S4, the chat window of establishment chatting object current group;
S5 creates the user conversation page in existing chat window;
S6, user determines chat window;
S7, the conversation recording of the loading current sessions page.
The method of aforesaid a kind of instant messaging, in described step S6, user determines that chat window comprises: mouse switches and shortcut switches.
The method of aforesaid a kind of instant messaging, in described step S5, in existing chat window, creating the user conversation page comprises: client creates the conversation page to identify label that should good friend in the corresponding user's chat window of good friend, and is presented in session window.
The system that realizes a kind of instant messaging of preceding method, comprising:
Object Selection module, selects chatting object for user;
Window judge module, judges for client whether the chat window of chatting object's current group exists;
Page judge module, judges for client whether chatting object's the current sessions page exists;
Window creation module, for creating the chat window of chatting object's current group;
Page creation module, for creating the user conversation page at existing chat window;
Window determination module, determines chat window for user;
Record loading module, for loading the conversation recording of the current sessions page.
The system of aforesaid a kind of instant messaging, further comprises,
Mouse handover module, selects chat window for the mode of clicking with mouse;
Shortcut handover module, selects chat window for the mode of switching with shortcut.
Compared with prior art, the present invention can realize user and use the same window and a plurality of good friend to carry out session, and can open different chat windows for different groupings, conversation page under same grouping is placed in to same chat window, facilitated the management of user to conversation page, strengthened user's experience, user uses the wish of immediate communication tool generally to strengthen; According to the data of investigation and statistics, show, use after the method for the invention, the number of users of immediate communication tool has on average increased by 5%~10%; And owing to having reduced the establishment of chat window and conversation page, saved system resource, Installed System Memory consumption has on average reduced by 8%.
Accompanying drawing explanation
Fig. 1 is the system schematic of a kind of embodiment of the present invention;
Fig. 2 is the workflow diagram of a kind of embodiment of the present invention.
Reference numeral: 1-Object Selection module, 2-window judge module, 3-page judge module, 4-window creation module, 5-page creation module, 6-window determination module, 7-records loading module, 8-mouse handover module, 9-shortcut handover module.
Below in conjunction with the drawings and specific embodiments, the present invention is further illustrated.
Embodiment
Embodiments of the invention: a kind of method of instant messaging, comprises the following steps:
S1, user selects chatting object;
S2, client judges whether the chat window of chatting object's current group exists; If so, perform step S3, if not, forward step S4 to;
S3, client judges whether chatting object's the current sessions page exists; If so, forward step S7 to; If not, forward step S5 to;
S4, the chat window of establishment chatting object current group;
S5 creates the user conversation page in existing chat window;
S6, user determines chat window;
S7, the conversation recording of the loading current sessions page.
In described step S1, user selects good friend as chatting object by client, to good friend, sends session request, and client is determined the good friend of user's current request, and obtains this good friend's identification information and corresponding user grouping identification information thereof.
In described step S6, user determines that chat window comprises: mouse switches and shortcut switches.
In described step S5, in existing chat window, create the user conversation page and comprise: client creates the conversation page to identify label that should good friend in the corresponding user's chat window of good friend, and is presented in session window.
Can utilize Tab control to realize the establishment of conversation page.Different sessions adopts different Tab.First client judges in current group, whether there have been other sessions, if no, client can first be calculated the height and the width data of the chat window of good friend's current group, and position data, utilize Windows api function specified attribute page control, i.e. the viewing area of Tab control.Otherwise client utilizes the api function that property pages control is relevant to create property pages, i.e. a conversation page in present chatting window.And good friend's user profile is loaded in attribute tags.It is visible state that client arranges the current sessions page by property pages control, and utilizes Windows window to show that other conversation page of relevant api function good friend current group are set to non-active state.
Described method, also comprises that client loads user and current chatting object's chat record.The Tab control that client is clicked according to active user, obtain the good friend's user profile comprising in Tab control, user profile mainly comprises: user name, account, user ID etc., by the current chat record of user and this good friend in user ID Query Database, load chat record, refresh current chat messages record window simultaneously.
Realize the system of a kind of instant messaging of preceding method, its system schematic as shown in Figure 1; Comprise:
Object Selection module 1, selects chatting object for user;
Window judge module 2, judges for client whether the chat window of chatting object's current group exists;
Page judge module 3, judges for client whether chatting object's the current sessions page exists;
Window creation module 4, for creating the chat window of chatting object's current group;
Page creation module 5, for creating the user conversation page at existing chat window;
Window determination module 6, determines chat window for user;
Record loading module 7, for loading the conversation recording of the current sessions page.
System further comprises,
Mouse handover module 8, selects chat window for the mode of clicking with mouse;
Shortcut handover module 9, selects chat window for the mode of switching with shortcut.
The workflow of a kind of embodiment of the present invention: (referring to Fig. 2)
S10, user selects chatting object;
S20, client judges whether the chat window of chatting object's current group exists; If so, perform step S30, if not, forward step S40 to;
S30, client judges whether chatting object's the current sessions page exists; If so, forward step S70 to; If not, forward step S50 to;
S40, the chat window of establishment chatting object current group;
S50 creates the user conversation page in existing chat window;
S60, user determines chat window;
S70, the conversation recording of the loading current sessions page.
Example explanation: for example, in " Li Si " login IM, want the chat with its colleague " Zhang San ", system can be opened one and " Zhang San " chat window for " Li Si ", if " Li Si " can think again that " king five " chat, system can create one " Li Si " and " king five " chat window again.
If adopted a kind of method and system of instant messaging in " Li Si " IM, " Li Si " is when chatting with " Zhang San ", system can be obtained the grouping colleague grouping in the IM good friend of " Zhang San " place " Li Si ", whether the chat window that then judges corresponding colleague grouping in current " Li Si " IM creates, if just created directly at the existing colleague chat window that divides into groups, creates the conversation page of " Zhang San ".Otherwise system can first create " Li Si " colleague corresponding chat window of grouping and then create " Zhang San " corresponding conversation page in chat window." if Li Si " other good friends " king five " chat under also wanting to divide into groups with its colleague, system can be directly Li Si " the corresponding chat window of colleague's grouping so creates " king five " corresponding conversation page; and so just user can be easily in same chat window; realize simultaneously and over an object and chatting one to one, saved greatly the resource of system.

Claims (5)

1. a method for instant messaging, is characterized in that, comprises the following steps:
S1, user selects chatting object;
S2, client judges whether the chat window of chatting object's current group exists; If so, perform step S3, if not, forward step S4 to;
S3, client judges whether chatting object's the current sessions page exists; If so, forward step S7 to; If not, forward step S5 to;
S4, the chat window of establishment chatting object current group;
S5 creates the user conversation page in existing chat window;
S6, user determines chat window;
S7, the conversation recording of the loading current sessions page.
2. the method for a kind of instant messaging according to claim 1, is characterized in that, in described step S6, user determines that chat window comprises: mouse switches and shortcut switches.
3. the method for a kind of instant messaging according to claim 1, it is characterized in that, in described step S5, in existing chat window, creating the user conversation page comprises: client creates the conversation page to identify label that should good friend in the corresponding user's chat window of good friend, and is presented in session window.
4. realize in claim 1~3 system of a kind of instant messaging of the method for instant messaging described in any one, it is characterized in that, comprising:
Object Selection module (1), selects chatting object for user;
Window judge module (2), judges for client whether the chat window of chatting object's current group exists;
Page judge module (3), judges for client whether chatting object's the current sessions page exists;
Window creation module (4), for creating the chat window of chatting object's current group;
Page creation module (5), for creating the user conversation page at existing chat window;
Window determination module (6), determines chat window for user;
Record loading module (7), for loading the conversation recording of the current sessions page.
5. the system of a kind of instant messaging according to claim 4, is characterized in that: further comprises,
Mouse handover module (8), selects chat window for the mode of clicking with mouse;
Shortcut handover module (9), selects chat window for the mode of switching with shortcut.
CN201110003818.5A 2011-01-10 2011-01-10 Instant messaging method and system Active CN102255824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110003818.5A CN102255824B (en) 2011-01-10 2011-01-10 Instant messaging method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110003818.5A CN102255824B (en) 2011-01-10 2011-01-10 Instant messaging method and system

Publications (2)

Publication Number Publication Date
CN102255824A CN102255824A (en) 2011-11-23
CN102255824B true CN102255824B (en) 2014-01-29

Family

ID=44982827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110003818.5A Active CN102255824B (en) 2011-01-10 2011-01-10 Instant messaging method and system

Country Status (1)

Country Link
CN (1) CN102255824B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905772B (en) * 2012-12-28 2018-06-01 联想(北京)有限公司 The method and electronic equipment of a kind of prompting
CN107493223B (en) * 2016-06-13 2019-04-30 腾讯科技(深圳)有限公司 A kind of conversation managing method and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021748A (en) * 2006-02-14 2007-08-22 腾讯科技(深圳)有限公司 Method for starting immediate communication tool chatting window
CN101021764A (en) * 2006-02-14 2007-08-22 腾讯科技(深圳)有限公司 Communication information displaying method in communication system
CN101026612A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Method for managing different attribute suhgroups and their members for instant communication tool
CN101090346A (en) * 2006-06-16 2007-12-19 腾讯科技(深圳)有限公司 Group management method based on immediate communication and immediate communication customer end

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8190999B2 (en) * 2004-05-20 2012-05-29 International Business Machines Corporation System and method for in-context, topic-oriented instant messaging
US20060265454A1 (en) * 2005-05-19 2006-11-23 International Business Machines Corporation Instant message methods and techniques to broadcast or join groups of people
US20070094342A1 (en) * 2005-10-24 2007-04-26 Bostick James E Detachable control window for instant messaging chats
CN101026829A (en) * 2006-12-26 2007-08-29 武汉市迅彩科技有限责任公司 Single-window multi-page multi-person chat system for mobile communication system
CN101188577B (en) * 2007-12-29 2010-12-15 腾讯科技(深圳)有限公司 Multi-page instant communication method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021748A (en) * 2006-02-14 2007-08-22 腾讯科技(深圳)有限公司 Method for starting immediate communication tool chatting window
CN101021764A (en) * 2006-02-14 2007-08-22 腾讯科技(深圳)有限公司 Communication information displaying method in communication system
CN101026612A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Method for managing different attribute suhgroups and their members for instant communication tool
CN101090346A (en) * 2006-06-16 2007-12-19 腾讯科技(深圳)有限公司 Group management method based on immediate communication and immediate communication customer end

Also Published As

Publication number Publication date
CN102255824A (en) 2011-11-23

Similar Documents

Publication Publication Date Title
US7945612B2 (en) Aggregating user presence across multiple endpoints
US8099463B2 (en) Method and apparatus for sharing concurrent ad hoc web content between users visiting the same web pages
KR101182463B1 (en) Call group management using the session initiation protocol
CN103970614B (en) A kind of service test method and device
US20070239869A1 (en) User interface for user presence aggregated across multiple endpoints
CN108243086B (en) Message processing method and system
CN101150536A (en) Discussion group creation/distribution method, device and instant communication system
US20100248701A1 (en) Group based information displays
CN104246802A (en) Cross platform messaging
CN109639564A (en) A kind of method, apparatus and computer readable storage medium obtaining offline message
CN103493035A (en) Inline user addressing in chat and document editing sessions
CN101335723B (en) Instant communication system, window establishing method and system
CN114124861B (en) Message mass-sending method, device, computer equipment and storage medium
WO2021190087A1 (en) Task execution method, device and system, and server
CN101252548A (en) Method for multi-point login in instant communicating tools
CN103412920A (en) Terminal, server and information display method
CN102841726A (en) System, device and method for achieving a plurality of Tab pages under Android system
EP3025454A1 (en) Communication with on-calls and machines using multiple modalities through single historical tracking
CN102111347A (en) Multi-protocol instant message-based processing method and system in unified communication system
US20160149969A1 (en) Multi-device collaboration
CN105718529A (en) Method and device for pushing messages of application program on communication terminal
CN108353018B (en) Method, device and system for sending message
CN104283769A (en) Instant messaging service based on item of interest to user
CN104050287A (en) Method and system for replying messages during instant chat
US20200073982A1 (en) Federated chatbots

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