CN106970717A - The method and apparatus of server text information input - Google Patents
The method and apparatus of server text information input Download PDFInfo
- Publication number
- CN106970717A CN106970717A CN201710181561.XA CN201710181561A CN106970717A CN 106970717 A CN106970717 A CN 106970717A CN 201710181561 A CN201710181561 A CN 201710181561A CN 106970717 A CN106970717 A CN 106970717A
- Authority
- CN
- China
- Prior art keywords
- input
- server
- text message
- view
- application
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04886—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The method and apparatus for the server text information input that the present invention is provided, whether the application on monitoring server asks to input text message, if application request inputs text message, the application that the input information from client is imported into request input text message is in the view of focus condition.Methods described and device, under the pattern of client-server, can accurately judge whether client inputs the particular location of text message input on text message and server to server very much.The realization of methods described and device consumes the more software of hardware resource independent of image recognition software etc., ensure that the normal operation of server.
Description
Technical field
The present invention relates to the method and apparatus of server text information input.
Background technology
With the development of cloud, the pattern of client-server is more and more universal.User is logged in by client and taken
Business device, the application (application refers to software or the program run in certain operating system) that user needs is transported on the server
OK, the data produced using operation are also completely or partially stored on the server.Although client also tends to be to have independent behaviour
Make the electronic equipment of system, such as personal computer, the mobile terminal, but in the Client of client-server
Effect may be only to input information to server and receive data from server.In the information of user end to server input,
Text message is a most common category information.Text message includes word, numeral, symbol (such as punctuation mark, mathematics meets)
It can judge whether the input of text message is correct by reading Deng, user.It is the hardware device of client, such as keyboard, hand-written
Plate, touch screen etc., can be used for inputting text message.But the effect of above-mentioned hardware device is not limited to input text message, such as one
Some keys on keyboard are set to key swift to operate by a little Games Softwares supports, and user taps these keys and do not represent input text envelope
Breath, but specifically operated in gaming.
Under client-server pattern, when the hardware device of client is to server input text message, Ke Nengcun
In some problems.For example, server can not accurately judge client input whether be text message, by text message input make
For non-textual information input processing;What server knew client input is text message, but does not know that client needs input
The particular location of text message.It can be solved the above problems using image recognition technology, if found on the interface of server
Input frame or similar view, then it is assumed that client input is text message, the text message from client are imported defeated
Enter frame or similar view.But the accuracy of current image recognition technology has much room for improvement, and wrong identification often occurs, runs in addition
Image recognition software is likely to drag the speed of service of slow server, and influence user is used the normal of server.How more added with
What is imitated solves the above problems, and there is not been reported.
In specification " background technology " part disclosure, contribute to skilled artisan understands that the technology of the present invention
Scheme, but should not think that these contents necessarily belong to prior art or common knowledge accordingly.
The content of the invention
In order to overcome the defect of " background technology " part reflection, the present invention provide the input of server text information method and
Device.
The method of server text information input, including:
Whether the application on monitoring server asks to input text message;
If application request inputs text message, the input information from client is imported into request input text message
Application be in focus condition view.
Further, described method also includes:If application request inputs text message, server notifies client
It is switched to text input state.
Further, described method also includes:If the view in focus condition changes, new focus view
It is the view for not receiving text message, server notifies client to be switched to non-textual input state.
Further, described method also includes:If the view in focus condition changes, new focus view
Text message is still received, server notifies the coordinate of the new focus view of client.
Further, the operating system of described server is Android system, and whether the application asks to input text envelope
Breath from InputMethodManagerService obtain, the application be in focus condition view from
InputMethodManager is obtained.
Further, described application request input text message, including application request open server OS
The hardware input equipment receive information of virtual input device or application request from server.
Further, described virtual input device is dummy keyboard.
The device of server text information input, including input module, described input module are used to monitor server
Application whether ask to input text message, be additionally operable to the input information from client importing request and input text message
Using the view in focus condition.
Because the device that server text information is inputted is inputted for implementing the server text information of the foregoing description
Method, some descriptions of the device of server text information input are omitted.Those skilled in the art pass through control, energy
It is enough to have clear, complete understanding to the device that server text information is inputted.
In technical solution of the present invention, the word such as " comprising ", " being used for " should understand according to open language mode.This area skill
Art personnel are no longer gone to live in the household of one's in-laws on getting married by reading this specification and combining the content that prior art or common knowledge can be known in this specification
State.
The method and apparatus for the server text information input that the present invention is provided, under the pattern of client-server,
It can accurately judge very much whether client inputs the tool of text message input on text message and server to server
Body position.The realization of methods described and device consumes the more software of hardware resource, Neng Goubao independent of image recognition software etc.
Demonstrate,prove the normal operation of server.
Brief description of the drawings
Fig. 1 is the flow chart of the method for server text information input in embodiment.
Fig. 2 be view in Android system in embodiment, WindowManagerService,
InputMethodManager, InputMethodManagerService and the relation schematic diagram of input method application.
Embodiment
Embodiments of the present invention are further illustrated below.It should be noted that the scope of the present invention is not
It is confined to described concrete technical scheme.Any technology essential factor in described concrete technical scheme is carried out identical or waited
The technical scheme obtained with replacement or those skilled in the art are on the basis of described concrete technical scheme without creation
Property the technical scheme that is obtained with of work, should all be contemplated as falling within protection scope of the present invention.
With the development of cloud, the pattern of client-server is more and more universal.Usual client and server is all
It is the electronic equipment with operating system, but both effects are entirely different.The application that user's needs are provided with server (should
With the software or program for referring to run in certain operating system), using running on the server, using the number of operation generation
According to also all or part of storage on the server, and the effect of client may be only to input information and from service to server
Device receives data.Generally, client and server is by network connection, and both actual ranges may be very remote.User exists
Client directly can not input text message using the hardware device of server such as keyboard, handwriting pad, touch screen, can only utilize
The hardware device input text message of client, the problem of this can cause " background technology " part described produces.
Current mainstream operation system, such as Windows, Mac, IOS, Linux and the derivative behaviour on the basis of Linux
Make system such as Android etc., all support the function of virtual input device.Most common virtual input device be dummy keyboard (
Referred to as soft keyboard), dummy keyboard is not real keyboard, simply runs a software in an operating system, but click on virtual
The input effect of keyboard and percussion physical keyboard is identical.In addition, mainstream operation system also all supports window-functions, using with
Often adhere to multiple views (View) on the form operation of window (Window), each window, view is visible to user.
On the basis of techniques discussed above, in order to solve the problem of " background technology " part is described, the present invention is provided
The method of server text information input.The flow chart of the method for server text information input is as shown in Fig. 2 including following step
Suddenly.
S101:Whether the application on monitoring server asks to input text message.
Using in the process of running, text message is inputted if necessary to user, request can be sent to operating system.Common
Request method has two kinds, and a kind of is to ask the virtual input devices such as the dummy keyboard of opening operation system, and one kind is asked from clothes
The hardware input equipment receive information of business device.Whether the application that can be monitored using this mechanism on server asks to input text
Information.If application request inputs text message, it is believed that what client was subsequently inputted will be text message.
S102:If application request inputs text message, the input information from client is imported into request input text
The application of this information is in the view of focus condition.
If application request inputs text message, show that the application wishes that user inputs text message to it.Text envelope
Where is the specific input of breath, then consider which view of application widget is in focus (focus) state.View is in focus shape
State, it is meant that the operation that view correspondence user is carrying out or will carried out, the view in focus condition should be desirable
Input the view of text message.The application that input information from client is imported into request input text message is in focus shape
The view of state.Specific introduction method, can repeat the input operation of client on the dummy keyboard of server OS,
(software or program that input method function is performed i.e. in operating system) is applied by text message using the input method in operating system
View of the input in focus condition;The input information from client can also be directly parsed, by corresponding to input information
Text message is copied directly to the view in focus condition.
Step S102 is further illustrated below by a specific operating system.The operating system of server is Android
(Android) some important informations and function of Android system are responsible in system, system service (Service), in Android system
Played an important role in system.Other application can start service, can bind service by IPC mechanism and interact.
The situation of change of the WindowManagerService administration views of Android system, if window change or
Some view is clicked, and WindowManagerService can find corresponding view and be set to focus condition, is led to simultaneously
Know that the view is currently in focus condition.WindowManagerService be also notified that before in focus condition view its
Lose focus condition.Obviously, the operation that the view correspondence user in focus condition is carrying out or will carried out.
All the class including an entitled InputMethodManager (can for the application with display interface in Android system
A module to be considered as in application), the InputMethodManagerService of Android system is managed collectively each application
InputMethodManager.Some view in certain application is notified to be in or lose Jiao by WindowManagerService
Dotted state, the view is notified that the InputMethodManager of the application.If some view is in focus condition and this is regarded
Figure needs to input text message, then by the InputMethodManager of the application to
InputMethodManagerService sends request, and InputMethodManagerService can be controlled in Android system
Input method application beat opening/closing dummy keyboard or from the hardware devices such as keyboard receive input information.
WindowManagerService in Android system, InputMethodManager,
InputMethodManagerService, view and input method application relation are as shown in Fig. 2 the line in figure represents communication
Relation.Whether the application of some in Android system asks input text message to be obtained from InputMethodManagerService
Take, the view of the application in focus condition can be obtained from the InputMethodManager of the application, and the application is in
The specific coordinate of the view of focus condition can be obtained directly from view.Can be correctly by from visitor using above-mentioned acquisition result
The input information at family end imports view of the application in focus condition of request input text message.
In some cases, the hardware device of client be provided with text input and non-textual input two states, it is necessary to
Switched over according to the notice of server, the method for now server text information input increases corresponding informing function.If
There is application request to input text message, show that server notifies client to be switched to text using user's input text message is wished
This input state.If the view in focus condition changes, new focus view is the view for not receiving text message,
Server notifies client to be switched to non-textual input state.In addition, if the view in focus condition changes, new
Focus view still receives text message, and some clients are set based on itself needs the coordinate of new focus view, then server
Notify the coordinate of the new focus view of client.In Android system, new focus view does not pass through application
InputMethodManager sends request to InputMethodManagerService, can be considered as new focus view
The view of text message is not received.
Corresponding program is write in the server, it is possible to implement the method for above-described server text information input,
Software including said procedure can be considered as the device of server text information input.The device of server text information input
Substantially computer software, its be achieved in that the description of method each step inputted according to server text information set up with
The corresponding program module of each step, forms the program module framework based on computer program.Server text information is inputted
Device be not the main entity apparatus realized by hardware mode.The core of the device of server text information input is input
Module, input module is used for two committed steps of the method that execute server text message is inputted, that is, monitors on server
Using whether ask input text message and by from client input information import request input text message application
View in focus condition.
The method and apparatus of server text information input, can be very accurate under the pattern of client-server
Judge whether client inputs the particular location of text message input on text message and server to server.The side
The realization of method and device consumes the more software of hardware resource independent of image recognition software etc., ensure that the normal of server
Operation, will not cause the speed of service of server influences Consumer's Experience slowly excessively.
Those skilled in the art can construct its other party completely on the basis of concrete technical scheme described above
Case.It is numerous to list herein.
Claims (8)
1. the method for server text information input, it is characterised in that described method includes:
Whether the application on monitoring server asks to input text message;
If application request inputs text message, the input information from client is imported into answering for request input text message
With the view in focus condition.
2. according to the method described in claim 1, it is characterised in that described method also includes:If application request input
Text message, server notifies client to be switched to text input state.
3. according to the method described in claim 1, it is characterised in that described method also includes:If in focus condition
View changes, and new focus view is the view for not receiving text message, and server notifies client to be switched to non-textual
Input state.
4. according to the method described in claim 1, it is characterised in that described method also includes:If in focus condition
View changes, and new focus view still receives text message, and server notifies the coordinate of the new focus view of client.
5. according to the method described in claim 1, it is characterised in that the operating system of described server is Android system, institute
State using whether asking input text message to be obtained from InputMethodManagerService, the application is in focus shape
The view of state is obtained from InputMethodManager.
6. according to the method described in claim 1, it is characterised in that described application request input text message, including application
The virtual input device or application request that server OS is opened in request receive letter from the hardware input equipment of server
Breath.
7. method according to claim 6, it is characterised in that described virtual input device is dummy keyboard.
8. the device of server text information input, it is characterised in that described device includes input module, described input mould
Whether the application that block is used to monitor on server asks to input text message, is additionally operable to import the input information from client
The application of request input text message is in the view of focus condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710181561.XA CN106970717A (en) | 2017-03-24 | 2017-03-24 | The method and apparatus of server text information input |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710181561.XA CN106970717A (en) | 2017-03-24 | 2017-03-24 | The method and apparatus of server text information input |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106970717A true CN106970717A (en) | 2017-07-21 |
Family
ID=59329809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710181561.XA Pending CN106970717A (en) | 2017-03-24 | 2017-03-24 | The method and apparatus of server text information input |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106970717A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101911064A (en) * | 2007-12-31 | 2010-12-08 | 摩托罗拉公司 | Methods and apparatus for implementing distributed multi-modal applications |
CN102685196A (en) * | 2010-12-22 | 2012-09-19 | 北京华夏未来信息技术有限公司 | Method and virtual application system for improving user experience in virtual application environment |
CN102804181A (en) * | 2009-10-28 | 2012-11-28 | 谷歌公司 | Navigation queries |
CN103369385A (en) * | 2012-03-29 | 2013-10-23 | 东方有线网络有限公司 | Method for displaying set-top box program information and controlling set-top box based on intelligent terminal |
JP2014092991A (en) * | 2012-11-05 | 2014-05-19 | Sony Computer Entertainment Inc | Information processing device and input device |
CN103902057A (en) * | 2014-03-31 | 2014-07-02 | 北京搜狗科技发展有限公司 | Webpage input method and device for mobile terminal device |
-
2017
- 2017-03-24 CN CN201710181561.XA patent/CN106970717A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101911064A (en) * | 2007-12-31 | 2010-12-08 | 摩托罗拉公司 | Methods and apparatus for implementing distributed multi-modal applications |
CN102804181A (en) * | 2009-10-28 | 2012-11-28 | 谷歌公司 | Navigation queries |
CN102685196A (en) * | 2010-12-22 | 2012-09-19 | 北京华夏未来信息技术有限公司 | Method and virtual application system for improving user experience in virtual application environment |
CN103369385A (en) * | 2012-03-29 | 2013-10-23 | 东方有线网络有限公司 | Method for displaying set-top box program information and controlling set-top box based on intelligent terminal |
JP2014092991A (en) * | 2012-11-05 | 2014-05-19 | Sony Computer Entertainment Inc | Information processing device and input device |
CN103902057A (en) * | 2014-03-31 | 2014-07-02 | 北京搜狗科技发展有限公司 | Webpage input method and device for mobile terminal device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3940580A1 (en) | Multi-modal pre-training model acquisition method and apparatus, electrnonic device and storage medium | |
USRE46386E1 (en) | Updating a user session in a mach-derived computer system environment | |
US11823701B2 (en) | Network operation based on domain specific language | |
CN102959495A (en) | System for managing tasks for processing for a computer system which are tasks based on user operation, and method for displaying information related to tasks of the type | |
US20210306242A1 (en) | Non-intrusive it device monitoring and performing action based on it device state | |
WO2020164274A1 (en) | Network verification data sending method and apparatus, and storage medium and server | |
US11132285B1 (en) | Issue reporting context session identifier for issue tracking systems | |
WO2022048329A1 (en) | Menu display method and apparatus | |
CN110647335B (en) | Software gray level release method and device, electronic equipment and storage medium | |
US20210294911A1 (en) | Method for providing applet service capability, electronic device, and storage medium | |
CN111917708A (en) | Multi-target cooperative network security monitoring method, client and system | |
JP2021152915A (en) | Picture verification method, device, electronic facility, computer-readable storage medium, and program | |
CA3159291A1 (en) | Virtual workspace experience visualization and optimization | |
JP2023017825A (en) | Method and device for testing network device | |
CN111625312A (en) | APP skin changing method and device, electronic equipment and storage medium | |
US20150281393A1 (en) | System and Method for Device Management using a Social Network | |
CN106713494A (en) | Intelligent auditing method and device | |
CN106302524B (en) | A method of manipulation distal end application software | |
JP2022120046A (en) | Method of synchronizing verification code, apparatus, electronic device, and storage medium | |
CN114217900A (en) | Remote control method, device and system, computing equipment and storage medium | |
US20240104002A1 (en) | Conversational Agent for System Troubleshooting and Problem Resolution | |
CN106970717A (en) | The method and apparatus of server text information input | |
CN111951788A (en) | Language model optimization method and device, electronic equipment and storage medium | |
RU2632142C2 (en) | Method and electronic permission management unit for objects | |
US11539788B2 (en) | Information processing system and method of controlling information processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170721 |
|
RJ01 | Rejection of invention patent application after publication |