Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In an embodiment of the application, the electronic device may be a terminal device comprising both a device for a wireless signal receiver, which is only a device with a wireless signal receiver without transmission capability, and a device for receiving and transmitting hardware, which has a device for receiving and transmitting hardware capable of performing a bi-directional communication over a bi-directional communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; personal Communication Systems (PCS), which may combine voice, data processing, facsimile and/or data communication capabilities; personal Digital Assistants (PDAs), which may include radio frequency receivers, pagers, internet/intranet access, web browsers, notepads, calendars, and/or Global Positioning System (GPS) receivers; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a terminal device may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or adapted and/or configured to operate locally and/or in a distributed fashion, and/or in any other location(s) on earth and/or in space. The terminal Device used here may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, a Mobile Internet Device (MID) and/or a Mobile phone with music/video playing function.
Fig. 1 is a flow diagram of a method of forwarding chat messages in accordance with one embodiment of the present application. Method 100 of fig. 1 is performed by an apparatus for forwarding chat messages. It should be understood that the solution of the embodiment of the present application may be applied to chat software, for example, chat software such as WeChat, QQ, nailing, flourishing, strange, and the like.
As shown in fig. 1, at S102, a screenshot is taken.
It is understood that the screen shot in S102 includes a chat interface of the chat software, and chat information of both chat parties is recorded on the chat interface.
Optionally, in some embodiments, the user may input a screenshot instruction, and after the device for forwarding the chat information obtains the screenshot instruction, the device captures a screen of the device according to the screenshot instruction, so as to obtain the screenshot.
Optionally, as an example, taking a mobile phone as an example, the user may implement input of the screenshot command through a combination of a Home key and a power key on the mobile phone. Or the user can realize the input of the screenshot instruction by clicking the shortcut icon. Or the user can preset a screen capture gesture, and when the screen capture is needed, a screen capture instruction is input in a mode of inputting the preset screen capture gesture.
Optionally, in other embodiments, chat information in one chat software may be forwarded in another chat software, for example, while chatting through QQ, chat information while chatting through WeChat may be forwarded. In this case, the screen shot obtained may be the screen shot obtained when the user chats through other chat software before and stored locally, that is, the screen shot may be directly obtained from the local in S102.
At S104, the screenshot is parsed to obtain the chat information that needs to be forwarded.
It is understood that the parsing of the screenshot in S104 results in the chat message itself, and in this case, if the chat message includes multimedia information, the user receiving the chat message can successfully watch the multimedia information, which can improve the user experience.
Specifically, in some embodiments, the screenshot is analyzed to obtain a recording position of the chat information to be forwarded, and the chat information to be forwarded is obtained according to the recording position. For example, the chat software receives the screen capture message after the user captures the screen, then obtains the chat record range on the current screen capture, can further capture and record the chat record range, and then extracts the chat record according to the chat record range.
Specifically, in other embodiments, the screenshot is analyzed, the time information of the chat information on the screenshot is obtained, and the chat information to be forwarded is read from the chat information recording file according to the obtained time information.
Optionally, in some embodiments, the number of the screenshots acquired in S102 is multiple, and correspondingly, in S104, the multiple screenshots are analyzed to obtain recording positions of the chat information on the multiple screenshots; obtaining the chat information on the plurality of screenshots according to the recording positions of the chat information on the plurality of screenshots; and combining the chat information on the plurality of screenshots to obtain the chat information to be forwarded.
That is to say, under the condition that there are multiple screenshots, the method of the embodiment of the application can assemble the chat information on the multiple screenshots to obtain the chat information which needs to be forwarded finally. Therefore, the user can transmit a plurality of chat messages more conveniently and quickly.
In particular, in some embodiments, when combining chat information on multiple screenshots, the chat information on the multiple screenshots is combined according to the recording time of the chat information on the multiple screenshots. Or when combining the chat information on multiple screenshots, the chat information on the multiple screenshots can be combined according to the time for acquiring the screenshots.
Optionally, in some embodiments, in the plurality of screenshots, a time interval between a screenshot corresponding to a first screenshot and a screenshot corresponding to a second screenshot is less than or equal to a preset time interval, wherein the first screenshot and the second screenshot are adjacent in time. Here, the first screen shot and the second screen shot being adjacent in time may be understood as no other screen shot being taken between the time the first screen shot was taken and the time the second screen shot was taken. The preset time interval can be set according to actual conditions, and for example, the preset time interval is 10 s.
S106, forwarding the chat information to be forwarded.
Specifically, in some embodiments, the user is prompted to select the contact to receive the chat information to be forwarded, and the chat information to be forwarded is forwarded to the contact selected by the user.
Optionally, in some embodiments, after the screenshot is parsed and the chat information to be forwarded is obtained, the chat information to be forwarded is directly forwarded.
Optionally, in other embodiments, the user is required to determine whether the chat message needs to be forwarded before forwarding the chat message that needs to be forwarded. That is, when the chat information forwarding instruction input by the user is acquired, the chat information to be forwarded is forwarded.
Optionally, in still other embodiments, the method 100 further comprises: and displaying prompt information, wherein the prompt information is used for confirming whether the chat information needs to be forwarded by a user. For example, after the screen shot, an icon is displayed on the screen, and the user clicks the small icon to confirm whether the chat message needs to be forwarded. Or taking a mobile phone as an example, shaking after screen capture, and prompting the user to confirm whether chat information needs to be forwarded or not when a prompt appears in a status bar of the mobile phone.
Specifically, in some embodiments, when forwarding the chat message to be forwarded, a chat message list is generated according to the chat message to be forwarded, and the chat message list is forwarded.
Optionally, in some embodiments, after the information list is generated, the user may be prompted to select chat information that is not required to be forwarded in the information list, and the chat information selected by the user will not be forwarded during forwarding. For example, an information check interface is displayed, the information check interface includes a chat information list and a corresponding check key, and a user selects chat information desired or undesired to be forwarded through the check key.
Optionally, in some embodiments, the chat information list may be forwarded in a merged transmission mode, or in a one-by-one transmission mode. The forwarding can be specifically performed according to the sending form selected by the user.
Fig. 2 is a schematic flow chart diagram illustrating a method 200 for forwarding chat messages in accordance with a specific embodiment of the present application. Method 200 is performed by an apparatus for forwarding chat information. In the method 200, a device for forwarding chat information is described as an example of a chat Application (APP).
As shown in fig. 2, at S202, the chat APP takes a screenshot.
Specifically, at S202, when the user needs to forward the chat log, the screen is directly captured. The chat APP receives the screen capture message and obtains the screen capture.
At S204, the chat APP intercepts the chat log range in the log screenshot.
At S206, a small icon is displayed in the chat APP.
In S206, the chat APP displays a small icon for the purpose of the user to confirm that the chat log needs to be forwarded by clicking on the small icon.
At S208, the chat APP confirms that the user clicks the small icon, and generates a chat log list according to the chat log range.
Optionally, if the user continuously captures the screen to obtain multiple screen shots at S202, in S204, the chat APP records the chat record range of each screen shot, and in S208, when it is confirmed that the user clicks the small icon, the chat records in the multiple screen shots are assembled according to the chat record range of each screen shot to generate a final chat record list.
Alternatively, as an example, two screenshots may be considered to be obtained by a continuous screen capture operation if the time interval between the times of obtaining the two screenshots is less than 10 seconds. It is understood that 10 seconds is only an example, and the user can set the time according to actual needs.
At S210, the chat log list is forwarded.
The method for forwarding chat information according to the embodiment of the present application is described in detail above with reference to fig. 1 and 2. An electronic device according to an embodiment of the present application will be described in detail below with reference to fig. 3. Referring to fig. 3, at a hardware level, the electronic device includes a processor, optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware needed to implement other services.
The processor, the network interface, and the memory may be interconnected by an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 3, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a device for forwarding the chat information on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
acquiring a screenshot;
and analyzing the screenshot to obtain the chat information to be forwarded.
And forwarding the chat information to be forwarded.
The method performed by the apparatus for forwarding chat messages according to the embodiments of fig. 1 and fig. 2 of the present application may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the methods in fig. 1 and fig. 2, and implement the functions of the apparatus for determining to forward chat information in the embodiments shown in fig. 1 and fig. 2, which are not described herein again in this embodiment of the present application.
Of course, besides the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Embodiments of the present application also propose a computer-readable storage medium storing one or more programs, the one or more programs including instructions, which when executed by an electronic device including a plurality of application programs, enable the electronic device to perform the method of the embodiment shown in fig. 1 and 2, and in particular to perform the following method:
acquiring a screenshot;
and analyzing the screenshot to obtain the chat information to be forwarded.
And forwarding the chat information to be forwarded.
Fig. 4 is a schematic structural diagram of an apparatus for forwarding chat messages according to an embodiment of the present application. Referring to fig. 4, in one software implementation, an apparatus 400 for forwarding chat messages may include: a processing unit 401 and a forwarding unit 402, wherein,
a processing unit 401, which obtains a screenshot;
the processing unit analyzes the screenshot to obtain chat information to be forwarded;
forwarding unit 402, forwards the chat message to be forwarded.
According to the device for forwarding the chat information, the chat information to be forwarded can be automatically acquired, the problem that the operation is complex due to the fact that a user selects the chat information to be forwarded is solved, and the problem that network flow consumption is large due to the fact that the screen capture is sent is solved due to the fact that the chat information is forwarded by the device.
Optionally, as an embodiment, the forwarding unit 402:
and when a chat information forwarding instruction input by a user is acquired, forwarding the chat information to be forwarded.
Optionally, as an embodiment, the processing unit 401:
analyzing the screenshot to obtain the recording position of the chat information to be forwarded;
and obtaining the chat information to be forwarded according to the recording position.
Optionally, as an embodiment, the processing unit 401:
generating a chat information list according to the chat information to be forwarded;
the forwarding unit 402 forwards the chat information list.
Optionally, as an embodiment, the number of the screenshots is multiple;
wherein the processing unit 401:
analyzing the plurality of screenshots to obtain recording positions of the chat information on the plurality of screenshots;
obtaining the chat information on the plurality of screenshots according to the recording positions of the chat information on the plurality of screenshots;
and combining the chat information on the screen shots to obtain the chat information needing to be forwarded.
Optionally, as an embodiment, a time interval between a screen capture time corresponding to a first screen capture and a screen capture time corresponding to a second screen capture in the plurality of screen captures is less than or equal to a preset time interval, where the first screen capture and the second screen capture are adjacent in time.
Optionally, as an embodiment, the processing unit 401:
and combining the chat information on the plurality of screenshots according to the recording time of the chat information on the plurality of screenshots.
Optionally, as an embodiment, after the acquiring the screenshot, the processing unit 401:
and displaying prompt information, wherein the prompt information is used for prompting a user to confirm whether the chat information needs to be forwarded or not.
Optionally, as an embodiment, the processing unit 401:
acquiring a screenshot instruction;
and capturing a screen according to the screen capture instruction to obtain the screen capture.
The apparatus 400 for forwarding chat information may also execute the method in the embodiments shown in fig. 1 and fig. 2, and implement the functions of the apparatus for forwarding chat information in the embodiments shown in fig. 1 and fig. 2, which are not described herein again in this embodiment of the present application.
In short, the above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.