Summary of the invention
The object of the present invention is to provide a kind of method and system realizing input in Chinese in the virtual machine of mobile terminal, thus solve the foregoing problems existed in prior art.
To achieve these goals, the technical solution used in the present invention is as follows:
In the virtual machine of mobile terminal, realize a method for input in Chinese, comprise the steps:
S1, the text box in mobile end system obtains the Chinese text of the dummy keyboard input of described mobile end system;
S2, described Chinese text is sent to the Vue Tools plug-in unit in dummy machine system by described text box;
S3, described Chinese text is sent to and is apparent in the document of described dummy machine system by described Vue Tools plug-in unit.
Further, before step S1, also comprise, text box is set in mobile end system.
Preferably, described text box is in hidden state.
Further, before step S2, also comprise, Vue Tools plug-in unit is set in dummy machine system.
Particularly, in step S3, describedly described Chinese text be sent to and be apparent in the document of described dummy machine system, being specially, described Chinese text be sent to and be apparent in the position of the document cursor flashes of described dummy machine system.
More specifically, step S3 specifically comprises the steps:
S301, described Vue Tools plug-in unit judges whether the cursor in described document glimmers, if described cursor does not glimmer, then terminates; If described cursor flashes, then perform step S302;
S302, described Vue Tools plug-in unit obtains the position of described cursor flashes, and is sent to by described Chinese text and is apparent in the position of described cursor flashes.
In the virtual machine of mobile terminal, realize a system for input in Chinese, comprising:
Mobile end system and dummy machine system; Be provided with text box in described mobile end system, in described dummy machine system, be provided with Vue Tools plug-in unit;
Described text box is for obtaining the Chinese text of the dummy keyboard input of described mobile end system; Also for described Chinese text being sent to the Vue Tools plug-in unit in dummy machine system;
Described Vue Tools plug-in unit is used for being sent to by described Chinese text and being apparent in described dummy machine system.
Preferably, described text box is in hidden state.
Particularly, described Vue Tools plug-in unit is used for described Chinese text to be sent to described dummy machine system, is specially, and described Vue Tools plug-in unit is used for the position of the document cursor flashes described Chinese text being sent to described dummy machine system.
More specifically, described Vue Tools plug-in unit is used for described Chinese text to be sent to and is apparent in the position of the document cursor flashes in dummy machine system, specifically comprises:
Described Vue Tools plug-in unit is for judging whether the cursor in described document glimmers;
Described Chinese text also for obtaining the position of described cursor flashes, and is sent to and is apparent in the position of described cursor flashes by described Vue Tools plug-in unit.
The invention has the beneficial effects as follows: the present invention by arranging text box in mobile end system, text box is utilized to obtain the Chinese text of the dummy keyboard input of mobile end system, and this Chinese text being sent in the Vue Tools plug-in unit in dummy machine system, Chinese text is sent in the document in dummy machine system by Vue Tools plug-in unit again.Thus got the Chinese text of the dummy keyboard input using mobile terminal, and this Chinese text is sent in the document in virtual machine desktop cloud system, achieve the communication between mobile end system and virtual machine desktop cloud system, in the virtual machine of mobile terminal, achieve input in Chinese.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with accompanying drawing, the present invention is further elaborated.Should be appreciated that embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Imagine such scene, user creates a notepad documents in virtual machine, open this document, input cursor is in flicker, button click recalls the dummy keyboard of mobile terminal, under being switched to input in Chinese state, input Chinese text, demonstrates the Chinese text of input simultaneously in the notepad documents of virtual machine.
In the prior art, because the system of mobile terminal is different with the system of virtual machine, and do not set up communication port between two systems, cannot directly communicate, so use prior art, it is the operation that cannot realize above-mentioned scene, in order to realize the operation of above-mentioned scene, in the virtual machine of mobile terminal, realize input in Chinese, as shown in Figure 1, embodiments provide a kind of method realizing input in Chinese in the virtual machine of mobile terminal, comprise the steps:
S1, the text box in mobile end system obtains the Chinese text of the dummy keyboard input of described mobile end system;
S2, described Chinese text is sent to the Vue Tools plug-in unit in dummy machine system by described text box;
S3, described Chinese text is sent to and is apparent in the document in dummy machine system by described Vue Tools plug-in unit.
Wherein, refer to a kind of removable, sizable word or graphical container at Word Chinese version frame, input and the editor of word or figure can be carried out in text box.As one of ordinary skill will be appreciated, when using smart mobile phone, certain contact person is found in cell phone address book, click the search box of top, recall keyboard, input Chinese, often inputting a Kanji search frame will show, then put [confirmation] button in beating keyboard, just can find the information of contact person.In the embodiment of the present invention, just employ search box to obtain the text of mobile terminal dummy keyboard input.
As one of ordinary skill will be appreciated, any keyboard is all made up of 26 letters, numeral and some symbols, so, under input in Chinese state, how the letter of input can be become Chinese character, this is because inside also exists a kind of encoding software, such as search dog, QQ input method software etc.Utilize these encoding softwares that the phonetic etc. that dummy keyboard inputs is encoded to Chinese character, thus get Chinese text in the search box.
Search box is the one in text box, in the embodiment of the present invention, any one text box comprising search box can be used to obtain Chinese text, because this Chinese text is by using the dummy keyboard of mobile terminal to input, obtaining so this Chinese text can only be moved end system.
Be sent in order to the Chinese text that mobile end system is got and be apparent in the document of dummy machine system, in the embodiment of the present invention, employing Vue Tools plug-in unit.Vue tools plug-in unit is a plug-in unit in PC system.As one of ordinary skill will be appreciated, the systems such as Windows are all increased income, and software developer can develop on these systems, and Vue tools plug-in unit develops in the systems such as Windows.Vue Tools plug-in unit is the interface channel that virtual machine and peripheral hardware operate, for realize virtual machine and peripheral hardware operate between communication.Such as use hand rolling mouse, the cursor on the virtual machine desktop of mobile terminal moves along with the movement of finger, and this event is realized by Vue tools plug-in unit.In the communication event that virtual machine and peripheral hardware operate, peripheral hardware operational order can be sent in Vue tools plug-in unit, after Vue tools plug-in unit receives the instruction of peripheral hardware operation, can instruction be passed in dummy machine system, after dummy machine system receives peripheral hardware operational order, just perform corresponding operation, namely establish the communication between peripheral hardware operation and dummy machine system by Vue tools plug-in unit, enable dummy machine system perform peripheral hardware operational order.In embodiments of the present invention, when need to utilize input Chinese text in the document of the dummy keyboard of mobile terminal at dummy machine system time, first need to utilize text box to get the Chinese text of mobile terminal dummy keyboard input, the communication between dummy machine system and mobile end system is set up by Vue tools plug-in unit, the Chinese text got is sent in the Vue tools plug-in unit of dummy machine system by the text box of mobile terminal, and this Chinese text is sent to and is apparent in the document of dummy machine system by Vue tools plug-in unit.
By adopting technique scheme, get the Chinese text of the dummy keyboard input using mobile terminal, and this Chinese text is sent in the document in virtual machine desktop cloud system, achieve the communication between mobile end system and virtual machine desktop cloud system, in the virtual machine of mobile terminal, achieve input in Chinese.Meanwhile, the method realizing input in Chinese in the virtual machine of mobile terminal that the embodiment of the present invention provides, simple, stability is high.
In the embodiment of the present invention, before step S1, also comprise, text box is set in mobile end system.And described text box is in hidden state.Make user cannot see text frame on interface, but in the process that reality realizes, text frame is but working always, for obtaining the Chinese text of the dummy keyboard input of described mobile terminal, also for described Chinese text being sent to the Vue Tools plug-in unit in dummy machine system.
In the embodiment of the present invention, text box is arranged at hidden state, the appearance of text box can be avoided to user to bring the concept obscured.As one of ordinary skill will be appreciated, if text box is in the state of display, in the document then shown on virtual machine desktop, also there is a text box, when using input through keyboard Chinese text, Chinese text both occurred in text box, also occur in document simultaneously, like this, user will be made to be puzzled, because the object of user is edited the document in virtual machine, and do not need text box, do not know why there will be text box yet, if so text box is arranged at hidden state, just can avoid bringing puzzlement to user, in the document of virtual machine, carry out text input and editor can not be affected simultaneously.
In the embodiment of the present invention, before step S2, also comprise, Vue Tools plug-in unit is set in dummy machine system.Utilize Vue Tools plug-in unit to set up the communication port between virtual machine and mobile terminal, realize the communication between virtual machine and mobile terminal.
In the embodiment of the present invention, in step S3, describedly described Chinese text be sent to and be apparent in the document in dummy machine system, being specially, described Chinese text be sent to and be apparent in the position of the document cursor flashes in dummy machine system.
As will be understood by the skilled person in the art, dummy machine system is mostly Windows system, also has minority to be Liunx system, when carrying out Text Input or editor in the document of Windows system, generally have cursor flashes, text can show in the position of cursor flashes.In embodiments of the present invention, the function of Vue Tools plug-in unit is whether the cursor judged in document glimmers, and user is presented to the cursor flashes position of desktop cloud system document by the Chinese text that the dummy keyboard of mobile end system inputs.
Above-mentionedly described Chinese text be sent to and be apparent in the position of the document cursor flashes in dummy machine system, specifically comprising the steps:
S301, described Vue Tools plug-in unit judges whether the cursor in described document glimmers, if described cursor does not glimmer, then terminates; If described cursor flashes, then perform step S302;
S302, described Vue Tools plug-in unit obtains the position of described cursor flashes, and described Chinese text is sent to the position of described cursor flashes, and described Chinese text is apparent in the position of described cursor flashes.
Vue Tools is a little plug-in unit in PC system, is the exploitation that software developer makes in Windows system, identical with 360 security guards.As one of ordinary skill will be appreciated, 360 security guard's softwares can detect in system have been installed and which software can have been uninstalled for which software, equally, Vue Tools can detect in system documentation whether have cursor flashes, and whether text is put into the position of cursor flashes.
As shown in Figure 2, embodiments provide a kind of system realizing input in Chinese in the virtual machine of mobile terminal, comprising:
Mobile end system and dummy machine system; Be provided with text box in described mobile end system, in described dummy machine system, be provided with Vue Tools plug-in unit;
Described text box is for obtaining the Chinese text of the dummy keyboard input of described mobile end system; Also for described Chinese text being sent to the Vue Tools plug-in unit in dummy machine system;
Described Vue Tools plug-in unit is used for being sent to by described Chinese text and being apparent in described dummy machine system.
The system realizing input in Chinese in the virtual machine of mobile terminal that the embodiment of the present invention provides, mobile end system can be ios system, also can be Android system, not restriction, and the mobile end system platform be suitable for is extensive; Meanwhile, dummy machine system does not also limit, and any virtual desktop cloud all can realize, and therefore, the system suitability that the embodiment of the present invention provides is extensive, has highly application value.
Wherein, described text box is in hidden state.Like this, make user cannot see text frame on interface, but in the process of reality realization, text frame is but working always, for obtaining the Chinese text of the dummy keyboard input of described mobile terminal, also for described Chinese text being sent to the Vue Tools plug-in unit in dummy machine system.Text box is arranged at hidden state, the appearance of text box can be avoided to user to bring the concept obscured.
As one of ordinary skill will be appreciated, if text box is in the state of display, in the document then shown on virtual machine desktop, also there is a text box, when using input through keyboard Chinese text, Chinese text both occurred in text box, also occur in document simultaneously, like this, user will be made to be puzzled, because the object of user is edited the document in virtual machine, and do not need text box, do not know why there will be text box yet, if so text box is arranged at hidden state, just can avoid bringing puzzlement to user, in the document of virtual machine, carry out text input and editor can not be affected simultaneously.
In the embodiment of the present invention, described Vue Tools plug-in unit is used for being sent to by described Chinese text and being apparent in the document in dummy machine system, be specially, described Vue Tools plug-in unit is used for described Chinese text to be sent to and is apparent in the position of the document cursor flashes in dummy machine system.
Further, described Vue Tools plug-in unit is used for described Chinese text to be sent to and is apparent in the position of the document cursor flashes in dummy machine system, specifically comprises:
Described Vue Tools plug-in unit is for judging whether the cursor in described document glimmers;
Described Chinese text also for obtaining the position of described cursor flashes, and is sent to the position of described cursor flashes by described Vue Tools plug-in unit, and described Chinese text is apparent in the position of described cursor flashes.
As will be understood by the skilled person in the art, dummy machine system is mostly Windows system, also has minority to be Liunx system, when carrying out Text Input or editor in the document of Windows system, generally have cursor flashes, text can show in the position of cursor flashes.In embodiments of the present invention, Vue tools plug-in unit is a plug-in unit in PC system.Vue Tools plug-in unit is the interface channel that virtual machine and peripheral hardware operate, for realize virtual machine and peripheral hardware operate between communication.The function of Vue Tools plug-in unit is whether the cursor judged in document glimmers, and user is presented to the cursor flashes position of desktop cloud system document by the Chinese text that the dummy keyboard of mobile end system inputs.
By adopting technique scheme disclosed by the invention, obtain effect useful as follows: the present invention by arranging text box in mobile end system, text box is utilized to obtain the Chinese text of the dummy keyboard input of mobile end system, and this Chinese text being sent in the Vue Tools plug-in unit in dummy machine system, Chinese text is sent in the document in dummy machine system by Vue Tools plug-in unit again.Thus got the Chinese text of the dummy keyboard input using mobile terminal, and this Chinese text is sent in the document in virtual machine desktop cloud system, achieve the communication between mobile end system and virtual machine desktop cloud system, in the virtual machine of mobile terminal, achieve input in Chinese.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art it should be understood that the sequential of the method step that above-described embodiment provides can carry out accommodation according to actual conditions, also can carry out according to actual conditions are concurrent.
The hardware that all or part of step in the method that above-described embodiment relates to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, such as: personal computer, server, the network equipment, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, such as: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, commodity or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, commodity or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment comprising described key element and also there is other identical element.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.