CN106547442B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN106547442B
CN106547442B CN201510600605.9A CN201510600605A CN106547442B CN 106547442 B CN106547442 B CN 106547442B CN 201510600605 A CN201510600605 A CN 201510600605A CN 106547442 B CN106547442 B CN 106547442B
Authority
CN
China
Prior art keywords
messages
message
copying
copied
request
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
CN201510600605.9A
Other languages
Chinese (zh)
Other versions
CN106547442A (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 CN201510600605.9A priority Critical patent/CN106547442B/en
Publication of CN106547442A publication Critical patent/CN106547442A/en
Application granted granted Critical
Publication of CN106547442B publication Critical patent/CN106547442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a message processing method and a message processing device, which are used for storing a plurality of messages which are subjected to the same copying step in a chat interface together, so that the plurality of messages can be copied and one or more of the messages can be pasted at one time. The method comprises the following steps: receiving a plurality of message requests for copying messages in a chat interface; copying the message and storing the copied message together with other copied messages due to the same request for copying a plurality of messages; when a paste request is received, one or more messages of the commonly stored messages are pasted.

Description

Message processing method and device
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method and an apparatus for processing a message.
Background
With the increasing development and popularization of smart terminals, more and more people use instant messaging Applications (APPs) installed in smart phones to contact with others. The instant messaging application may send messages such as text, voice, video, pictures, text, etc. over the network.
When a user chats with a friend through the instant messaging application, the instant messaging application displays a chat window of the user and the friend, and the messages from the user to the friend are displayed in the chat window according to the time sequence. When a user needs to copy a message in a chat window, a certain message is usually selected, then the user selects to copy, and then clicks a position to be pasted to paste.
However, such message processing methods can only copy one message at a time and paste the message. When a user needs to copy a plurality of messages, the copy and paste operation needs to be repeated for each message, which is very cumbersome and inconvenient.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a message processing method and apparatus, so as to provide fast replication of a message.
In order to achieve the above object, in one aspect, an embodiment of the present invention provides a message processing method, including the following steps:
receiving a plurality of message requests for copying messages in a chat interface;
copying the message and storing the copied message together with other copied messages due to the same request for copying a plurality of messages;
when a paste request is received, one or more messages of the commonly stored messages are pasted.
In an embodiment of the present invention, the copying the message and storing the copied message together with other messages copied by the same request for copying multiple messages includes:
copying the message to a preset storage area, wherein the preset storage area stores other messages copied due to the same request for copying the plurality of messages; alternatively, the first and second electrodes may be,
the message is copied and marked so that the message is stored with other messages having the same mark.
In an embodiment of the present invention, the receiving requests for copying multiple messages for messages in a chat interface includes:
when a first preset operation for the message is detected, displaying an option of copying a plurality of messages;
and when a second preset operation of selecting the option is detected, confirming that a plurality of message copying requests for the messages in the chat interface are received.
In an embodiment of the present invention, the pasting, when a paste request is received, one or more messages in the messages stored in common includes:
when receiving a request for pasting all messages, pasting all messages in the messages stored together;
when a request to paste a message is received, the last message of the commonly stored messages is pasted.
In an embodiment of the present invention, the copying the message and storing the copied message together with other messages copied by the same request for copying multiple messages includes:
copying the message, and storing the copied message together with other messages in the same chat interface copied by the same request for copying a plurality of messages; and/or the presence of a gas in the gas,
and copying the message and storing the copied message together with other messages in different chat interfaces copied by the same request for copying a plurality of messages.
On the other hand, an embodiment of the present invention provides a message processing apparatus, including:
the receiving module is used for receiving a plurality of message copying requests for messages in the chat interface;
the copying module is used for copying the message and storing the copied message together with other messages copied by the same request for copying the plurality of messages;
and the pasting module is used for pasting one or more messages in the commonly stored messages when a pasting request is received.
In an embodiment of the present invention, the copy module is further configured to:
copying the message to a preset storage area, wherein the preset storage area stores other messages copied due to the same request for copying the plurality of messages; alternatively, the first and second electrodes may be,
the message is copied and marked so that the message is stored with other messages having the same mark.
In an embodiment of the present invention, the receiving module includes:
the display submodule is used for displaying options of copying a plurality of messages when a first preset operation for the messages is detected;
and the confirmation submodule is used for confirming that a plurality of message copying requests for the messages in the chat interface are received when the second preset operation of selecting the option is detected.
In an embodiment of the present invention, the pasting module is configured to:
when receiving a request for pasting all messages, pasting all messages in the messages stored together;
when a request to paste a message is received, the last message of the commonly stored messages is pasted.
In an embodiment of the present invention, the copy module is further configured to:
copying the message, and storing the copied message together with other messages in the same chat interface copied by the same request for copying a plurality of messages; and/or the presence of a gas in the gas,
and copying the message and storing the copied message together with other messages in different chat interfaces copied by the same request for copying a plurality of messages.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the message processing method provided by the invention stores a plurality of messages which execute the same copying step together by executing the specific copying step on the messages in the chat interface, thereby realizing that a plurality of messages can be copied and one or more of the messages can be pasted at one time.
Additional features and advantages of embodiments of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solutions of the embodiments of the present invention are further described in detail with reference to the accompanying drawings and embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments of the invention, and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. In the drawings:
fig. 1 is a flowchart of a message processing method according to an embodiment of the present invention;
FIG. 2 is a diagram of an exemplary chat interface provided by an embodiment of the invention;
FIG. 3 is a diagram of a chat interface provided by one embodiment of the invention that displays the option to copy multiple messages for message 1;
fig. 4 is a flowchart of a message processing method according to another embodiment of the present invention;
FIG. 5 is a diagram of a chat interface showing a prompt that "1 copy has been successfully made" according to another embodiment of the invention;
FIG. 6 is a diagram of a chat interface provided by another embodiment of the invention that displays the option to copy multiple messages for message 2;
FIG. 7 is a diagram of a chat interface showing a prompt that 2 copies have been successfully made, according to another embodiment of the invention;
FIG. 8 is a diagram of a chat interface provided by another embodiment of the invention showing a paste option;
fig. 9 is a flowchart of a message processing method according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described herein are merely illustrative and explanatory of the embodiments of the present invention, and are not restrictive of the embodiments of the invention.
Fig. 1 shows a main flow of a message processing method in an embodiment of the present invention, where the method may be applied to communication applications in terminal devices (e.g., smart phones, tablet computers, etc.), such as short messages and instant messaging applications, for processing messages in the communication applications. The method comprises the following steps:
step S11: a duplicate multiple message request for a message in a chat interface is received.
Fig. 2 is a diagram illustrating an exemplary chat interface. The chat interface displays messages from and to friend a, wherein the messages may be, for example, text, pictures, audio or video.
When the user wants to copy the message 1, the user can perform a first preset operation on the message 1 in the chat interface, such as long-press, double-click, and the like. When the first preset operation for the message 1 is detected, an option to copy a plurality of messages, such as the "copy many" option in fig. 3, is displayed. When a second preset operation (e.g., a single click) of "copy many" selected by the user is detected, it is confirmed that a copy many message request for the message 1 in the chat interface is received.
Step S12: the message is copied and stored together with other messages copied by the same request for copying a plurality of messages.
After this step is performed, message 1 in fig. 2 is copied and stored with other messages previously copied for the same request to copy multiple messages. For example, the user has performed the same operation on message 2, i.e. message 2 has been copied, before performing the above operation on message 1. At this time, the message 1 and the message 2 are stored together.
Step S13: when a paste request is received, one or more messages of the commonly stored messages are pasted.
The message processing method provided by the invention stores a plurality of messages which execute the same copying step together by executing the specific copying step on the messages in the chat interface, thereby realizing that a plurality of messages can be copied and pasted at one time. For example, when the above-mentioned steps S11 and S12 are performed for each of the messages 1, 2, 4, and 5 in the chat interface and then pasted, since the messages 1, 2, 4, and 5 are stored together, one, more, or all of the messages 1, 2, 4, and 5 may be pasted at a time.
Fig. 4 shows a main flow of a message processing method in another embodiment of the present invention, in which a plurality of messages are stored in a preset storage area to realize common storage of the plurality of messages. This embodiment comprises the steps of:
step S41: detecting whether a first preset operation for a message 1 in a chat interface is received; if yes, go to step S42;
step S42: for message 1, an option to copy multiple messages is displayed.
Such as the "copy multiple" option shown in fig. 3.
Step S43: detecting whether a second preset operation for selecting the option is received; if yes, go to step S44; if not, the process is ended.
Step S44: and copying the message 1 to a preset storage area.
After message 1 is copied, a prompt message "1 copy successfully" can be displayed on the chat interface as shown in fig. 5.
In other embodiments of the present invention, message 1 may also be marked when the message is copied, so that message 1 is stored with other messages having the same mark.
Step S45: detecting whether a first preset operation for a message 2 in a chat interface is received; if yes, go to step S46; if not, the process is ended.
Step S46: for message 2, an option to copy multiple messages is displayed.
Such as the "copy multiple" option shown in fig. 6.
Step S47: detecting whether a second preset operation of selecting the option of copying the plurality of messages is received; if yes, go to step S48; if not, the process is ended.
Step S48: message 2 is copied to a preset memory area and stored together with message 1.
After message 2 is copied, a prompt message "2 copies successfully" can be displayed on the chat interface, as shown in fig. 7.
At this time, the message 1 and the message 2 are collectively stored in the preset storage area.
In other embodiments of the invention, message 2 may also be marked when the message is copied, so that message 1 is stored together with message 2 having the same mark.
Step S49: detecting whether a first paste request or a second paste request is received; if yes, go to step S410; if yes, go to step S411; if not, the process is ended.
The first paste request is to paste all messages, that is, to paste all messages in the preset storage area. The second paste request is to paste a message, and may be to paste the last message in the preset storage area, or the latest message.
As shown in fig. 8, when it is detected that the user has long pressed the input message bar in the chat interface, a first paste option "paste all" and a second paste option "paste" are displayed. When the user selects the "paste all" option, step S49 will receive a first paste request; when the "paste" option is selected, step S49 will receive a second paste request.
Step S410: and pasting all the messages into the input message column from the preset storage area.
Step S411: and pasting the last message from the preset storage area to the input message column.
In other embodiments of the present invention, a third pasting option may be further provided, and when the user selects the third pasting option, all messages in the preset storage area may be displayed, so that the user may select which message or messages in the preset storage area to paste.
Fig. 9 shows a main flow of a message processing method in another embodiment of the present invention, in this embodiment, a plurality of messages in different chat interfaces can be stored together, so that a plurality of messages in different chat interfaces can be pasted at a time. This embodiment comprises the steps of:
step S91: detecting whether a first preset operation for a message 1 in a chat interface A is received; if yes, go to step S92;
step S92: for message 1, an option to copy multiple messages is displayed.
Step S93: detecting whether a second preset operation of selecting the option of copying the plurality of messages is received; if yes, go to step S94; if not, the process is ended.
Step S94: and copying the message 1 to a preset storage area.
Step S95: detecting whether a first preset operation for a message 1' in a chat interface B is received; if yes, go to step S96;
step S96: for message 1', the option to copy multiple messages is displayed.
Step S97: detecting whether a second preset operation for selecting the option is received; if yes, go to step S98; if not, the process is ended.
Step S98: the message 1' is copied to a preset storage area and stored together with the message 1.
At this time, the message 1 and the message 1' are collectively stored in the preset storage area.
Step S99: detecting whether a first paste request or a second paste request is received; if yes, go to step S910; if yes, executing step S911; if not, the process is ended.
The first paste request is to paste all messages, that is, to paste all messages in the preset storage area. The second paste request is to paste a message, and may be to paste the last message in the preset storage area, or the latest message.
Step S910: and pasting all the messages into the input message column from the preset storage area.
In the present embodiment, the message 1 and the message 1' are pasted from a preset storage area.
Step S911: and pasting the last message from the preset storage area to the input message column.
In this embodiment, the message 1' is pasted from a preset storage area.
Fig. 10 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present invention, and as shown in fig. 10, the message processing apparatus includes:
a receiving module 1001, configured to receive a request for copying multiple messages for a message in a chat interface;
a copy module 1002, configured to copy the message and store the copied message together with other messages that are copied due to the same request for copying multiple messages;
a pasting module 1003, configured to paste one or more messages of the commonly stored messages when a pasting request is received.
The replication module 1002 is further configured to:
copying the message to a preset storage area, wherein the preset storage area stores other messages copied due to the same request for copying the plurality of messages; alternatively, the first and second electrodes may be,
the message is copied and marked so that the message is stored with other messages having the same mark.
The receiving module 1001 includes:
the display submodule is used for displaying options of copying a plurality of messages when a first preset operation for the messages is detected;
and the confirmation submodule is used for confirming that a plurality of message copying requests for the messages in the chat interface are received when the second preset operation of selecting the option is detected.
The paste module 1003 is configured to:
when receiving a request for pasting all messages, pasting all messages in the messages stored together;
when a request to paste a message is received, the last message of the commonly stored messages is pasted.
The replication module 1002 is further configured to:
copying the message, and storing the copied message together with other messages in the same chat interface copied by the same request for copying a plurality of messages; and/or the presence of a gas in the gas,
and copying the message and storing the copied message together with other messages in different chat interfaces copied by the same request for copying a plurality of messages.
The message processing device provided by the embodiment of the invention stores a plurality of messages which execute the same copying step together by executing the specific copying step on the messages in the chat interface, thereby realizing that a plurality of messages can be copied and pasted at one time.
It should be noted that: in the message processing apparatus provided in the foregoing embodiment, only the division of the functional modules is illustrated when performing processing, and in practical applications, the above functions may be distributed by different functional modules as needed, that is, the internal structure of the apparatus may be divided into different functional modules to complete all or part of the functions described above. In addition, the message processing apparatus and the message processing method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
The embodiment of the invention also provides a terminal device, which can comprise the message processing device.
By adopting the terminal equipment provided by the embodiment of the invention, a plurality of messages which execute the same copying step can be stored together by executing the specific copying step on the messages in the chat interface, thereby realizing that a plurality of messages can be copied and pasted at one time.
Fig. 11 is a block diagram of a hardware structure of a terminal device according to an embodiment of the present invention, and referring to fig. 11, the terminal device may include: a processor 1101, a communication interface 1102, a memory 1103, and a communication bus 1104; the processor 1101, the communication interface 1102 and the memory 1103 complete communication with each other through the communication bus 1104;
optionally, the communication interface 1102 may be an interface of a communication module, such as an interface of a GSM module;
a processor 1101 for executing a program;
a memory 1103 for storing a program;
the program may include program code including computer operating instructions.
The processor 1101 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement an embodiment of the present invention.
The memory 1103 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Among them, the procedure can be specifically used for:
receiving a plurality of message requests for copying messages in a chat interface;
copying the message and storing the copied message together with other copied messages due to the same request for copying a plurality of messages;
when a paste request is received, one or more messages of the commonly stored messages are pasted.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A message processing method is characterized in that the message processing method is applied to communication application in terminal equipment and comprises the following steps:
receiving a plurality of message requests for copying messages in a chat interface; the chat interface displays the messages of the user and the friends;
copying the message, and storing the copied message and other messages in different chat interfaces copied by the same request for copying a plurality of messages into a preset storage area together, wherein the preset storage area is invisible to the user;
when a request to paste all messages is received, all messages in the commonly stored messages are pasted.
2. The method of claim 1,
the preset storage area stores other messages copied by the same request for copying the plurality of messages;
the copying the message and storing the copied message together with other messages copied by the same request for copying a plurality of messages comprises the following steps: the message is copied and marked so that the message is stored with other messages having the same mark.
3. The method of claim 1, wherein receiving a duplicate multiple message request for a message in a chat interface comprises:
when a first preset operation for the message is detected, displaying an option of copying a plurality of messages;
and when a second preset operation of selecting the option is detected, confirming that a plurality of message copying requests for the messages in the chat interface are received.
4. A message processing apparatus, applied to a communication application in a terminal device, comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a plurality of message copying requests for messages in a chat interface, and the chat interface displays the messages from a user to friends;
the replication module is used for replicating the message and storing the message and other messages in different chat interfaces replicated by the same replication requests of a plurality of messages into a preset storage area together, and the preset storage area is invisible to the user;
and the pasting module is used for pasting all the messages in the messages stored together when a request for pasting all the messages is received.
5. The apparatus of claim 4,
the preset storage area stores other messages copied by the same request for copying the plurality of messages;
the copy module is further configured to copy and mark the message, so that the message is stored together with other messages having the same mark.
6. The apparatus of claim 4, wherein the receiving module comprises:
the display submodule is used for displaying options of copying a plurality of messages when a first preset operation for the messages is detected;
and the confirmation submodule is used for confirming that a plurality of message copying requests for the messages in the chat interface are received when the second preset operation of selecting the option is detected.
7. A terminal device comprising a processor and a memory connected to the processor, wherein the memory stores computer operation instructions, and the processor executes the computer operation instructions to perform the message processing method according to any one of claims 1 to 3.
8. A computer-readable storage medium having computer-operational instructions stored thereon that are executable by a processor to perform the message processing method of any of claims 1 to 3.
CN201510600605.9A 2015-09-18 2015-09-18 Message processing method and device Active CN106547442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510600605.9A CN106547442B (en) 2015-09-18 2015-09-18 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510600605.9A CN106547442B (en) 2015-09-18 2015-09-18 Message processing method and device

Publications (2)

Publication Number Publication Date
CN106547442A CN106547442A (en) 2017-03-29
CN106547442B true CN106547442B (en) 2020-04-17

Family

ID=58362281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510600605.9A Active CN106547442B (en) 2015-09-18 2015-09-18 Message processing method and device

Country Status (1)

Country Link
CN (1) CN106547442B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291564B (en) * 2017-06-08 2020-06-26 北京金山安全软件有限公司 Information copying and pasting method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981750A (en) * 2011-07-04 2013-03-20 三星电子株式会社 Method and apparatus for editing texts in mobile terminal
CN103761029A (en) * 2014-02-20 2014-04-30 联想(北京)有限公司 Message processing method and message processing device
CN104657038A (en) * 2015-02-06 2015-05-27 深圳市艾优尼科技有限公司 Method for processing content

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150006180A (en) * 2013-07-08 2015-01-16 삼성전자주식회사 Method for controlling chatting window and electronic device implementing the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981750A (en) * 2011-07-04 2013-03-20 三星电子株式会社 Method and apparatus for editing texts in mobile terminal
CN103761029A (en) * 2014-02-20 2014-04-30 联想(北京)有限公司 Message processing method and message processing device
CN104657038A (en) * 2015-02-06 2015-05-27 深圳市艾优尼科技有限公司 Method for processing content

Also Published As

Publication number Publication date
CN106547442A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
KR101942308B1 (en) Method for providing message function and an electronic device thereof
CN109725975B (en) Method and device for prompting read state of message and electronic equipment
EP3349400A1 (en) Method and device for realizing service function
US9021507B2 (en) Dynamic use of data across multiple programs
WO2014062756A2 (en) Person-based information aggregation
WO2017166464A1 (en) Information interaction method and terminal
EP3866410B1 (en) Message display method, apparatus, and device
CN107911556B (en) Contact reminding method and device, computer device and computer readable storage medium
CN109743246B (en) Message emergency reminding method and device and electronic equipment
WO2015176352A1 (en) Android system-based method and device for information exchange between applications
US11281761B2 (en) Method and system for using a plurality of accounts in an instant messaging application
CN110120908B (en) Group message processing method and device and server
CN106201295B (en) Message copying method and device and intelligent terminal
CN111258692A (en) Filling method, device and equipment of remark information and storage medium
CN105049580A (en) Information processing method and electronic equipment
CN110083768B (en) Information sharing method, device, equipment and medium
CN109101306B (en) Sharing method, sharing device, terminal and computer readable storage medium
CN115344315B (en) Skin switching method and device of applet page and electronic equipment
CN102866847B (en) A kind of method and apparatus showing information
CN104639973B (en) Information pushing method and device
US11165916B2 (en) Information processing method, information processing apparatus, and non-transitory recording medium storing instructions for executing an information processing method
CN113741754A (en) Task creation method and device, electronic equipment and computer-readable storage medium
CN112788090B (en) Network resource transmission method, device and system
CN106547442B (en) Message processing method and device
CN112235412A (en) Message processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant