Embodiment
See also Fig. 1, Fig. 1 is the schematic flow sheet of instant messaging control method one embodiment of the present invention.
Described instant messaging control method may further comprise the steps:
S101, display control interface, described control interface comprises input frame and chat mode switch button at least;
S102 when the information that receives sends instruction, obtains the information of inputting in the described input frame;
S103 judges current chat pattern, and wherein, described chat pattern comprises public merely pattern and private chat pattern;
S104 if the chat pattern is public merely pattern, then sends public merely information according to the information of inputting in the described input frame to server request; If the chat pattern is the private chat pattern, then send private chat information according to the information of inputting in the described input frame to server request;
S105 when described chat mode switch button is triggered, switches described chat pattern.
Wherein, described control interface is preferably adopted without the window control and is realized, the control interface that goes out to represent according to the real-time dynamic drafting of user's content of operation.In one embodiment, after corresponding instant messaging scene loaded, for example described control interface was drawn in the video capture Room at the edge of described instant messaging scene.In the present embodiment, the synoptic diagram at described control interface as shown in Figure 2.
Described control interface comprises input frame and chat mode switch button at least, also can further include but not limited in the following various element one or more:
Information display frame, userspersonal information's control, present list control, application center control, notification icon and volume control control and expansion button etc.
Described chat mode switch button can adopt various control knob set-up mode.In one embodiment, described chat mode switch button comprises public merely button and private chat button; When described public affairs are chatted button when clicked, described chat pattern is switched to public merely pattern; When described private chat button is clicked, described chat pattern is switched to the private chat pattern.
In one embodiment, judge that the method for current chat pattern is: read the state of default zone bit, judge the chat pattern according to the state of described zone bit; When described chat mode switch button is triggered, switch the state of described zone bit.
Described zone bit is the data bit that records active user's chat pattern (private chat or merely public) that internal system arranges, and it comprises two states, and corresponding described public affairs are chatted pattern and described private chat pattern respectively; When the user triggers described chat mode switch button switching chat pattern, change simultaneously the state of described zone bit.When the user clicks transmission message, then read the state of described zone bit, judge current chat pattern.
In one embodiment, sending the public merely step of information to server request comprises:
The public affairs of described input frame input are chatted information, and the public affairs at user ID place are chatted channel and are sent to server;
Server is chatted channel according to described public affairs and is obtained and add each user ID and the corresponding IP address thereof that described public affairs are chatted channel, and described public affairs are chatted information is sent to each described IP address.
Each subscriber equipment corresponding to described IP address receives that described public affairs are chatted after the information and shows that in this locality described public affairs chat information, therefore, adds public merely each user of channel and can both see that described public affairs chat information.
The step that sends private chat information to server request comprises:
With the private chat information of described input frame input, and the user ID of private chat object is sent to server;
The IP address that server is searched described private chat object according to the user ID of described private chat object, and described private chat information is sent to described IP address.
Subscriber equipment corresponding to described IP address shows that in this locality only have user corresponding to described IP address to see described private chat information, other users can't see this private chat information after receiving described private chat information.
Described step S105 and other steps are concurrency relations, can in the implementation of other any one steps, carry out simultaneously, that is, as long as described chat mode switch button is triggered, the switching of chat pattern will be carried out, therefore the public and private easily and fast switching of chatting can be realized.
In one embodiment, further monitor input equipment operation information, judge according to the operation information of input equipment whether described input frame selected; If described input frame is not selected, then in described input frame, show chat mode annunciations information; If described input frame is selected, then do not show described chat mode annunciations information.
The selected clicked or described input frame of described input frame that comprises of described input frame has literal to input, or editor's cursor is sitting in the described input frame.The chat mode annunciations information that shows in the described input frame can be " being public merely pattern now ", perhaps " being the private chat pattern now " etc., the chat pattern that reminding user is current.
In one embodiment, described control interface can further comprise expression interpolation control, in described input frame, show an expression interpolation symbol, when described expression interpolation symbol is clicked, open described expression and add control, the expression of user selection is added in the input message of described input frame.
See also Fig. 3, Fig. 3 is the schematic flow sheet of another embodiment of instant messaging control method of the present invention.
The key distinction in present embodiment is: described control interface further comprises the information display frame; Increase the synoptic diagram at the control interface behind the described information display frame as shown in Figure 4.
Described instant messaging control method further may further comprise the steps:
If the chat pattern is public merely pattern, show in described information display frame that then the public affairs of user ID place channel are chatted information;
If the chat pattern is the private chat pattern, then in described information display frame, show the private chat information of user ID and private chat object.
The public affairs that receive and preserve user ID place channel are chatted information, and when switching to public merely pattern, the described public affairs of demonstration are chatted information in described information display frame; Receive and preserve the private chat information of user ID and private chat object, when switching to the private chat pattern, in described information display frame, show described private chat information.
In one embodiment, if the chat pattern is the private chat pattern, then further obtain all private chat objects of described user ID, and in described information display frame, show the private chat list object, when the private chat object in the described private chat list object is selected, in described information display frame, show the private chat information of user ID and described private chat object.
Simultaneously, if described information display frame comprises scroll bar, then when showing described private chat information, described scroll bar is positioned to described information display frame below.
In one embodiment, described information display frame is hidden when not using or is closed, and opens in use.
In one embodiment, one or more during described instant messaging control method further may further comprise the steps:
In described control interface, show user's head portrait, when described user's head portrait is clicked, open default userspersonal information's control;
In described control interface, show present tabulation icon, when described present tabulation icon is clicked, open default present list control;
Display application central icon in described control interface when described application central icon is clicked, is describedly opened default application center control;
Display notification icon in described control interface when described notification icon is clicked, is opened described information display frame, and in described information indicating frame the display system announcement information;
In described control interface, show volume control icon, when described volume control icon is clicked, open default volume control control.
Further, at the described control interface portion interface content of hiding, and show the expansion button, when described expansion button is clicked, launch the part interface content of hiding.Also can launch or hiding described part interface content by the position control of monitoring mouse in addition, for example mouse leaves the time at described control interface above Preset Time, after 5 seconds, the part interface content of hiding, when mouse is clicked described control interface regional, launch the part interface content of hiding.
The synoptic diagram of described expansion button such as Fig. 5.The interface of control described in Fig. 5 comprises notification icon 51, private chat button 52, public merely button 53, present tabulation icon 54 and input frame 55, user's head portrait 56 and expansion button 57.
When the user clicks described expansion button 57, launch to hide interface content, described hiding interface content comprises: use central icon 58 and volume control icon 59.
In one embodiment, when having detected notifications information, further display notification property frame above described notification icon, displaying time can be 5 seconds.Be provided with X button on the described content of announcement frame, can click described content of announcement frame is closed.When the user clicks described notification icon, obtain all contents of announcement, and according to after the issuing time ordering, in described information indicating frame, show described content of announcement, and, preferentially show the content of announcement that issuing time is up-to-date.
In one embodiment, show the private chat information number of not reading in the upper right corner of described private chat button.During greater than preset value, show N in the private chat number.If the private chat object number that the private chat object can show more than described information display frame then shows the head portrait of each private chat object in described private chat list object, and the context displaying that scroll bar is controlled described private chat list object is set.
When mouse moves on the head portrait of described private chat object, show the button of closing this private chat object in the left side of described head portrait, when described button is clicked, the head portrait of the described private chat object of deletion from described private chat list object.If unread message is arranged, then do not read accordingly private chat object number and subtract one; Do not show the chat content before closing during again with same private chat object private chat, after deleting the head portrait of this private chat object, if described private chat list object below also has the head portrait of other private chat objects, move on the head portrait of the private chat object then is automatic, if the below does not have the head portrait of other private chat objects, but the top also has the head portrait of other private chat objects, and then the head portrait with top private chat object moves down.
Under the private chat pattern, show X button in the described information display frame upper right corner, when described X button is clicked, close described information display frame;
If all private chat information are all read, click described private chat button, open described information display frame, the private chat object when the private chat list object that shows is locked in and once closes described information display frame, the content of right lock when closing described information display frame last time in described information display frame; If mouse is clicked the head portrait of the described private chat object in left side, then the chat content district on right side switches to the chat content of the private chat object of current selected, if chat content more than a screen, then a piece of news is presented at below of screen recently;
If the private chat message of not reading is arranged, click described private chat button, open described information display frame, the private chat list object is locked on user's head portrait of the private chat object that sends a nearest unread message, and the right side scroll bar is locked in below of chat content; If mouse is clicked the head portrait of the described private chat object in left side, then the chat content district on right side switches to the chat content of the private chat object of current selected, if chat content more than a screen, then a piece of news is presented at below of screen recently;
All after screen showed fully, the object number of not reading that shows on the Chat button subtracted 1 to all unread messages of described private chat object.
In one embodiment, application scenarios is divided into a plurality of subregions, and each user is positioned at one of them subregion; Then click described public affairs and chat button, open described information display frame, show in the described information display frame that the public affairs of user ID place subregion are chatted content, and real-time update; Acquiescence shows the public merely information of 30 last row, mouse scroll up or click on scroll bar on the public affairs that load more early when drawing chat information recording/, the channel that the user withdraws from this application scenarios then historical record empties;
The user carries out that subregion is peeped or subregion when switching, and shows in the described information display frame that the public affairs in the subregion of user ID place are chatted information, and chats information with the public affairs that cut-off rule is distinguished the subregion of subregion before and after switching.Wherein, subregion is peeped and is not changed user ID place subregion, switches user ID place subregion when subregion switches.
It is public merely the time to peep under the state user, and acquiescence is launched chat content, and scroll bar is locked in below; If the local area chat message has renewal when peeping, display reminding sign on the local area chat message icon.Launch after clicking, chat content is locked in last column.
See also Fig. 6, Fig. 6 is the structural representation of instant messaging control device one embodiment of the present invention.
Described instant messaging control device comprises:
Interface module 11 is used for display control interface, and wherein, described control interface comprises input frame and chat mode switch button at least;
Acquisition of information module 12 is used for obtaining the information of inputting in the described input frame when the information that receives sends instruction;
Judge module 13 is used for judging current chat pattern, and wherein, described chat pattern comprises public merely pattern and private chat pattern;
Information sending module 14 if the chat pattern is public merely pattern, then sends public merely information according to the information of inputting in the described input frame to server request; If the chat pattern is the private chat pattern, then send private chat information according to the information of inputting in the described input frame to server request;
Mode switch module 15 is used for switching described chat pattern when described chat mode switch button is triggered.
Wherein, described control interface is preferably adopted without the window control and is realized, the control interface that goes out to represent according to the real-time dynamic drafting of user's content of operation.In one embodiment, after corresponding instant messaging scene loaded, for example described control interface was drawn in the video capture Room at the edge of described instant messaging scene.
Described control interface comprises input frame and chat mode switch button at least, also can further include but not limited in the following various element one or more:
Information display frame, userspersonal information's control, present list control, application center control, notification icon and volume control control and expansion button etc.
Described chat mode switch button can adopt various control knob set-up mode.In one embodiment, described chat mode switch button comprises public merely button and private chat button; When described public affairs are chatted button when clicked, described chat pattern is switched to public merely pattern; When described private chat button is clicked, described chat pattern is switched to the private chat pattern.
In one embodiment, described judge module 13 judges that the method for current chat pattern is: read the state of default zone bit, judge the chat pattern according to the state of described zone bit; When described chat mode switch button is triggered, switch the state of described zone bit.
Described zone bit is the data bit that records active user's chat pattern (private chat or merely public) that internal system arranges, and it comprises two states, and corresponding described public affairs are chatted pattern and described private chat pattern respectively; When the user triggers described chat mode switch button switching chat pattern, change simultaneously the state of described zone bit.When the user clicks transmission message, then read the state of described zone bit, judge current chat pattern.
In one embodiment, when described information sending module 14 sends public merely information to server request, the public affairs of described input frame input are chatted information, and the public affairs at user ID place are chatted channel and are sent to server; Server is chatted channel according to described public affairs and is obtained and add each user ID and the corresponding IP address thereof that described public affairs are chatted channel, and described public affairs are chatted information is sent to each described IP address.
Each subscriber equipment corresponding to described IP address receives that described public affairs are chatted after the information and shows that in this locality described public affairs chat information, therefore, adds public merely each user of channel and can both see that described public affairs chat information.
When described information sending module 14 sent private chat information to server request, with the private chat information of described input frame input, and the user ID of private chat object was sent to server; The IP address that server is searched described private chat object according to the user ID of described private chat object, and described private chat information is sent to described IP address.
Subscriber equipment corresponding to described IP address shows that in this locality only have user corresponding to described IP address to see described private chat information, other users can't see this private chat information after receiving described private chat information.
Described mode switch module 15 is triggered in described chat mode switch button, carries out the switching of chat pattern, therefore can realize the public and private easily and fast switching of chatting.
In one embodiment, described interface module 11 is further monitored the operation information of input equipment, judges according to the operation information of input equipment whether described input frame is selected; If described input frame is not selected, then in described input frame, show chat mode annunciations information; If described input frame is selected, then do not show described chat mode annunciations information.
The selected clicked or described input frame of described input frame that comprises of described input frame has literal to input, or editor's cursor is sitting in the described input frame.The chat mode annunciations information that shows in the described input frame can be " being public merely pattern now ", perhaps " being the private chat pattern now " etc., the chat pattern that reminding user is current.
In one embodiment, described control interface can further comprise expression interpolation control, in described input frame, show an expression interpolation symbol, when described expression interpolation symbol is clicked, open described expression and add control, the expression of user selection is added in the input message of described input frame.
See also Fig. 7, Fig. 7 is the structural representation of another embodiment of instant messaging control device of the present invention.
The key distinction in present embodiment is: described control interface further comprises the information display frame;
Described instant messaging control device further comprises information display module 16, if the chat pattern is public merely pattern, shows in described information display frame that then the public affairs of user ID place channel are chatted information; If the chat pattern is the private chat pattern, then in described information display frame, show the private chat information of user ID and private chat object.
The public affairs that receive and preserve user ID place channel are chatted information, and when switching to public merely pattern, the described public affairs of demonstration are chatted information in described information display frame; Receive and preserve the private chat information of user ID and private chat object, when switching to the private chat pattern, in described information display frame, show described private chat information.
In one embodiment, if the chat pattern is the private chat pattern, then further obtain all private chat objects of described user ID, and in described information display frame, show the private chat list object, when the private chat object in the described private chat list object is selected, in described information display frame, show the private chat information of user ID and described private chat object.
Simultaneously, if described information display frame comprises scroll bar, then when showing described private chat information, described scroll bar is positioned to described information display frame below.
In one embodiment, described information display frame is hidden when not using or is closed, and opens in use.
In one embodiment, described instant messaging control device further comprises one or more in the following submodule:
The personal information control module shows user's head portrait in described control interface, when described user's head portrait is clicked, open default userspersonal information's control;
Present list control module shows present tabulation icon in described control interface, when described present tabulation icon is clicked, open default present list control;
Application center control module, display application central icon in described control interface when described application central icon is clicked, is describedly opened default application center control;
Notification module, display notification icon in described control interface when described notification icon is clicked, is opened described information display frame, and in described information indicating frame the display system announcement information;
Volume control module shows volume control icon in described control interface, when described volume control icon is clicked, open default volume control control.
Further, at the described control interface portion interface content of hiding, and show the expansion button, when described expansion button is clicked, launch the part interface content of hiding.Also can launch or hiding described part interface content by the position control of monitoring mouse in addition, for example mouse leaves the time at described control interface above Preset Time, after 5 seconds, the part interface content of hiding, when mouse is clicked described control interface regional, launch the part interface content of hiding.
In one embodiment, when having detected notifications information, further display notification property frame above described notification icon, displaying time can be 5 seconds.Be provided with X button on the described content of announcement frame, can click described content of announcement frame is closed.When the user clicks described notification icon, obtain all contents of announcement, and according to after the issuing time ordering, in described information indicating frame, show described content of announcement, and, preferentially show the content of announcement that issuing time is up-to-date.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the above-mentioned embodiment, to come the relevant hardware of instruction to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process such as the respective embodiments described above when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or store-memory body (Random Access Memory, RAM) etc. at random.
Above-described embodiment of the present invention does not consist of the restriction to protection domain of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection domain of the present invention.