CN101296198B - Method and client for inserting affluent interface constituent in instant communication window - Google Patents

Method and client for inserting affluent interface constituent in instant communication window Download PDF

Info

Publication number
CN101296198B
CN101296198B CN2008101275044A CN200810127504A CN101296198B CN 101296198 B CN101296198 B CN 101296198B CN 2008101275044 A CN2008101275044 A CN 2008101275044A CN 200810127504 A CN200810127504 A CN 200810127504A CN 101296198 B CN101296198 B CN 101296198B
Authority
CN
China
Prior art keywords
user
ole control
client
template
command
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
CN2008101275044A
Other languages
Chinese (zh)
Other versions
CN101296198A (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 CN2008101275044A priority Critical patent/CN101296198B/en
Publication of CN101296198A publication Critical patent/CN101296198A/en
Application granted granted Critical
Publication of CN101296198B publication Critical patent/CN101296198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for inserting rich interface elements into an instant communication window, which comprises the steps that: after a user receives a command which needs to display the rich interface elements and is sent by a communication opposite end, object connection is established according to the type of the command and inserted into the instant communication window self-used currently with an embedded OLE control, and the required interface elements are established in the OLE control. The invention also discloses a client at the same time, which comprises a content establishing unit, a receiving and sending unit, a resolving and reading unit, and an OLE control and interface element establishing unit; by adopting the method and the client of the invention, interaction of complicated interfaces in the instant communication window can be realized.

Description

Method and client for inserting rich interface elements into instant communication window
Technical Field
The present invention relates to interface element insertion technologies, and in particular, to a method and a client for inserting rich interface elements in an instant messaging window.
Background
The development of Instant Messaging (IM) tools is now accepted by most netizens and becomes an indispensable software tool for users. With the continuous development of the IM software, users not only use the IM software in leisure and recreation at ordinary times, but also use the IM software in daily work to realize communication with friends, colleagues and classmates.
Currently, chat is a common operation in the use of IM software. However, for a long time, the content involved in the chat window can only be some simple content, such as: text, pictures or links, etc., cannot interact with the user in a complex interface, such as: complex interfaces such as button clicks that can be operated cannot be realized in chat content, and the interaction of the complex interfaces has to be moved to the outside of the chat content for presentation, such as: the user A sends a business card to the user B, but the business card content cannot be displayed in the chat content in real time and can only be displayed in other places except the chat window.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method and a client for inserting rich interface elements in an instant messaging window, which can implement interaction of a complex interface in the instant messaging window.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for inserting rich interface elements in an instant messaging window, which comprises the following steps:
after receiving a command which is sent by a communication opposite end and needs to display rich interface elements, a user creates an object connection and an embedded OLE control according to the command type, inserts an instant messaging window which is currently used by the user, and creates the needed interface elements in the OLE control.
The method specifically comprises the following steps:
A. the method comprises the steps that a first user creates interactive content containing rich interface elements to be sent to a second user in the first user;
B. a first user sends a client command carrying the used template identifier ID and information needing to be filled to a second user;
C. after receiving the client command sent by the first user, the second user creates an OLE control according to the type of the client command and inserts the OLE control into an instant messaging window currently used by the second user through analyzing and reading the content of the command, and creates a required interface element in the OLE control according to the information needing to be filled.
In the above scheme, after step C, the method further comprises: the second user interacts with the interface element created in the instant messaging window by forwarding the Windows message to the corresponding interface element via the OLE control.
The forwarding of the Windows message to the corresponding interface element via the OLE control specifically includes: and generating a Windows message, transmitting the Windows message to the OLE control by the IM software, and transmitting the Windows message to a corresponding interface element in the OLE control.
In the scheme, the interactive content containing rich interface elements is created according to a template; each template corresponds to a template ID.
The invention also provides a client, which comprises a content creating unit, a receiving and sending unit, an analysis and interpretation unit and an OLE control and interface element creating unit; wherein,
the content creating unit is used for creating interactive content containing rich interface elements;
the receiving and sending unit is used for sending a client command carrying the used template ID and the information to be filled to the communication opposite end, or receiving the client command sent by the communication opposite end, and sending the received client command to the analysis and interpretation unit;
the analysis and interpretation unit is used for analyzing the client command, interpreting the type of the client command and the information to be filled in the client command, and then sending the type and the information to be filled, which are interpreted and read, to the OLE control and interface element creation unit;
and the OLE control and interface element creating unit is used for creating the OLE control, inserting the OLE control into the instant messaging window and creating the required interface element in the OLE control according to the information needing to be filled.
In the foregoing solution, the client further includes: and the dynamic interaction unit is used for realizing the interaction between the user and the rich interface elements established in the instant messaging window.
In the foregoing solution, the client further includes: the content creating unit creates interactive content according to any one required template in the template library, and each template corresponds to one template ID.
According to the method and the client for inserting the rich interface elements into the instant messaging window, when instant messaging interaction is carried out among users, one user creates an Object Linking and Embedding (OLE) control to be inserted into the instant messaging window of the client used by the user according to a command sent by the other user and needing to display the rich interface elements, and the interface elements are realized inside the OLE control.
The invention overcomes the defect that the chatting content can only be typeset according to the internal rule by adopting RichEdit in the chatting window in the prior art, and the RichEdit is arranged according to the internal preset rule in the prior art, so that the user can not randomly adjust the positions of pictures and characters in the chatting content; in the invention, the OLE control for realizing rich interface elements inside is inserted into the RichEdit, and then the positions of pictures and characters in the chat content can be adjusted at will by adjusting the positions of the interface elements, so that the arbitrary typesetting control is realized, and thus, more accurate content typesetting can be controlled.
Because various interface elements are created in the OLE control, the invention can enrich the realization of a plurality of functions, such as: the text links can be richer, for example, the color and underlining can be changed when the mouse is moved to the text links; when the single-line display of the characters is not available, an ellipsis can be displayed, the line number of the displayed characters can be limited, and the like; mixed arrangement of pictures and texts can be arranged; different effects can be added to the picture, such as the frame where the mouse moves shines; set picture spacing, etc.
Drawings
FIG. 1a is a schematic diagram of a conventional interface engine;
FIG. 1b is a schematic diagram of an interface engine structure supporting an OLE control according to the present invention;
FIG. 1c is a schematic diagram of a hierarchical relationship of a chat window implementation of the present invention;
FIG. 2 is a schematic flow chart of the implementation of the method of the present invention.
Detailed Description
The basic idea of the invention is: after a certain user receives a command which is sent by a communication opposite end and needs to display rich interface elements, an OLE control is created according to the command type and is inserted into an instant messaging window which is used by the user at present, and various required interface elements are created in the OLE control. Further, the Windows message is forwarded to the corresponding interface element through the OLE control.
Here, the Windows message includes a mouse message, a keyboard message, and the like; the instant messaging window is a chat window.
According to the invention, the OLE control is embedded in the API of the RichEdit, and the OLE control technology and the interface engine technology are combined, so that interface elements can be realized in the OLE control. The interface engine is a set of interface solution, draws various controls by itself, and then dispatches various Windows messages, and how to implement the interface engine is disclosed in other patent applications and is not described herein again. Because the interface engine is based on the Windows message system, the application needs to modify the interface engine to support the OLE control technology. Specifically, in the prior art, the structure of the interface engine is shown in fig. 1a, and the interface engine is contained in a Windows and has a binding relationship with the Windows; the modification of the invention is to cancel the binding between the interface engine and the Windows instead of Windows message transmission, as shown in fig. 1b, so that the interface engine can be operated only by transmitting some standard Windows messages from the outside, and meanwhile, the OLE control also realizes the interaction with the interface engine through message transmission.
In the present invention, the hierarchical relationship realized by the chat window is as shown in fig. 1c, and the corresponding message forwarding process is as follows: the outermost Windows window will receive mouse, keyboard and other messages, and these Windows messages will be forwarded to RichEdit through the interface engine. Take mouse messages as an example: the RichEdit judges whether the mouse is in the range of a certain OLE control or not according to the position of the mouse and the position of the OLE control in the RichEdit, if so, the mouse message is transmitted to the OLE control which the mouse belongs to, and because the OLE control uses the interface engine technology inside, the OLE control only needs to continuously transmit the mouse message to the interface element inside, and the interface element can work, for example: when the control mouse is moved over a button, the button becomes highlighted, and so on.
Fig. 2 is an implementation flow of the method of the present invention, and as shown in fig. 2, the method for inserting rich interface elements in an instant messaging window of the present invention includes the following steps:
step 21: the first user creates, on his own, interactive content containing rich interface elements to be sent to the second user.
Here, the rich interface element refers to a series of contents to be filled in the interactive contents, such as name, telephone, address, etc. in the business card. The interactive content is created according to a template with a preset content typesetting mode, and the used template exists in IM software of both communication parties.
In general, there are many templates, each of which corresponds to a template Identifier (ID) for identification by the other party, for example: the first user transmits a business card to the second user, and then the business card is created according to a business card template, wherein the business card template corresponds to a template ID. Wherein, the same type of template may also be a plurality of templates according to different contents or types of layout, and respectively correspond to different template IDs, such as: the name card template can be various, and each name card template corresponds to one name card template ID. A variety of templates may be stored in a template library.
Step 22: and the first user sends a client command carrying the used template ID and the information to be filled to the second user.
Step 23: and after receiving the client command sent by the first user, the second user analyzes the client command.
Here, the client command is a custom protocol agreed by both parties, and of course, a standard protocol supported by both parties may be adopted. The parsing refers to unpacking of a bottom layer protocol, and only analyzes contents, that is, analyzes what contents exist, and does not further analyze what the command type and the command contents are.
Step 24: the second user further interprets the client command, interprets the client command type and various detailed information to be filled, creates an OLE control according to the client command type, inserts the OLE control into the instant messaging window currently used by the second user, and creates various required interface elements in the OLE control according to the interpreted and read detailed information to be filled.
Here, the interpretation refers to further determining what type of command is in the instant messaging window, and then performing different processing according to different types, such as: for ordinary text commands, the words are directly inserted; for a command needing to display rich interface elements, an OLE control capable of inserting the rich interface elements is required to be created according to various information needing to be filled in the command, and then the OLE control is inserted into an instant messaging window currently used by the OLE control.
Because the OLE control is only used for realizing general functions, the created OLE control is the same for different requirements, and then interface elements are inserted into the OLE control. The OLE control is not concerned about the organization and composition arrangement of the interface elements. The OLE control provides a general API interface for an application layer to call, such as an InsertGFFrame (.), and the application layer only needs to implement a set of interface elements and then inserts the interface elements into the OLE control through the provided general API interface.
The creation is to create a Component Object Model (COM) component in the IM software program, and a plug-in interface is provided in the instant messaging window and can receive the created COM component, and the plug-in interface can be inserted only by calling the plug-in interface of RichEdit in the instant messaging window.
Step 25: the second user performs a complex interface interaction with the rich interface element created in the instant messaging window by forwarding the Windows message to the corresponding interface element via the OLE control.
For example: moving the mouse to the text link can change color, underline, etc.; when the single-line display of the characters is not available, an ellipsis can be displayed, the line number of the displayed characters can be limited, and the like; mixed arrangement of pictures and texts can be arranged; different effects can be added to the picture, such as the frame where the mouse moves shines; set picture spacing, etc.
The following takes sending business card as an example to specifically describe the implementation process of the method of the present invention. The user A is a first user, the user B is a second user, and the user A and the user B are in a friend relationship in the IM.
The process that the user A sends the business card to the user B and the user B carries out complex interface interaction with the chat window comprises the following steps:
step 1, a user A sends a business card to a user B, and the user A creates a business card of the user A;
here, the user a creates a business card according to a business card template, the business card template defines a business card typesetting mode in advance, and the used business card template exists in the IM software of the user a and the user B at the same time. The template is provided with a series of information to be filled out, such as: name, telephone, etc., structure of business card, background picture, etc. can be set by the user himself.
And 2, the user A sends a client command for sending the business card to the user B, wherein the command carries the template ID of the adopted business card template, the business card item and the information to be filled in the business card.
Here, the business card item refers to which items to be filled are contained in the created business card, such as: name entry, phone entry, address entry, cell phone entry, etc.; the information to be filled refers to the detailed information to be filled in corresponding to the items, such as: name item is user a, phone item is 12345678, and so on.
And 3, after receiving the client command sent by the user A, the user B analyzes the client command.
Parsing here refers to unpacking of the underlying protocol.
Step 4, the user B interprets the client command sent by the user A, finds that the command is a command for sending a business card according to the type of the client command, creates an OLE control to be inserted into a chat window which is currently used by the user B, and then creates various interface elements required for displaying all parts of the business card in the OLE control according to the detailed content of the business card sent by the user A.
Specifically, each required interface element is created according to the details read out from the solution, and then is inserted into the OLE control to be displayed, and how to insert is the prior art, which is not described in detail herein. Each item in the business card corresponds to one interface element, and some interface elements are used for modification, such as a frame and the like.
Here, when the user B decodes the specific content in the client command, the chat window may be opened or may not be opened, and the chat window is opened mainly for the purpose of displaying the read content in the chat window. The mode of creating various interface elements is the same as the mode of creating various elements in the interface, and all the interface elements are objects in the IM software program.
And step 5, the user B can perform complex interaction with the business card with rich interface elements in the chat window.
Here, the reason why the complex interaction can be performed is: creating bounding element elements inside the OLE control, then the functions that need to be implemented outside the chat window in the background art are currently implemented here, such as: some components on the main panel, buddy lists, etc., are composed of interface elements, so that these interface elements can perform many complex interactions, such as: the name card is provided with a button, personal details can be popped up by clicking, the content of the name card can be instantly clicked and modified, and the like, and all operations are completed in the chat content.
For the specific implementation of complex interaction, a mouse message in Windows is generally generated by clicking, and then the IM software transmits the mouse message to the OLE control, and then the OLE control transmits the mouse message to a corresponding interface element in the OLE control. Of course, the keyboard message in Windows can also be generated by input.
In order to implement the method, the invention also provides a client, which comprises a content creating unit, a transceiving unit, an analysis and interpretation unit, an OLE control and interface element creating unit and a dynamic interaction unit; wherein,
the content creating unit is used for creating interactive content containing rich interface elements; the receiving and sending unit is used for sending a client command carrying the used template ID and the information to be filled to the communication opposite end, or receiving the client command sent by the communication opposite end, and sending the received client command to the analysis and interpretation unit; the analysis and interpretation unit is used for analyzing the client command, interpreting the type of the client command and the detailed information to be filled in the client command, and then sending the interpreted and read type and the information to be filled to the OLE control and interface element creation unit; the OLE control and interface element creating unit is used for creating the OLE control to be inserted into the instant messaging window and creating various interface elements in the OLE control according to the information to be filled; and the dynamic interaction unit is used for realizing the complex interface interaction between the user and the rich interface elements established in the instant messaging window.
The client may further include: the content creating unit of the client can create the interactive content according to any required template in the template library, and each template corresponds to one template ID.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (8)

1. A method for inserting rich interface elements in an instant messaging window, the method comprising:
after receiving a command which is sent by a communication opposite end and needs to display rich interface elements, a user creates an object connection and an embedded OLE control according to the command type, inserts an instant messaging window which is currently used by the user, and creates the needed interface elements in the OLE control.
2. The method according to claim 1, characterized in that the method comprises in particular:
A. the method comprises the steps that a first user creates interactive content containing rich interface elements to be sent to a second user in the first user;
B. a first user sends a client command carrying the used template identifier ID and information needing to be filled to a second user;
C. after receiving the client command sent by the first user, the second user creates an OLE control according to the type of the client command and inserts the OLE control into an instant messaging window currently used by the second user through analyzing and reading the content of the command, and creates a required interface element in the OLE control according to the information needing to be filled.
3. The method of claim 2, wherein after step C, the method further comprises: the second user interacts with the interface element created in the instant messaging window by forwarding the Windows message to the corresponding interface element via the OLE control.
4. The method of claim 3, wherein the forwarding the Windows message to the corresponding interface element via the OLE control is specifically: and generating a Windows message, transmitting the Windows message to the OLE control by the IM software, and transmitting the Windows message to a corresponding interface element in the OLE control.
5. The method according to any one of claims 2 to 4, wherein the creating of the interactive content containing rich interface elements is based on template creation; each template corresponds to a template ID.
6. A client, characterized by: the system comprises a content creating unit, a receiving and sending unit, an analysis and interpretation unit, an object connection and embedding OLE control and an interface element creating unit; wherein,
the content creating unit is used for creating interactive content containing rich interface elements;
the receiving and sending unit is used for sending a client command carrying the used template ID and the information to be filled to the communication opposite end, or receiving the client command sent by the communication opposite end, and sending the received client command to the analysis and interpretation unit;
the analysis and interpretation unit is used for analyzing the client command, interpreting the type of the client command and the information to be filled in the client command, and then sending the type and the information to be filled, which are interpreted and read, to the OLE control and interface element creation unit;
and the OLE control and interface element creating unit is used for creating the OLE control, inserting the OLE control into the instant messaging window and creating the required interface element in the OLE control according to the information needing to be filled.
7. The client of claim 6, further comprising: and the dynamic interaction unit is used for realizing the interaction between the user and the rich interface elements established in the instant messaging window.
8. The client according to claim 6 or 7, wherein the client further comprises: the content creating unit creates interactive content according to any one required template in the template library, and each template corresponds to one template ID.
CN2008101275044A 2008-06-25 2008-06-25 Method and client for inserting affluent interface constituent in instant communication window Active CN101296198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101275044A CN101296198B (en) 2008-06-25 2008-06-25 Method and client for inserting affluent interface constituent in instant communication window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101275044A CN101296198B (en) 2008-06-25 2008-06-25 Method and client for inserting affluent interface constituent in instant communication window

Publications (2)

Publication Number Publication Date
CN101296198A CN101296198A (en) 2008-10-29
CN101296198B true CN101296198B (en) 2010-07-14

Family

ID=40066215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101275044A Active CN101296198B (en) 2008-06-25 2008-06-25 Method and client for inserting affluent interface constituent in instant communication window

Country Status (1)

Country Link
CN (1) CN101296198B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963903A (en) * 2010-09-14 2011-02-02 北京神州泰岳软件股份有限公司 Addressee showing method and addressee showing system

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944024B (en) * 2010-09-14 2013-11-06 北京神州泰岳软件股份有限公司 Method and system for refreshing emoticon
CN103186912B (en) * 2011-12-28 2016-07-06 北京神州泰岳软件股份有限公司 The method and system of word are shown with picture format
CN102833184A (en) * 2012-08-16 2012-12-19 上海量明科技发展有限公司 Instant messaging streaming media interactive frame link loading method, client and system
CN104753759A (en) * 2013-12-30 2015-07-01 北京新媒传信科技有限公司 Method and device for displaying contact person information in instant messaging (IM) system
CN103825806B (en) * 2014-03-06 2017-07-14 华为技术有限公司 Display styles method of adjustment, equipment and system
CN104951202B (en) * 2014-03-28 2019-06-07 腾讯科技(深圳)有限公司 A kind of method and device showing chat content
CN110890970B (en) * 2019-11-25 2022-06-14 网易(杭州)网络有限公司 Method and device for creating group, storage medium and electronic equipment
CN113553046A (en) * 2021-07-23 2021-10-26 中信银行股份有限公司 Interface element selection positioning representation method and device
CN116468008A (en) * 2022-01-11 2023-07-21 腾讯科技(深圳)有限公司 Information insertion method, apparatus, device, medium and computer program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609792A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer program
US20050091672A1 (en) * 2003-10-24 2005-04-28 Microsoft Corporation Facilitating presentation functionality through a programming interface media namespace
US20050149617A1 (en) * 2001-11-26 2005-07-07 Objectworld Communications Corp. Graphical interface based software for creating communication service agents
CN101046722A (en) * 2006-03-31 2007-10-03 腾讯科技(深圳)有限公司 Method for editing picture in customer end contents transmission window and customer end

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050149617A1 (en) * 2001-11-26 2005-07-07 Objectworld Communications Corp. Graphical interface based software for creating communication service agents
CN1609792A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer program
US20050091672A1 (en) * 2003-10-24 2005-04-28 Microsoft Corporation Facilitating presentation functionality through a programming interface media namespace
CN101046722A (en) * 2006-03-31 2007-10-03 腾讯科技(深圳)有限公司 Method for editing picture in customer end contents transmission window and customer end

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963903A (en) * 2010-09-14 2011-02-02 北京神州泰岳软件股份有限公司 Addressee showing method and addressee showing system
CN101963903B (en) * 2010-09-14 2013-07-31 北京神州泰岳软件股份有限公司 Addressee showing method and addressee showing system

Also Published As

Publication number Publication date
CN101296198A (en) 2008-10-29

Similar Documents

Publication Publication Date Title
CN101296198B (en) Method and client for inserting affluent interface constituent in instant communication window
CN113347077B (en) Unified messaging platform and interface for providing inline replies
US7343561B1 (en) Method and apparatus for message display
US8413055B2 (en) Methods and systems for customizing and embedding widgets in instant messages
US20160259502A1 (en) Diverse emojis/emoticons
US20060015812A1 (en) Using emoticons, such as for wireless devices
US20090157223A1 (en) Robot chatting system and method
EP3593501B1 (en) Embedded meeting extensions
CN101087271A (en) A associated user display system and method
US11783299B2 (en) Sharing events with structured metadata
US20210075758A1 (en) Server and user terminal for supporting management of social network
US20240080294A1 (en) Message transmission method, message receiving method, apparatus, device, and medium
WO2015012760A1 (en) A novel method of incorporating graphical representations in instant messaging services
KR20200073497A (en) Method for providing chatting service in user treminal, and the program stored in medium for executing the method
KR20200073496A (en) User treminal for providing chatting service
JP2019050049A (en) Feeling text display program, method, and system
US20030206200A1 (en) Bar communication
KR102018321B1 (en) User terminal device for providing chat rooms list
JP6301223B2 (en) COMMUNICATION DEVICE, DISPLAY CONTROL METHOD, AND PROGRAM
CN114860371B (en) Time zone information processing method, device, electronic equipment and storage medium
KR100447329B1 (en) Method Of Providing Music Postcard Service In Web Chatting Environment
KR20030091869A (en) Method for character mail service and compilation by originator scenario and computer readable record medium on which program therefor is recorded
WO2023244314A1 (en) Common group suggested message recipient
JP2019028728A (en) Application software
KR20020043321A (en) free drawing instant messenger system

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