A kind of by method, system and the equipment of computer to sending short message by mobile phoneTechnical field
The invention belongs to the communications field, relate in particular to a kind of by method, system and the equipment of computer to sending short message by mobile phone.
Background technology
Traditional short message service all is that the user edits on mobile phone and transmission information, operation inconvenience, and the information content is too simple.By setting-up short message platform on computers, it is more simple and convenient to make the user send multimedia message, note, has also improved the richness that sends content, and by computer client mobile phone being sent message and multimedia message has at present become a more common the Internet value-added service.With common instant messaging (Insant Messager, IM) message sends the same, by computer still is the pattern of " client-server-client " to the flow process of sending short message by mobile phone, but the client of transmit leg is independent message platform or webpage platform normally, and is not corresponding mutual between two kinds of platforms.
The independent message platform is the independent message platform of an independent operating, and it mainly shows as a text picture editor, and the picture, text resource that the user can use local machine be edit messages voluntarily.Client sends to server as a request after user's content edited is encoded, and server is transmitted and client is responsed.The shortcoming of independent message platform is that message content is subjected to the user to use the restriction of ability and local computer resource fully by user oneself editor, and the content of message is abundant inadequately, i.e. the ease for use deficiency.
The webpage platform is the program that operates in the web page browser, because the restriction of web browser, this class client only provides a series of fixing picture texts to select for the user, can't carry out the editing and processing operation, after the user selects short message content, send request to message server by the scripts in web pages program.The patent No. is that the patent of CN200410027874.2, " the website picture being sent to the method for mobile phone " by name promptly provides a kind of webpage platform that passes through to send the method for note to mobile phone, the defective of this method is and can not edits picture message, so the availability deficiency.
In sum, in the process of sending short message by mobile phone, or ease for use deficiency, or availability deficiency are so need a kind of technology can satisfy the requirement of two aspects simultaneously by computer for prior art.
Summary of the invention
The object of the present invention is to provide a kind ofly, be intended to solve the problem of the ease for use deficiency that prior art exists by the independent message platform in the process of sending short message by mobile phone by the method for computer to sending short message by mobile phone.
The present invention also aims to provide a kind of by the system of computer, better to address the above problem to sending short message by mobile phone.
The present invention also aims to provide a kind of by the equipment of computer, better to address the above problem to sending short message by mobile phone.
In order to realize goal of the invention, said method comprising the steps of:
A. in described independent message platform, use web browser to open webpage, in described webpage, choose text or picture resource;
B. described independent message platform downloads to computer with described text or picture resource, and adds in the short message editing module of described independent message platform;
C. at the short message editing module inediting short message content of described independent message platform, described short message content is sent to mobile phone by server.
Described step B further comprises:
B1. described web browser sends the URL address that described text or picture resource link to described independent message platform in described webpage;
B2. described independent message platform downloads to computer according to described URL address with text or picture resource, and adds in the short message editing module of described independent message platform.
Described web browser is based on the web browser of COM;
Web browser is by calling its standard callback interface among the described step B1, and the URL address that described text or picture resource are linked in described webpage sends described independent message platform to.
Described step B1 further comprises:
B11. described web browser will comprise selected text or picture resource uniquely identified Javascript token-passing is given described independent message platform;
B12. described independent message platform parses the unique identification of selected text or picture resource according to the Javascript mark, and converts real URL address to.
The step of described step C inediting short message content comprises: the text or the picture resource that add in the described short message editing module edited, or user's input information voluntarily.
The step that sends to mobile phone among the described step C further comprises the step to a plurality of recipient's mass-sendings:
At computer terminal all recipients are organized into a tabulation, submit the request of message transmission to server to;
Described server is handled described request, and will send whether successful judgement is responded to described computer.
In order to realize goal of the invention better, described system comprises:
The computer of independent message platform is installed, server and mobile phone, be embedded with web browser in the independent message platform of installing in the described computer, be used for choosing the text or the picture resource of webpage, supply described independent message platform to download to computer and add to send after the short message editing module is edited.
Described web browser is based on the web browser of COM.
For realizing goal of the invention better, described equipment comprises:
Described computer is equipped with the independent message platform, be embedded with web browser in the described independent message platform, be used for choosing the text or the picture resource of webpage, supply described independent message platform to download to computer and add to send after the short message editing module is edited.
Described web browser is based on the web browser of COM.
The present invention both can make full use of Internet resources by computer by the function in conjunction with webpage platform and independent message platform in the process of sending short message by mobile phone, can edit short message content again, had improved the availability and the ease for use of note transmitting apparatus.
Description of drawings
Fig. 1 is that the present invention is by the system diagram of computer to sending short message by mobile phone;
Fig. 2 is the equipment structure chart of independent SMS platform in the system of the present invention;
Fig. 3 is by the method flow diagram of computer to sending short message by mobile phone in the one embodiment of the invention;
Fig. 4 is by the method flow diagram of computer to sending short message by mobile phone in the another embodiment of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The present invention is by going into the independent message platform with the webpage platform built-in, from the webpage platform, choose text or picture resource, and download and add in the short message editing module of independent message platform and edit, and then send to mobile phone, compare with simple independent message platform, strengthened by the ease for use of computer in the sending short message by mobile phone process.
Fig. 1 shows the present invention by the system of computer to sending short message by mobile phone, system of the present invention comprisescomputer 100 as transmitting terminal, be used for theserver 200 of forwarding short message and as themobile phone 300 of receiving terminal,independent message platform 101 is installed in computer 100.Independent message platform 101 in thecomputer 100 is used for the text or the picture resource of download network in the present invention, and note is edited and sent;Server 200 receives the note transmission request thatindependent message platform 101 reports, and note is transmitted tomobile phone 300.
Fig. 2 shows the structure ofindependent SMS platform 101 in the system of the present invention.Be embedded withweb browser 1011 in the independent message platform of installing on thecomputer 100 among thepresent invention 101, also comprisedownload module 1012, shortmessage editing module 1013 andtransceiver module 1014.
Web browser 1011 is based on The Component Object Model (Component Object Model, COM) browser, be used for choosing the text or the picture resource of webpage, thisweb browser 1011 has the standard callback interface, (Uniform ResourceLocation, URL) address sendsdownload module 1012 to be used for URL(uniform resource locator) with selected text or picture resource.And about how inindependent message platform 101 embeddedweb browser 1011, the present invention has used for reference the creation method of web browser in the prior art.In the prior art, the IE browser under the Windows system has been realized the com interface (as IWebBrowser2) of some standards, and application program can be by these interface control browser objects; Existing in addition a lot of class libraries (for example CHtmlView among the MFC of Microsoft) have encapsulated operation to browser object (in fact being exactly the operation of com interface that browser is provided), also can create a browser in the window of application program by these auxiliary class libraries.The present invention introduces above method, embeddedweb browser 1011 in independent message platform 101.It is pointed out thatweb browser 1011 is not defined as the browser based on COM, selected text or picture resource are downloaded to shortmessage editing module 1013 as long as can choose text or picture resource and cooperate withdownload module 1012.
Download module 1012 is used for selected text or picture resource are downloaded tocomputer 100, and adds shortmessage editing module 1013 to.In a specific embodiment,download module 1012 realizes that the mechanism of downloading is:download module 1012 receives by the selected text ofweb browser 1011 transmissions or the URL address of picture resource, thereby according to this URL address selected text or picture resource is downloaded to computer 100.Certainly, the present invention is not defined as the URL address that utilizes text or picture resource, gets final product so long as can be used for downloading the unique identification of the text or picture resource.
1013 of short message editing modules are edited selected text or picture, and allow user's input information voluntarily in this module.
1014 of transceiver modules send toserver 200 with the note that edits, and byserver 200 it are forwarded tomobile phone 300.
Fig. 3 shows the method flow that sends note in the one embodiment of the invention bycomputer 100 tomobile phone 300.
In step S301,independent message platform 101 uses opens webpage based on theweb browser 1011 of COM, chooses text or picture resource in the webpage.Thisindependent message platform 101 is that a note on thecomputer 100 sends instrument, or has the JICQ of message sending function.Theweb browser 1011 of COM form has the callback interface OnBeforeNavigate2 of a standard.In this step, choose text or picture resource in the webpage, also promptly opened a link.
In step S302,web browser 1011 calls its callback interface, and the URL address of the link of being opened is sent in thedownload module 1012 of independent message platform 101.The feature field that comprises the sign text or picture in this URL address, thenindependent message platform 101 just can be distinguished user-selected different resource of getting according to this URL address.
In step S303, thedownload module 1012 in theindependent message platform 101 downloads tocomputer 100 by the URL address that obtains with picture, and adds in the shortmessage editing module 1013 ofindependent message platform 101.
In step S304, in shortmessage editing module 1013, will send behind the short message content editor.In this step the editor of short message content is comprised editor to selected text, picture resource, and user's input information voluntarily.About sending, the present invention supports to mass-send function, and supports whether each recipient is sent successful judgement.Concrete way is as follows: import a plurality of recipients in client, and all recipients are organized as a tabulation; In client the recipient is pressed some, send the request that message sends to server 200 in batches; 200 pairs of message send request of server are handled, and whether feedback send successful judgement,server 200 handle a collection of after, continue again to handle the next group request, thereby reach the function that colony sends.About the mass-sending of note, can use for reference the method that realizes mass-sending in the prior art among the present invention.
Fig. 4 shows the method flow that sends note in the another embodiment of the present invention bycomputer 100 tomobile phone 300.
In step S401,independent message platform 101 uses opens webpage based on theweb browser 1011 of COM, chooses text or picture resource in the webpage.Step S301 among this step and Fig. 3 is similar, and thisindependent message platform 101 is that a note on thecomputer 100 sends instrument, or has the JICQ of message sending function.Theweb browser 1011 of COM form has the callback interface OnBeforeNavigate2 of a standard.In this step, choose text or picture resource in the webpage, also promptly opened a link.
In step S402,web browser 1011 arrives the Javascript token-passing of the URL address of opening link thedownload module 1012 of independent message platform 101.With the step S302 contrast among Fig. 3, the URL address of the link of opening is that expressly the resource of picture servers is stolen easily behind text among the step S302 in the webpage clicking or the picture resource.Therefore, web browser is a java script (Javascript) mark with the URL address process of opening link among the present invention, i.e. #"0057">In step S403, after thedownload module 1012 ofindependent message platform 101 obtains the Javascript mark, parse msgID, by with the common agreement of picture servers, msgID is converted to real file address on picture servers.Step S402 among this embodiment and step S403 can reach and the same effect of step S302 among Fig. 3; the URL address of selected text or picture is sent in thedownload module 1012 ofindependent message platform 101; but by contrast; this embodiment with the URL address hiding in Javascript mark; form with ciphertext transmits betweenweb browser 1011 andindependent message platform 101; therefore can to protect resource on the picture servers to be difficult for stolen for this way, strengthened the fail safe of Internet resources.
In step S404,independent message platform 101 downloads tocomputer 100 according to the authentic document address that is converted to text or picture resource, and adds the shortmessage editing module 1013 in theindependent message platform 101 to.
In step S405, short message content is edited, and sent.In this step the editor of short message content is comprised editor to selected text, picture resource, and user's input information voluntarily.About sending, the present invention supports to mass-send function, and supports whether each recipient is sent successful judgement, and concrete way can be used for reference the method that realizes mass-sending in the prior art.
Method, system and equipment that the present invention is disclosed, be mainly used in by computer at present to sending short message by mobile phone, but range of application of the present invention can not be defined as between above two kinds of particular terminal, also can be applicable to the other types communication between terminals predictably.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.