CN104820549B - Sending method, device and the terminal of social networking application message - Google Patents

Sending method, device and the terminal of social networking application message Download PDF

Info

Publication number
CN104820549B
CN104820549B CN201510178249.6A CN201510178249A CN104820549B CN 104820549 B CN104820549 B CN 104820549B CN 201510178249 A CN201510178249 A CN 201510178249A CN 104820549 B CN104820549 B CN 104820549B
Authority
CN
China
Prior art keywords
message
social networking
networking application
intercepted
current display
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
CN201510178249.6A
Other languages
Chinese (zh)
Other versions
CN104820549A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510178249.6A priority Critical patent/CN104820549B/en
Publication of CN104820549A publication Critical patent/CN104820549A/en
Application granted granted Critical
Publication of CN104820549B publication Critical patent/CN104820549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure belongs to Internet technical field about a kind of sending method, device and the terminal of social networking application message.Including:When detecting the message intercept operation to target social networking application message, the message box information of target social networking application message is obtained;Location information of the region to be intercepted in current display page is determined according to message box information;It intercepts after region to be intercepted obtains message picture, imports message input frame;Content in message input frame is sent to the corresponding terminal of target user.The disclosure passes through the region to be intercepted that interception includes social networking application message, after obtaining message picture, message picture is imported into message input frame, to realize the transmission of social networking application message, a kind of message is sent by intercepting any history social networking application message in current display page to provide.Since the transmission of message can be realized by intercepting the corresponding region to be intercepted of target social networking application message, the operation for sending social networking application message is simplified, the efficiency for sending message is improved.

Description

Sending method, device and the terminal of social networking application message
Technical field
This disclosure relates to Internet technical field, more particularly to a kind of sending method, device and the end of social networking application message End.
Background technology
With the rapid development of Internet technology, there are more and more social networking application programs.In addition, with terminal skill The rapid development of art, more and more terminals support installation social networking application program.When terminal type be mobile terminal when, user it Between can carry out exchange and interdynamic whenever and wherever possible by the social networking application program installed on respective mobile terminal.Wherein, between user When carrying out exchange and interdynamic by social networking application program, conveniently the sending method of social networking application message is particularly significant.
The relevant technologies are when sending social networking application message, when user wants to send any being transmitted across before to good friend When history social networking application message, the history social networking application message can be replicated, and the history social networking application message is affixed to After the message of social networking application program chat window sends frame, the content in message input frame is sent to good friend.
Invention content
The disclosure provides a kind of sending method, device and the terminal of social networking application message.
According to the first aspect of the embodiments of the present disclosure, a kind of sending method of social networking application message, the method packet are provided It includes:
In detecting to current display page when the message intercept operation of any bar social networking application message, target society is obtained It is that the corresponding social networking application of message intercept operation disappears to hand over the message box information of application message, the target social networking application message Breath;
According to the message box information, determine the corresponding region to be intercepted of the target social networking application message described current Show the location information in the page;
The region to be intercepted is intercepted according to the positional information, obtains message picture;
The message picture is imported to the message input frame of social networking application program;
Content in the message input frame is sent to the corresponding terminal of target user, it is interior in the message input frame Hold and includes at least the message picture.
With reference to first aspect, in the first possible realization method of first aspect, the acquisition target social networking application Before the message box information of message, further include:
When detecting specified gesture in any bar social networking application message in current display page, by the social networking application Message is as target social networking application message.
With reference to first aspect, in second of possible realization method of first aspect, the acquisition target social networking application The message box information of message, including:
Any vertex in the message box of target social networking application message is obtained in the position of chat window, the chat window The interaction area provided in the current display page for social networking application program;
The height and width for obtaining the message box, by position of the vertex in the chat window and the message The height and width of frame are as message box information.
With reference to first aspect or second of possible realization method of first aspect, the third in first aspect are possible It is described according to the message box information in realization method, determine that the corresponding region to be intercepted of the target social networking application message exists The location information of the current display page, including:
According to the message box information, determine the corresponding region to be intercepted of the target social networking application message in social networking application First position in program chat window;
According to the second position of the first position and the chat window in the current display page, determine described in Location information of the corresponding region to be intercepted of target social activity message in the current display page.
With reference to first aspect, in the 4th kind of possible realization method of first aspect, it is described according to the positional information The region to be intercepted is intercepted, message picture is obtained, including:
Calling system sectional drawing program obtains corresponding first number of content shown by current display page from video card caching According to;
According to the positional information, corresponding second data in the region to be intercepted are intercepted from first data;
Bitmap file is generated according to second data;
Message picture is generated according to institute's bitmap file.
According to the second aspect of the embodiment of the present disclosure, a kind of sending device of social networking application message, described device packet are provided It includes:
Acquisition module, for working as the message intercept operation detected to any bar social networking application message in current display page When, the message box information of target social networking application message is obtained, the target social networking application message is message intercept operation pair The social networking application message answered;
First determining module, for according to the message box information, determining that the target social networking application message is corresponding and waiting for Location information of the interception area in the current display page;
Interception module obtains message picture for intercepting the region to be intercepted according to the positional information;
Import modul, the message input frame for the message picture to be imported to social networking application program;
Sending module, it is described to disappear for the content in the message input frame to be sent to the corresponding terminal of target user The content ceased in input frame includes at least the message picture.
In conjunction with second aspect, in the first possible realization method of second aspect, described device further includes:
Second determining module detects specified gesture in current display page for working as in any bar social networking application message When, determine the message intercept operation got in target social networking application message.
In conjunction with second aspect, in second of possible realization method of second aspect, the acquisition module includes:
First acquisition unit, any vertex in message box for obtaining target social networking application message is in chat window Position, the chat window are the interaction area that social networking application program provides in the current display page;
Second acquisition unit, the height for obtaining the message box and width, by the vertex in the chat window In position and the message box height and width as message box information.
In conjunction with second of possible realization method of second aspect or second aspect, the third in second aspect is possible In realization method, first determining module includes:
First determination unit, for according to the message box information, determining that the target social networking application message is corresponding and waiting for First position of the interception area in social networking application program chat window;
Second determination unit is used for according to the first position and the chat window in the current display page The second position determines position letter of the corresponding region to be intercepted of the target social activity message in the current display page Breath.
In conjunction with second aspect, in the 4th kind of possible realization method of second aspect, the interception module includes:
Third acquiring unit is used for calling system sectional drawing program, is obtained shown by current display page from video card caching Corresponding first data of content;
Interception unit is corresponded to for according to the positional information, intercepting the region to be intercepted from first data The second data;
First generation unit, for generating bitmap file according to second data;
Second generation unit, for generating message picture according to institute's bitmap file.
According to the third aspect of the embodiment of the present disclosure, a kind of terminal is provided, the terminal includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
In detecting to current display page when the message intercept operation of any bar social networking application message, target society is obtained It is that the corresponding social networking application of message intercept operation disappears to hand over the message box information of application message, the target social networking application message Breath;
According to the message box information, determine the corresponding region to be intercepted of the target social networking application message described current Show the location information in the page;
The region to be intercepted is intercepted according to the positional information, obtains message picture;
The message picture is imported to the message input frame of social networking application program;
Content in the message input frame is sent to the corresponding terminal of target user, it is interior in the message input frame Hold and includes at least the message picture.
The technical scheme provided by this disclosed embodiment can include the following benefits:
When by detecting the operation of the message intercept in target social networking application message, disappearing for target social networking application message is obtained Frame information is ceased, and after determining location information of the region to be intercepted in current display page according to message box information, according to position After obtaining message picture, social activity is realized in such a way that message picture is imported message input frame for information interception region to be intercepted The transmission of application message a kind of is realized to provide by intercepting any history social networking application message in current display page The method that message is sent.Since the hair of message can be realized by intercepting the corresponding region to be intercepted of target social networking application message It send, simplifies the operation for sending social networking application message, so as to improve the efficiency for sending social networking application message.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of sending method flow chart of social networking application message shown according to an exemplary embodiment.
Fig. 2 is a kind of sending method flow chart of social networking application message shown according to an exemplary embodiment.
Fig. 3 is a kind of schematic diagram of chat window shown according to an exemplary embodiment.
Fig. 4 is a kind of schematic diagram in region to be intercepted shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of the sending device of social networking application message shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the sending device of social networking application message shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of acquisition module shown according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of first determining module shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of interception module shown according to an exemplary embodiment.
Figure 10 is a kind of block diagram of terminal shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of sending method flow chart of social networking application message shown according to an exemplary embodiment.Social activity is answered It is applied in terminal with the sending method of message, as shown in Figure 1, the method that the embodiment of the present disclosure provides includes the following steps.
In step S101, the message intercept operation of any bar social networking application message in detecting to current display page When, obtain the message box information of target social networking application message, wherein target social networking application message is that message intercept operation is corresponding Social networking application message.
In step s 102, according to message box information, determine that the corresponding region to be intercepted of target social networking application message is being worked as Location information in the preceding display page.
In step s 103, region to be intercepted is intercepted according to location information, obtains message picture.
In step S104, message picture is imported to the message input frame of social networking application program.
In step S105, the content in message input frame is sent to the corresponding terminal of target user, wherein message is defeated The content entered in frame includes at least message picture.
The method that the embodiment of the present disclosure provides, when by detecting the operation of the message intercept in target social networking application message, The message box information of target social networking application message is obtained, and determines region to be intercepted in current display page according to message box information In location information after, region to be intercepted is intercepted according to location information, after obtaining message picture, by the way that the importing of message picture disappears The mode of breath input frame realizes the transmission of social networking application message, to provide a kind of any by intercepting in current display page History social networking application message come realize message send method.Due to corresponding to be intercepted by intercepting target social networking application message The transmission of message can be realized in region, the operation for sending social networking application message is simplified, so as to improve transmission social networking application The efficiency of message.
In another embodiment, before the message box information for obtaining target social networking application message, further include:
When detecting specified gesture in any bar social networking application message in current display page, by the social networking application Message is as target social networking application message.
In another embodiment, the message box information of target social networking application message is obtained, including:
Any vertex in the message box of target social networking application message is obtained in the position of chat window, wherein chat window Mouth is the interaction area that social networking application program provides in current display page;
The height and width for obtaining message box make the height of position and message box of the vertex in chat window and width For message box information.
In another embodiment, according to message box information, the corresponding region to be intercepted of target social networking application message is determined In the location information of current display page, including:
According to message box information, determine that the corresponding region to be intercepted of target social networking application message is chatted in social networking application program First position in window;
According to the second position of first position and chat window in current display page, target social activity message pair is determined Location information of the region to be intercepted answered in current display page.
In another embodiment, region to be intercepted is intercepted according to location information, obtains message picture, including:
Calling system sectional drawing program obtains corresponding first number of content shown by current display page from video card caching According to;
According to location information, corresponding second data in region to be intercepted are intercepted from the first data;
Bitmap file is generated according to the second data;
Message picture is generated according to bitmap file.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
The content of the embodiment in conjunction with corresponding to Fig. 1, Fig. 2 are that a kind of social networking application shown according to an exemplary embodiment disappears The flow chart of the sending method of breath.The sending method of social networking application message is applied in terminal, as shown in Fig. 2, the disclosure is implemented The method that example provides includes the following steps.
In step s 201, when detecting specified gesture in any bar social networking application message in current display page, Specify the corresponding social networking application message of gesture as target social networking application message this.
Wherein, the history that any bar social networking application message shown in current display page is sent between user and good friend Social networking application message.History social networking application message is the social networking application message sent before current time point.In disclosure reality Apply in example, the social networking application message that user wants to send to good friend be include target social networking application message sectional drawing.When terminal detects When specified operation on to any bar social networking application message in current display page, using the social networking application message as target society Hand over application message.
About the type of specified gesture, the embodiment of the present disclosure is not especially limited.For example, the specified gesture can be to double-click Gesture, long-pressing gesture, the gesture etc. for sliding to assigned direction.
For example, when it is the operation of long-press any bar social networking application message that this, which specifies gesture, if a terminal detects that currently Show the long press operation in a certain social networking application message in the page, then using the social networking application message as target social networking application Message.
In step S202, when detecting the message intercept operation to target society application message, obtains target social activity and answer With the message box information of message.
In the embodiment of the present disclosure, when detecting the message intercept operation to target social networking application message, triggering interception packet The step of including the sectional drawing of target social networking application message.Related to determining whether the mode for detecting message intercept operation, can have very It is a variety of.For example, when detecting specified gesture in target social networking application message, terminal is shown can be to the target social networking application The operating list for all operations that message executes.Operating list includes sectional drawing option.On this basis, when detecting the sectional drawing When option is selected, the message intercept operation to target social networking application message is confirmly detected.
As shown in figure 3, it illustrates a kind of schematic diagrames of chat window.When detecting the finger in target social networking application message When determining gesture, display " replicating word " option, "@this person " option, " intelligent sectional drawing " option and " reference " option.When terminal detects When selected to " intelligent sectional drawing " option, the message intercept operation to the target social networking application message is confirmly detected.
In addition, when carrying out exchange and interdynamic by social networking application program between user, terminal can disappear according to every social networking application The content of breath, is that every social networking application message generates a message box, and the content of every social networking application message is shown in pair It answers in message box.The embodiment of the present disclosure is when interception includes the sectional drawing of target social networking application message, by determining that target social activity is answered It is triggered with position of the message in current display page.Wherein, when determining the position of target social networking application message, by obtaining The message box information of target social networking application message is taken to trigger.
About the particular content of message box information, the embodiment of the present disclosure is not especially limited.For example, message box information is at least The position of any point including message box and the height of message box and width.Wherein, any point of message box can be message box Vertex, central point etc..In conjunction with the contents of the section, when obtaining the message box information of target social networking application message, including but not It is limited by following steps and comes S2021 and step S2022 to realize:
In step S2021, any vertex in the message box of target social networking application message is obtained in the position of chat window It sets, wherein chat window is the interaction area that social networking application program provides in current display page.
Wherein, it when being interacted by social networking application program between user, can be shown in the current display page of terminal The chat window of social networking application program.Chat window includes history social networking application message region and message input frame region.History For social networking application message region for showing the social networking application message sent between good friend, message inputs frame region can be for Family inputs the content of message to be sent.
Specifically, each social networking application message that chat window includes can correspond to a message box.In order to position mesh The position of social networking application message is marked, the embodiment of the present disclosure is ginseng with any one vertex in the message box of target social networking application message It examines to realize.Therefore, any vertex in the message box of target social networking application message can first be obtained in the position of chat window.
Wherein, when obtaining position of any vertex in chat window, one can be established in chat window and is specified Coordinate system, and determine coordinate of the vertex under the specified coordinate system, using coordinate of the vertex under the specified coordinate system as Position of the vertex got in chat window.
In step S2022, the height and width of the message box of target social networking application message are obtained.
After user inputs the content of social networking application message, social networking application program can according to the content of social networking application message, The font type and font size of user setting generate the corresponding message box of social networking application message.Therefore, each social activity is answered Certain height and width are corresponded to the message box of message.In order to accurately determine target social networking application message message box position It sets, to determine the corresponding region to be intercepted of target social networking application message, needs the message box for obtaining target social networking application message Height and width.
In step S203, according to message box information, determine that the corresponding region to be intercepted of target social networking application message is being worked as Location information in the preceding display page.
Wherein, the corresponding region to be intercepted of target social networking application message can only include the interior of target social networking application message Hold.In addition, when carrying out group call between user, used to make target user's clearly social networking application message which come from Family, region to be intercepted can also send the social networking application message in addition to the content including target social networking application message including history User head portrait etc..
As shown in figure 4, it illustrates a kind of schematic diagrames in region to be intercepted.Dotted line frame area encompassed in Fig. 4 is For region to be intercepted.Region to be intercepted shown in Fig. 4 includes that the content of social networking application message and history send the social networking application and disappears The head portrait of the user of breath.
Since the social networking application message transmitted by the embodiment of the present disclosure is the sectional drawing for including target social networking application message, in order to It is accurately truncated to the sectional drawing for including target social networking application message from current display page, needs, according to message box information, to determine Location information of the corresponding region to be intercepted of target social networking application message in current display page.
Specifically, according to message box information, determine that the corresponding region to be intercepted of target social networking application message is shown currently The mode of the location information of the page, including but not limited to as follows S2031 and step S2032 are realized:
In step S2031, according to message box information, determine the corresponding region to be intercepted of target social networking application message in society Hand over the first position in application program chat window.
Specifically, in the history social networking application region that can first obtain chat window, all social networking applications for currently showing The position of the message box of message, and determine which message box the message box of target social networking application message is, on this basis, knot The message box information for closing the target social networking application message got in step S202, determines the message box of target social networking application message First position in chat window.
Such as, if it is determined that the history social networking application region in chat window includes the message of three social networking application message Frame, and after second message box is the corresponding message box of target social networking application message, according to the message of target social networking application message The position on any of frame vertex, the message box of target social networking application message height and width, determine mark social networking application message First position of the message box in chat window.
In step S2032, according to the second position of first position and chat window in current display page, mesh is determined Mark location information of the corresponding region to be intercepted of social activity message in current display page.
Wherein, chat window can take up the whole region of current display page, can also occupy current display page Subregion.When chat window occupies the region difference of current display page, determine region to be intercepted in current display page In position mode it is also different.Therefore, in order to determine that region to be intercepted in the location information of current display page, needs basis The second position of first position and chat window in current display page is realized.Specifically, it is determined that region to be intercepted is being worked as The mode of location information in the preceding display page includes but not limited to have the following two kinds:
First way:If chat window occupies the whole region of current display page, since region to be intercepted is being chatted First position in skylight opening is identical as the second position of the region to be intercepted in current display page, therefore, can direct root According to first position of the region to be intercepted in chat window, location information of the region to be intercepted in current display page is determined.
In conjunction with Fig. 4, since the chat window in Fig. 4 occupies the whole region of current display page, can direct root According to position of the region to be intercepted in chat window, location information of the region to be intercepted in current display page is determined.
The second way:If chat window occupies the subregion of current display page, due to chat window relative to Current display page there are one relative position, therefore, it is necessary to according to region to be intercepted in the first position of chat window, Yi Jiliao The second position of the skylight opening in current display page is realized.
For example, when chat window width and current display page it is of same size, what is shown in current display page is interior Appearance includes status bar and chat window, and the height of status bar is the first height, and the height of chat window is second highly and first When the sum of height and the second height are the height of current display page height, determining region to be intercepted in current display page Location information when, be directed to position of any point in region to be intercepted in current display page, need in step S2031 The point being calculated increases by the first height on the basis of ordinate (height).Wherein, status bar is used for the electricity of display terminal The information such as amount, date, signal strength.
For example, if ordinate of the certain point in chat window in region to be intercepted is 2, the first height is 0.5, then Ordinate of this in current display page is 2.5.
In step S204, region to be intercepted is intercepted according to location information, obtains message picture.
Message picture is the sectional drawing for including target social networking application message of interception.Specifically, according to region to be intercepted Location information intercepts region to be intercepted, when obtaining message picture, including but not limited to as follows S2041 to step S2043 is realized:
In step S2041, calling system sectional drawing program is obtained from video card caching in shown by current display page Hold corresponding first data.
Wherein, the system sectional drawing program provided in the system program of each terminal, system sectional drawing program can be slow from video card Deposit the middle entire current display page of interception.Specifically, the content stored shown by current display page in video card caching corresponds to All data, system sectional drawing program can obtain current display page when intercepting entire current display page from video card caching The corresponding all data of content shown by face, which is the first data.
In step S2042, according to the location information in region to be intercepted, region to be intercepted is intercepted from the first data and is corresponded to The second data.
In order to the content being truncated to shown by region to be intercepted, terminal according to the location information in region to be intercepted, from Corresponding second data in region to be intercepted are intercepted in first data.Specifically, the data of the different pixels point of current display page The different location being stored in video card caching therefore, can be according to area to be intercepted after determining the location information in region to be intercepted The location information in domain, gets corresponding second data in region to be intercepted from the first data, and abandons in the first data except the Other data other than two data.
In step S2043, bitmap file is generated according to the second data, and message picture is generated according to bitmap file.
Second data are the data for the content that can be identified for that region to be intercepted, and the content in region to be intercepted can be by waiting for The color of each pixel of interception area indicates, therefore, can generate bitmap file according to the second data, wait cutting to identify Take the colouring information of each pixel in region.
It further, can be according to bitmap text in order to enable the social networking application message sent to target user is more intuitive Part generates message picture.
In step S205, message picture is imported to the message input frame of social networking application program.
In order to simplify user send social networking application message operation, the embodiment of the present disclosure after interception obtains message picture, It is importing directly into the message input frame of social networking application program without the operation of user, is cut so that user can directly transmit The message picture got.
It optionally,, can be with if user still wants to send other contents after message picture is imported message input frame Input other contents in message input frame, terminal obtains other contents input by user, and by other contents and sectional drawing message As social networking application message to be sent.
In step S206, the content in message input frame is sent to the corresponding terminal of target user, wherein message is defeated The content entered in frame includes at least message picture.
Specifically, the chat window of social networking application program includes delivery option, and user can choose the delivery option Send the content in message input frame.It on this basis, will when terminal detects that the delivery option in chat window is selected Content in message input frame is sent to the corresponding terminal of target user.Wherein, when detecting the predetermined registration operation on delivery option When, terminal determines that user chooses delivery option.The predetermined registration operation can be click, double-click, long-press etc..
It should be noted that the terminal for executing the method that the embodiment of the present disclosure provides can be desktop computer, it can also For smart mobile phone, tablet computer, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 3) player, pocket computer on knee etc. be mobile eventually End, preferably mobile terminal.
The method that the embodiment of the present disclosure provides, when by detecting the operation of the message intercept in target social networking application message, The message box information of target social networking application message is obtained, and determines region to be intercepted in current display page according to message box information In location information after, region to be intercepted is intercepted according to location information, after obtaining message picture, by the way that the importing of message picture disappears The mode of breath input frame realizes the transmission of social networking application message, to provide a kind of any by intercepting in current display page History social networking application message come realize message send method.Due to corresponding to be intercepted by intercepting target social networking application message The transmission of message can be realized in region, the operation for sending social networking application message is simplified, so as to improve transmission social networking application The efficiency of message.
Fig. 5 is a kind of block diagram of the sending device of social networking application message shown according to an exemplary embodiment.The social activity The sending device of application message can be used for executing the hair for the social networking application message that embodiment corresponding to above-mentioned Fig. 1 or Fig. 2 provides Delivery method.With reference to Fig. 5, the sending device of the social networking application message includes acquisition module 501, the first determining module 502, interception mould Block 503, import modul 504 and sending module 505.Wherein:
The acquisition module 501 is configured as working as the message detected to any bar social networking application message in current display page When intercept operation, the message box information of target social networking application message is obtained, wherein target social networking application message is grasped for message intercept Make corresponding social networking application message;
First determining module 502 is configured as, according to message box information, determining that target social networking application message is corresponding and waiting for Location information of the interception area in current display page;
The interception module 503 is configured as intercepting region to be intercepted according to location information, obtains message picture;
The import modul 504 is configured as importing message picture into the message input frame of social networking application program;
The sending module 505 is configured as the content in message input frame being sent to the corresponding terminal of target user, In, the content in message input frame includes at least message picture.
The device that the embodiment of the present disclosure provides, when by detecting the operation of the message intercept in target social networking application message, The message box information of target social networking application message is obtained, and determines region to be intercepted in current display page according to message box information In location information after, region to be intercepted is intercepted according to location information, after obtaining message picture, by the way that the importing of message picture disappears The mode of breath input frame realizes the transmission of social networking application message, to provide a kind of any by intercepting in current display page History social networking application message come realize message send method.Due to corresponding to be intercepted by intercepting target social networking application message The transmission of message can be realized in region, the operation for sending social networking application message is simplified, so as to improve transmission social networking application The efficiency of message.
In another embodiment, referring to Fig. 6, the sending device of social networking application message further includes the second determining module 506.
Second determining module 506 is configured as working as and be detected in any bar social networking application message in current display page When specified gesture, using the social networking application message as target social networking application message.
In another embodiment, referring to Fig. 7, acquisition module 501 includes that first acquisition unit 5011 and second obtains list Member 5012.Wherein:
Any vertex that the first acquisition unit 5011 is configured as obtaining in the message box of target social networking application message exists The position of chat window, wherein chat window is the interaction area that social networking application program provides in current display page;
The second acquisition unit 5012 is configured as obtaining the height and width of message box, by vertex in chat window The height and width of position and message box are as message box information.
In another embodiment, referring to Fig. 8, the first determining module 502 includes that the first determination unit 5021 and second is true Order member 5022.Wherein:
First determination unit 5021 is configured as, according to message box information, determining that target social networking application message is corresponding and waiting for First position of the interception area in social networking application program chat window;
Second determination unit 5022 is configured as in current display page according to first position and chat window Two positions determine location information of the corresponding region to be intercepted of target social activity message in current display page.
In another embodiment, referring to Fig. 9, interception module 503 includes third acquiring unit 5031, interception unit 5032, the first generation unit 5033 and the second generation unit 5034.Wherein:
The third acquiring unit 5031 is configured as calling system sectional drawing program, and current display page is obtained from video card caching Corresponding first data of content shown by face;
The interception unit 5032 is configured as, according to location information, region to be intercepted corresponding being intercepted from the first data Two data;
First generation unit 5033 is configured as generating bitmap file according to the second data;
Second generation unit 5034 is configured as generating message picture according to bitmap file.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 10 is a kind of block diagram of terminal shown according to an exemplary embodiment, which can be used for executing above-mentioned figure The sending method for the social networking application message that embodiment corresponding to 1 or Fig. 2 provides.For example, terminal 1000 can be mobile phone, meter Calculation machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, individual digital Assistant etc..
Referring to Fig.1 0, terminal 1000 may include following one or more components:Processing component 1002, memory 1004, Power supply module 1006, multimedia component 1008, audio component 1010, I/O (Input/Output, input/output) interface 1012, Sensor module 1014 and communication component 1016.
The integrated operation of 1002 usual control terminal 1000 of processing component, such as with display, call, data communication, Camera operation and record operate associated operation.Processing component 1002 may include one or more processors 1020 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1002 may include one or more moulds Block, convenient for the interaction between processing component 1002 and other components.For example, processing component 1002 may include multi-media module, To facilitate the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in terminal 1000.These data Example includes the instruction for any application program or method that are operated in terminal 1000, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as SRAM (Static Random Access Memory, static RAM), EEPROM (Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of terminal 1000.Power supply module 1006 may include power management System, one or more power supplys and it is other generated with for terminal 1000, management and the associated component of distribution electric power.
Multimedia component 1008 is included in the screen of one output interface of offer between the terminal 1000 and user. In some embodiments, screen may include LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen includes touch panel, screen may be implemented as touch screen, from the user to receive Input signal.Touch panel includes one or more touch sensors to sense the gesture on touch, slide, and touch panel.It touches The boundary of a touch or slide action can not only be sensed by touching sensor, but also be detected relevant lasting with touch or slide Time and pressure.In some embodiments, multimedia component 1008 includes a front camera and/or rear camera.When Terminal 1000 is in operation mode, and when such as screening-mode or video mode, front camera and/or rear camera can receive External multi-medium data.Each front camera and rear camera can be a fixed optical lens system or have Focusing and optical zoom capabilities.
Audio component 1010 is configured as output and/or input audio signal.For example, audio component 1010 includes one MIC (Microphone, microphone), when terminal 1000 is in operation mode, such as call model, logging mode and speech recognition mould When formula, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory 1004 or via communication component 1016 send.In some embodiments, audio component 1010 further includes a loud speaker, for defeated Go out audio signal.
I/O interfaces 1012 provide interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor module 1014 includes one or more sensors, and the state for providing various aspects for terminal 1000 is commented Estimate.For example, sensor module 1014 can detect the state that opens/closes of terminal 1000, the relative positioning of component, such as group Part is the display and keypad of terminal 1000, and sensor module 1014 can be with 1,000 1 groups of detection terminal 1000 or terminal The position change of part, the existence or non-existence that user contacts with terminal 1000,1000 orientation of terminal or acceleration/deceleration and terminal 1000 temperature change.Sensor module 1014 may include proximity sensor, be configured to connect in not any physics It is detected the presence of nearby objects when tactile.Sensor module 1014 can also include optical sensor, such as CMOS (Complementary Metal Oxide Semiconductor, complementary metal oxide) or CCD (Charge-coupled Device, Charged Couple Element) imaging sensor, for being used in imaging applications.In some embodiments, which can also wrap Include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between terminal 1000 and miscellaneous equipment.Eventually End 1000 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.It is exemplary at one In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1016 further include NFC (Near Field Communication, Near-field communication) module, to promote short range communication.For example, RFID (Radio Frequency can be based in NFC module Identification, radio frequency identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) skill Art, UWB (Ultra Wideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technologies and other technologies are realized.
In the exemplary embodiment, terminal 1000 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, at digital signal Manage device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, programmable logic device), FPGA (Field Programmable Gate Array, field programmable gate Array), controller, microcontroller, microprocessor or other electronic components realize, it is real corresponding to above-mentioned Fig. 1 or Fig. 2 for executing The sending method of the social networking application message of example offer is provided.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 1004 of instruction, above-metioned instruction can be executed by the processor 1020 of terminal 1000 to complete above-mentioned Fig. 1 or Fig. 2 The sending method for the social networking application message that corresponding embodiment provides.For example, the non-transitorycomputer readable storage medium Can be ROM, RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read- Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes so that mobile terminal is able to carry out a kind of sending method of social networking application message, the method includes:
In detecting to current display page when the message intercept operation of any bar social networking application message, target society is obtained Hand over the message box information of application message, wherein target social networking application message is that message intercept operates corresponding social networking application message;
According to message box information, determine the corresponding region to be intercepted of target social networking application message in current display page Location information;
Region to be intercepted is intercepted according to location information, obtains message picture;
Message picture is imported to the message input frame of social networking application program;
Content in message input frame is sent to the corresponding terminal of target user, wherein the content in message input frame Including at least message picture.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of terminal also include instructions for performing the following operations:Obtain target Before the message box information of social networking application message, further include:
When detecting specified gesture in any bar social networking application message in current display page, by the social networking application Message is as target social networking application message.
In the third the possible embodiment provided based on the first possible embodiment, terminal is deposited Also include instructions for performing the following operations in reservoir:The message box information of target social networking application message is obtained, including:
Any vertex in the message box of target social networking application message is obtained in the position of chat window, wherein chat window Mouth is the interaction area that social networking application program provides in current display page;
The height and width for obtaining message box make the height of position and message box of the vertex in chat window and width For message box information.
In the 4th kind of possible embodiment provided based on the first or the third possible embodiment, Also include instructions for performing the following operations in the memory of terminal:According to message box information, determine that target social networking application disappears Cease corresponding region to be intercepted current display page location information, including:
According to message box information, determine that the corresponding region to be intercepted of target social networking application message is chatted in social networking application program First position in window;
According to the second position of first position and chat window in current display page, target social activity message pair is determined Location information of the region to be intercepted answered in current display page.
In the 5th kind of possible embodiment provided based on the first or possible embodiment, terminal is deposited Also include instructions for performing the following operations in reservoir:
Region to be intercepted is intercepted according to location information, obtains message picture, including:
Calling system sectional drawing program obtains corresponding first number of content shown by current display page from video card caching According to;
According to location information, corresponding second data in region to be intercepted are intercepted from the first data;
Bitmap file is generated according to the second data;
Message picture is generated according to bitmap file.
The non-transitorycomputer readable storage medium that the embodiment of the present disclosure provides, by detecting that target social networking application disappears When message intercept on breath operates, the message box information of target social networking application message is obtained, and wait for according to the determination of message box information After location information of the interception area in current display page, region to be intercepted is intercepted according to location information, obtains message picture Afterwards, the transmission that social networking application message is realized in such a way that message picture is imported message input frame, passes through to provide one kind The method for intercepting any history social networking application message in current display page to realize message transmission.Due to by intercepting target The transmission of message can be realized in the corresponding region to be intercepted of social networking application message, simplifies the operation for sending social networking application message, So as to improve the efficiency for sending social networking application message.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (11)

1. a kind of sending method of social networking application message, which is characterized in that it is applied in terminal, the method includes:
In detecting to current display page when the message intercept operation of any bar social networking application message, obtains target social activity and answer With the message box information of message, the target social networking application message is that the message intercept operates corresponding social networking application message, The message box information include at least any point of the message box in the height of the position of chat window and the message box and Width, the chat window are shown in the current display page;
According to the message box information, determine the corresponding region to be intercepted of the target social networking application message in the current display Location information in the page;
The region to be intercepted is intercepted according to the positional information, obtains message picture;
The message picture is imported to the message input frame of social networking application program;
Content in the message input frame is sent to the corresponding terminal of target user, the content in the message input frame is extremely Include the message picture less.
2. according to the method described in claim 1, it is characterized in that, the message box information for obtaining target social networking application message Before, further include:
When detecting specified gesture in any bar social networking application message in current display page, by the social networking application message As target social networking application message.
3. according to the method described in claim 1, it is characterized in that, the message box letter for obtaining target social networking application message Breath, including:
Any vertex in the message box of target social networking application message is obtained in the position of chat window, the chat window is society The interaction area for handing over application program to be provided in the current display page;
The height and width for obtaining the message box, by position of the vertex in the chat window and the message box Height and width are as message box information.
4. method according to claim 1 or 3, which is characterized in that it is described according to the message box information, determine the mesh Mark the corresponding region to be intercepted of social networking application message the current display page location information, including:
According to the message box information, determine the corresponding region to be intercepted of the target social networking application message in social networking application program First position in chat window;
According to the second position of the first position and the chat window in the current display page, the target is determined Location information of the corresponding region to be intercepted of social activity message in the current display page.
5. according to the method described in claim 1, it is characterized in that, described intercept the area to be intercepted according to the positional information Domain obtains message picture, including:
Calling system sectional drawing program obtains corresponding first data of content shown by current display page from video card caching;
According to the positional information, corresponding second data in the region to be intercepted are intercepted from first data;
Bitmap file is generated according to second data;
Message picture is generated according to institute's bitmap file.
6. a kind of sending device of social networking application message, which is characterized in that described device includes:
Acquisition module, when the message intercept for any bar social networking application message in detecting to current display page operates, The message box information of target social networking application message is obtained, the target social networking application message is that message intercept operation is corresponding Social networking application message, the message box information include at least any point of the message box in the position of chat window and described disappear The height and width of frame are ceased, the chat window is shown in the current display page;
First determining module, for according to the message box information, determining that the target social networking application message is corresponding to be intercepted Location information of the region in the current display page;
Interception module obtains message picture for intercepting the region to be intercepted according to the positional information;
Import modul, the message input frame for the message picture to be imported to social networking application program;
Sending module, for the content in the message input frame to be sent to the corresponding terminal of target user, the message is defeated The content entered in frame includes at least the message picture.
7. device according to claim 6, which is characterized in that described device further includes:
Second determining module, for when detecting specified gesture in any bar social networking application message in current display page, Using the social networking application message as target social networking application message.
8. device according to claim 6, which is characterized in that the acquisition module includes:
First acquisition unit, any vertex in message box for obtaining target social networking application message is in the position of chat window It sets, the chat window is the interaction area that social networking application program provides in the current display page;
Second acquisition unit, the height for obtaining the message box and width, by the vertex in the chat window The height and width of position and the message box are as message box information.
9. the device according to claim 6 or 8, which is characterized in that first determining module includes:
First determination unit, for according to the message box information, determining that the target social networking application message is corresponding to be intercepted First position of the region in social networking application program chat window;
Second determination unit is used for second according to the first position and the chat window in the current display page Position determines location information of the corresponding region to be intercepted of the target social activity message in the current display page.
10. device according to claim 6, which is characterized in that the interception module includes:
Third acquiring unit is used for calling system sectional drawing program, is obtained in shown by current display page from video card caching Hold corresponding first data;
Interception unit intercepts the region to be intercepted corresponding for according to the positional information from first data Two data;
First generation unit, for generating bitmap file according to second data;
Second generation unit, for generating message picture according to institute's bitmap file.
11. a kind of terminal, which is characterized in that the terminal includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
In detecting to current display page when the message intercept operation of any bar social networking application message, obtains target social activity and answer With the message box information of message, the target social networking application message is that the message intercept operates corresponding social networking application message, The message box information include at least any point of the message box in the height of the position of chat window and the message box and Width, the chat window are shown in the current display page;
According to the message box information, determine the corresponding region to be intercepted of the target social networking application message in the current display Location information in the page;
The region to be intercepted is intercepted according to the positional information, obtains message picture;
The message picture is imported to the message input frame of social networking application program;
Content in the message input frame is sent to the corresponding terminal of target user, the content in the message input frame is extremely Include the message picture less.
CN201510178249.6A 2015-04-15 2015-04-15 Sending method, device and the terminal of social networking application message Active CN104820549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510178249.6A CN104820549B (en) 2015-04-15 2015-04-15 Sending method, device and the terminal of social networking application message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510178249.6A CN104820549B (en) 2015-04-15 2015-04-15 Sending method, device and the terminal of social networking application message

Publications (2)

Publication Number Publication Date
CN104820549A CN104820549A (en) 2015-08-05
CN104820549B true CN104820549B (en) 2018-10-19

Family

ID=53730857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510178249.6A Active CN104820549B (en) 2015-04-15 2015-04-15 Sending method, device and the terminal of social networking application message

Country Status (1)

Country Link
CN (1) CN104820549B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354847A (en) * 2016-08-31 2017-01-25 张北江 Application method and system of image scheduling in instant messaging
CN107728922B (en) * 2017-09-29 2022-11-08 维沃移动通信有限公司 Method and terminal for inputting verification code
CN107920015B (en) * 2017-11-17 2021-11-09 北京小米移动软件有限公司 Method and device for publishing picture
US11870922B2 (en) 2019-02-19 2024-01-09 Lg Electronics Inc. Mobile terminal and electronic device having mobile terminal
CN110825289A (en) * 2019-10-31 2020-02-21 北京字节跳动网络技术有限公司 Method and device for operating user interface, electronic equipment and storage medium
CN111897475A (en) * 2020-07-30 2020-11-06 维沃移动通信有限公司 Message viewing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360816A (en) * 2014-11-27 2015-02-18 广东欧珀移动通信有限公司 Screen capture method and system
CN104363166A (en) * 2014-11-27 2015-02-18 小米科技有限责任公司 Instant messaging method and device and intelligent terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101850821B1 (en) * 2011-09-15 2018-04-20 엘지전자 주식회사 Mobile terminal and message display method for mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360816A (en) * 2014-11-27 2015-02-18 广东欧珀移动通信有限公司 Screen capture method and system
CN104363166A (en) * 2014-11-27 2015-02-18 小米科技有限责任公司 Instant messaging method and device and intelligent terminal

Also Published As

Publication number Publication date
CN104820549A (en) 2015-08-05

Similar Documents

Publication Publication Date Title
CN104820549B (en) Sending method, device and the terminal of social networking application message
US10942580B2 (en) Input circuitry, terminal, and touch response method and device
CN106462293B (en) Terminal, touch response method and device
CN104503689B (en) Application interface display methods and device
CN105224195B (en) Terminal operation method and device
KR101887453B1 (en) Mobile terminal and control method thereof
CN107919123A (en) More voice assistant control method, device and computer-readable recording medium
CN104536935B (en) Calculate display methods, calculate edit methods and device
CN107544809A (en) The method and apparatus for showing the page
KR102101442B1 (en) Fingerprint identification methods, devices, programs and storage media
CN110555333A (en) fingerprint identification method, electronic device and storage medium
CN107025419A (en) Fingerprint template input method and device
CN107704190B (en) Gesture recognition method and device, terminal and storage medium
CN107506246A (en) Information displaying method, device and computer-readable recording medium
CN107544802A (en) device identification method and device
CN105094539B (en) Reference information display methods and device
CN106021072A (en) Information display method and device
CN107404429A (en) Circle of friends answering method, device and computer-readable recording medium
CN104750478B (en) The display methods and device of application interface
CN104536753B (en) Backlog labeling method and device
CN105677215A (en) Application control method and apparatus
CN105373318B (en) Information display method and device
CN109213349A (en) Exchange method and device, computer readable storage medium based on touch screen
CN108153478A (en) The processing method of touch and terminal of terminal
CN107704911A (en) Generation, read method and the device of Quick Response Code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant