CN115052195B - Remote input method, device, equipment and storage medium - Google Patents
Remote input method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115052195B CN115052195B CN202210734652.2A CN202210734652A CN115052195B CN 115052195 B CN115052195 B CN 115052195B CN 202210734652 A CN202210734652 A CN 202210734652A CN 115052195 B CN115052195 B CN 115052195B
- Authority
- CN
- China
- Prior art keywords
- input
- information
- focus
- input method
- receiving 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 196
- 230000006854 communication Effects 0.000 claims abstract description 71
- 238000004891 communication Methods 0.000 claims abstract description 70
- 230000002618 waking effect Effects 0.000 claims abstract description 21
- 230000008569 process Effects 0.000 claims abstract description 17
- 238000012545 processing Methods 0.000 claims description 17
- 230000000694 effects Effects 0.000 abstract description 2
- 239000011230 binding agent Substances 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 208000033017 acquired idiopathic inflammatory myopathy Diseases 0.000 description 3
- 208000013643 idiopathic inflammatory myopathy Diseases 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8173—End-user applications, e.g. Web browser, game
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a remote input method, a device, equipment and a storage medium, wherein the method comprises the following steps: when detecting that a program window of a current program obtains a focus, waking up a preset receiving application, and establishing communication connection with an input end through the receiving application; starting a target input method service associated with the receiving application according to the focus information of the program window; receiving input information sent by the input end through the communication connection; and displaying the input information in the program window based on the current program and the target input method service. The invention realizes the technical effect of improving the input efficiency of the display terminal by transferring the input process to the input end.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a remote input method, apparatus, device, and storage medium.
Background
Most of the non-touch display terminals on the market are operated by remote control when editing text boxes (such as searching, inputting passwords, etc.). Because the number of keys of the remote controller is small, the keys need to be multiplexed when inputting text, and sometimes a single key operation needs to be performed multiple times to switch to the content which the user wants to input.
In order to avoid frequent key multiplexing, some display terminals display a full keyboard on a screen, and select letters, numbers and punctuation marks to be input for input by moving a cursor through a direction key of a remote controller. This approach, while reducing multiplexing of keys, still suffers from inefficiency in text entry.
Disclosure of Invention
The invention mainly aims to provide a remote input method, a device, equipment and a storage medium, which aim to solve the problem of low text input efficiency of a non-touch display terminal.
To achieve the above object, the present invention provides a remote input method, including:
when detecting that a program window of a current program obtains a focus, waking up a preset receiving application, and establishing communication connection with an input end through the receiving application;
starting a target input method service associated with the receiving application according to the focus information of the program window;
receiving input information sent by the input end through the communication connection;
And displaying the input information in the program window based on the current program and the target input method service.
Optionally, before the step of waking up a preset receiving application when the program window of the current program is detected to obtain focus, the step of establishing communication connection with the input terminal through the receiving application further includes:
acquiring an input method list in a current operating system;
And setting a target input method associated with a preset receiving application as a default input method according to the input method identification information in the input method list.
Optionally, the step of waking up a preset receiving application, and establishing a communication connection with an input terminal through the receiving application includes:
Sending a binding request to an input method management service through an input method management process of the current program, and waking up the receiving application based on the input method management service and the binding request;
And receiving a communication connection request sent by the input end through the receiving application, and establishing communication connection with the input end according to the communication connection request.
Optionally, the step of starting the target input method service associated with the receiving application according to the focus information of the program window includes:
Dynamically acquiring focus information of the program window, and judging whether the position of a focus is in an input ready state according to the focus information;
And if the position of the focus is in the input ready state, sending a connection session establishment request to the target input method service so as to establish a connection session between the program window and the target input method service.
Optionally, the step of receiving the input information sent by the input terminal through the communication connection includes:
Receiving input connection transmitted by an input end, and determining whether the receiving application is normally connected with the input end through the input connection;
And if the receiving application is normally connected with the input end, receiving the input information through the receiving application.
Optionally, the step of displaying the input information in the program window based on the current program and the target input method service includes:
Transmitting the input information to the target input method service through the connection session so that the target input method service can convert the input information into text information;
And determining a focus text box in the program window, sending the text information to the focus text box, and displaying the text information in the focus text box.
Optionally, the step of displaying the text information in the focus text box includes:
Acquiring attribute information of the focus text box, and carrying out encryption processing on the text information according to the attribute information and a preset display rule;
and displaying the text information after encryption processing in the focus text box.
In addition, to achieve the above object, the present invention also provides a remote input device including:
the wake-up module is used for waking up a preset receiving application when detecting that a program window of a current program obtains a focus, and establishing communication connection with an input end through the receiving application;
The starting module is used for starting a target input method service associated with the receiving application according to the focus information of the program window;
the receiving module is used for receiving the input information sent by the input end through the communication connection;
and the display module is used for displaying the input information in the text box of the program window based on the receiving application and the input method service.
Optionally, the remote input device may further include an acquisition module for:
acquiring an input method list in a current operating system;
and setting the input method associated with the preset receiving application as a default input method according to the input method identification information in the input method list.
Optionally, the wake-up module is further configured to:
Sending a binding request to an input method management service through an input method management process of the current program, and waking up the receiving application based on the input method management service and the binding request;
And receiving a communication connection request sent by the input end through the receiving application, and establishing communication connection with the input end according to the communication connection request.
Optionally, the starting module is further configured to:
Dynamically acquiring focus information of the program window, and judging whether the position of a focus is in an input ready state according to the focus information;
And if the position of the focus is in the input ready state, sending a connection session establishment request to the target input method service so as to establish a connection session between the program window and the target input method service.
Optionally, the receiving module is further configured to:
Receiving input connection transmitted by an input end, and determining whether the receiving application is normally connected with the input end through the input connection;
And if the receiving application is normally connected with the input end, receiving the input information through the receiving application.
Optionally, the display module is further configured to:
Transmitting the input information to the target input method service through the connection session so that the target input method service can convert the input information into text information;
And determining a focus text box in the program window, sending the text information to the focus text box, and displaying the text information in the focus text box.
Optionally, the display module is further configured to:
Acquiring attribute information of the focus text box, and carrying out encryption processing on the text information according to the attribute information and a preset display rule;
and displaying the text information after encryption processing in the focus text box.
In addition, to achieve the above object, the present invention also provides an electronic device including: a memory, a processor, and a remote input program stored on the memory and executable on the processor, the remote input program configured to implement the steps of the remote input method as described above.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a remote input program which, when executed by a processor, implements the steps of the remote input method as described above.
When detecting that a program window of a current program obtains a focus, waking up a preset receiving application, and establishing communication connection with an input end through the receiving application; starting a target input method service associated with the receiving application according to the focus information of the program window; receiving input information sent by the input end through the communication connection; based on the current program and the target input method service, the input information is displayed in the program window, the input process is transferred to the input end through communication connection with the input end, the input information is displayed in the program window after the input information is received, the input end is used for inputting, the display terminal is used for displaying, and the text input efficiency of the display terminal is improved.
Drawings
FIG. 1 is a schematic diagram of an electronic device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the remote input method of the present invention;
FIG. 3 is a timing diagram of a first embodiment of a remote input method according to the present invention;
FIG. 4 is a flowchart of a remote input method according to a second embodiment of the present invention;
Fig. 5 is a schematic diagram of a remote input device according to an embodiment of the invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main technical scheme of the invention is as follows: when detecting that a program window of a current program obtains a focus, waking up a preset receiving application, and establishing communication connection with an input end through the receiving application; starting a target input method service associated with the receiving application according to the focus information of the program window; receiving input information sent by the input end through the communication connection; and displaying the input information in the program window based on the current program and the target input method service.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device in a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the electronic device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a wireless FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a remote input program may be included in the memory 1005 as one type of storage medium.
In the electronic device shown in fig. 1, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention may be provided in an electronic device, and the electronic device calls a remote input program stored in the memory 1005 through the processor 1001 and performs the following steps:
when detecting that a program window of a current program obtains a focus, waking up a preset receiving application, and establishing communication connection with an input end through the receiving application;
starting a target input method service associated with the receiving application according to the focus information of the program window;
receiving input information sent by the input end through the communication connection;
And displaying the input information in the program window based on the current program and the target input method service.
Optionally, the processor 1001 invokes a remote input program stored in the memory 1005, and may also perform the following steps:
acquiring an input method list in a current operating system;
And setting a target input method associated with a preset receiving application as a default input method according to the input method identification information in the input method list.
Optionally, the processor 1001 invokes a remote input program stored in the memory 1005, and may also perform the following steps:
Sending a binding request to an input method management service through an input method management process of the current program, and waking up the receiving application based on the input method management service and the binding request;
And receiving a communication connection request sent by the input end through the receiving application, and establishing communication connection with the input end according to the communication connection request.
Optionally, the processor 1001 invokes a remote input program stored in the memory 1005, and may also perform the following steps:
Dynamically acquiring focus information of the program window, and judging whether the position of a focus is in an input ready state according to the focus information;
And if the position of the focus is in the input ready state, sending a connection session establishment request to the target input method service so as to establish a connection session between the program window and the target input method service.
Optionally, the processor 1001 invokes a remote input program stored in the memory 1005, and may also perform the following steps:
Receiving input connection transmitted by an input end, and determining whether the receiving application is normally connected with the input end through the input connection;
And if the receiving application is normally connected with the input end, receiving the input information through the receiving application.
Optionally, the processor 1001 invokes a remote input program stored in the memory 1005, and may also perform the following steps:
Transmitting the input information to the target input method service through the connection session so that the target input method service can convert the input information into text information;
And determining a focus text box in the program window, sending the text information to the focus text box, and displaying the text information in the focus text box.
Optionally, the processor 1001 invokes a remote input program stored in the memory 1005, and may also perform the following steps:
Acquiring attribute information of the focus text box, and carrying out encryption processing on the text information according to the attribute information and a preset display rule;
and displaying the text information after encryption processing in the focus text box.
An embodiment of the present invention provides a remote input method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the remote input method of the present invention.
In this embodiment, the remote input method includes:
step S10, when a program window of a current program is detected to obtain a focus, waking up a preset receiving application, and establishing communication connection with an input end through the receiving application;
The Android input method mechanism can be divided into the following parts: IMS (InputMethodService ); IMMS (InputMethodManagerService, input method management services); CLIENT APP (client application, i.e. application to which content is currently to be entered). The IMMS mainly manages all input methods in the system, including loading and switching of IMS. An IMM (InputMethodManager, input method management) process can be run in the client application program and is responsible for communication between the IMMs and the application process.
The execution body of the embodiment may be a non-touch display terminal, such as a television. The input end in communication connection with the display terminal can be mobile terminal equipment such as a mobile phone, a tablet and the like. The input terminal may have an input application installed therein in advance, and the input application may serve as a communication medium between the display terminal and the input terminal. In the Android system, a program window (window) is used for displaying and interacting an interface, and a user can input a text by using an input method and display the text by using a display terminal in a window for obtaining a focus. When detecting that the program window of the current program gets focus, it indicates that the user may perform text input, at this time, the receiving application may be awakened, and the receiving application establishes communication connection with the input terminal.
As an example, when it is detected that the program window of the current program gets focus, waking up a preset receiving application, before the step of establishing a communication connection with the input terminal through the receiving application, may include:
step A1, acquiring an input method list in a current operating system;
And step A2, setting a target input method associated with a preset receiving application as a default input method according to the input method identification information in the input method list.
A plurality of input methods can be installed in the display terminal, and each input method has corresponding input method application. After the display terminal installs the receiving application, the receiving application can be stored as an input method application into an input method list of the current operating system. Different input methods in the storage list can be distinguished through the input method identification information. The IMMS may obtain an input method list, determine a target input method associated with the receiving application through identification information of the input method, and set the target input method as a default input method. In the system of the display terminal, only one input method application can be operated at the same time, after the target input method is set as the default input method, the receiving application can be regarded as a resident application in the system and operated in the background of the system, so that the receiving application can be quickly awakened.
As an example, waking up a preset receiving application, the step of establishing a communication connection with the input through the receiving application may comprise:
and step A3, sending a binding request to an input method management service through the input method management process of the current program, and waking up the receiving application based on the input method management service and the binding request. The current program can be regarded as a client application in the Android input method mechanism. After the program window obtains the focus, the current program sends a binding request to the IMMS through the IMM, the IMMS invokes bindService to start the IMS, the IMS creates an input method binder, wakes up the receiving application, and binds with the receiving application. The receiving application may be regarded as an input method application having a communication function, which has a function of communicating with external devices, compared with a general input method. The input method binder is started along with the input method and has the same life cycle as the IMS, and only needs to be established when the input method is started.
And step A4, receiving a communication connection request sent by the input end through the receiving application, and establishing communication connection with the input end according to the communication connection request. When the user needs to perform remote input operation, the input application of the input end can be started to prepare before inputting characters. After the input application is started, an interface for connecting with the receiving application is displayed in the input end interface, the user sends a communication connection request to the display terminal, and the communication connection request can contain account information of the user, such as login ID and password. The receiving application can verify the account information in the communication connection request, and after the account information passes the verification, the receiving application successfully establishes communication connection with the input application. The input end and the display terminal can establish communication connection through socket protocol. Based on socket protocol, the input end can receive data of the display terminal, and can also send data to the display terminal.
Step S20, a target input method service associated with the receiving application is started according to the focus information of the program window;
The receiving application can not only communicate with the input application of the input end, but also provide input method service for the display terminal.
As an example, the step of launching a target input method service associated with the receiving application according to the focus information of the program window may include:
And step B1, dynamically acquiring focus information of the program window, and judging whether the position of the focus is in an input ready state according to the focus information. The focus information can contain focus position information, when a user operates the display terminal, the focus position can be changed continuously, the focus information is acquired dynamically, and whether the position of the focus is in an input ready state can be judged according to the focus position information. For example, when a cursor in the text box position blinks, the position of the focus is in the ready state for input. If the position of the focus is not in the input ready state, the step of dynamically acquiring the focus information of the program window can be continued.
And step B2, if the position of the focus is in the input ready state, sending a connection session establishment request to the target input method service so as to establish a connection session between the program window and the target input method service. After focusing the focus in the text box, when detecting that the user clicks the text box again, the text box enters an input ready state, the token can be transferred to the IMS through the IMMS, and the target input method service is added into the token list of the program window. The window token can mark the service of the target input method in the communication process of the input method and the IMMS, so that the IMMS can know the specific type of the target input method. The IMMS initiates an IMS by first invoking bindService a connect session request to the target input method service, and then the IMS returns a binder to the IMMS. Then, with the binder, IMMS can call createSession of IMS to create SessionBinder when needed, and then transmit to the current program process to realize the binding of session, so that the program window and the target input method service can be connected through session.
Step S30, receiving input information sent by the input end through the communication connection;
In the Android input method mechanism, connection is a communication channel between an application program and an IMS, text around a cursor can be read through connection, text is submitted to a text box, and an original key event is submitted to the application program.
As an example, the step of receiving input information sent by the input terminal through the communication connection may comprise:
And C1, receiving input connection transmitted by an input terminal, and determining whether the receiving application is normally connected with the input terminal through the input connection. The input end creates connection through the input application and transmits the connection to the display terminal through the network protocol. At the display terminal, the current program receives the connection, the current program transmits the connection to the IMM, the IMM transmits the connection to the IMMs, the IMMs transmits the connection to the IMS, and the IMS can transmit characters to the current program through the connection and then transmit the characters to the input terminal. If the display terminal receives connection successfully, the input end and the receiving application can be indicated to be connected normally. If the display terminal fails to receive connection, any node in the current program, IMM, IMMS or IMS fails to receive, the connection between the input end and the receiving application is abnormal.
And step C2, if the receiving application is normally connected with the input end, receiving the input information through the receiving application. The user can generate input information at the input end in a soft keyboard input mode, and the input information is transmitted to the receiving application through the input application. Generally, after the IMS receives a connection successfully, the IMS will display an input method window in the interface, so that the user can input characters in the input method window by touching, and display the characters in the program window of the current program. In this embodiment, the input process is transferred to the input end, so that the input method window may not be displayed in the interface of the display terminal, thereby achieving the effect of enabling the interface of the display terminal to be simpler.
And step S40, displaying the input information in the program window based on the current program and the target input method service.
After receiving the input information sent by the input end, the display terminal transmits the input information to a program window of the current program through the target input method service, and the input information generated by the user at the input end is displayed in the program window. The input information can contain format information, when the display terminal receives the input information containing the format information, the input information with the input format can be displayed according to the suitability of the format information and the program window, and the suitability can be judged according to whether the text display format in the program window is consistent with the text display format in the format information. The format information may include fonts, character sizes, character colors, and the like.
As shown in fig. 3, the input method related service and the current program belong to a display terminal, the input method related service is a receiving application, an IMS, an IMMS and an IMM, after the receiving application is started, a communication connection is established with an input terminal, the input terminal creates a connection, and input information is sent to the display terminal through the communication connection, and the display terminal displays the input information based on a program window of the current program.
In this embodiment, when it is detected that a program window of a current program obtains a focus, a preset receiving application is awakened, and a communication connection is established between the receiving application and an input end; starting a target input method service associated with the receiving application according to the focus information of the program window; receiving input information sent by the input end through the communication connection; based on the current program and the target input method service, the input information is displayed in the program window, the input process is transferred to the input end through communication connection with the input end, the input information is displayed in the program window after the input information is received, the input end is used for inputting, the display terminal is used for displaying, and the text input efficiency of the display terminal is improved.
Further, in a second embodiment of the remote input method of the present invention, referring to fig. 3, the method includes:
step S11, the input information is transmitted to the target input method service through the connection session so that the target input method service can convert the input information into text information;
The input application of the input end transmits the input information to the target input method service of the display terminal through session. The input information transmitted by the input end can be character type information, and the target input method service can search the corresponding text information according to the received character information by index so as to complete conversion from the input information to the text information.
And step S12, determining a focus text box in the program window, sending the text information to the focus text box, and displaying the text information in the focus text box.
When a user needs to input text in a program window, the position of the input text can be a focus text box, the focus text box contains a focus, and the user can change the focus position through a remote control device matched with the display terminal. The text boxes in the program window can be multiple, the focus text box where the focus is determined, text information is sent to the focus text box through the target input method service, and the text information can be displayed in the focus text box.
As an example, the step of displaying the text information in the focus text box may include:
Step D1, acquiring attribute information of the focus text box, and encrypting the text information according to the attribute information and a preset display rule;
And D2, displaying the text information after encryption processing in the focus text box.
Text boxes may be used to enter different types of information, such as person names, application names, ID names, passwords, and the like. The attribute information of the text box may include an input rule by which the text box may restrict text input in the text box to letters and special symbols in the case where the user inputs a password to the text box. The preset display rules can determine whether the information in the text box is displayed directly or after encryption processing. When the text in the focus text box is a password and the display rule is displayed after encryption processing, the text can be converted into a graph specified in the display rule, and the text information after encryption processing can be displayed through the graph.
In this embodiment, if the focus text box needs to display the text of the password type, the text information may be encrypted by the display rule, and the focus text box displays the text information after the encryption processing, so that the privacy security of the user may be protected.
An embodiment of the present invention further provides a remote input device, referring to fig. 4, including:
A wake-up module 101, configured to wake up a preset receiving application when detecting that a program window of a current program obtains a focus, and establish a communication connection with an input end through the receiving application;
a starting module 102, configured to start a target input method service associated with the receiving application according to the focus information of the program window;
A receiving module 103, configured to receive, through the communication connection, input information sent by the input terminal;
A display module 104, configured to display the input information in a text box of the program window based on the receiving application and the input method service.
Optionally, the remote input device may further include an acquisition module for:
acquiring an input method list in a current operating system;
and setting the input method associated with the preset receiving application as a default input method according to the input method identification information in the input method list.
Optionally, the wake-up module 101 is further configured to:
sending a binding request to an input method management service through an input method management process of the current program, and waking up the receiving application according to the binding request;
And receiving a communication connection request sent by the input end through the receiving application, and establishing communication connection with the input end according to the communication connection request.
Optionally, the starting module 102 is further configured to:
dynamically acquiring focus information of the program window, and judging whether the position of a focus can be input according to the focus information;
And if the position of the focus is judged to be capable of inputting, sending a connection session establishment request to the target input method service so as to establish a connection session between the program window and the target input method service.
Optionally, the receiving module 103 is further configured to:
Receiving input connection transmitted by an input end, and determining whether the receiving application is normally connected with the input end through the input connection;
And if the receiving application is normally connected with the input end, receiving the input information through the receiving application.
Optionally, the display module 104 is further configured to:
Transmitting the input information to the target input method service through the connection session so that the target input method service can convert the input information into text information;
And determining a focus text box in the program window, sending the text information to the focus text box, and displaying the text information in the focus text box.
Optionally, the display module 104 is further configured to:
Acquiring attribute information of the focus text box, and carrying out encryption processing on the text information according to the attribute information and a preset display rule;
and displaying the text information after encryption processing in the focus text box.
The embodiment of the invention also provides electronic equipment, which comprises: a memory, a processor, and a remote input program stored on the memory and executable on the processor, the remote input program configured to implement the steps of the remote input method as described above. The specific embodiments of the electronic device of the present invention refer to the embodiments of the remote input method, and are not described herein again.
Embodiments of the present invention also provide a computer readable storage medium having stored thereon a remote input program which, when executed by a processor, implements the steps of a remote input method as described above. The detailed description of the computer-readable storage medium according to the present invention refers to the embodiments of the remote input method and is not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (8)
1. A remote input method, characterized in that the remote input method comprises the steps of:
when detecting that a program window of a current program obtains a focus, waking up a preset receiving application, and establishing communication connection with an input end through the receiving application;
starting a target input method service associated with the receiving application according to the focus information of the program window;
receiving input information sent by the input end through the communication connection;
Displaying the input information in the program window based on the current program and the target input method service;
the step of starting the target input method service associated with the receiving application according to the focus information of the program window comprises the following steps:
Dynamically acquiring focus information of the program window, and judging whether the position of a focus is in an input ready state according to the focus information;
If the position of the focus is in the input ready state, sending a connection session establishment request to the target input method service to establish a connection session between the program window and the target input method service;
the step of displaying the input information in the program window based on the current program and the target input method service comprises the following steps:
Transmitting the input information to the target input method service through the connection session so that the target input method service can convert the input information into text information, and transmitting the input information through an input application of the input end;
And determining a focus text box in the program window, sending the text information to the focus text box, and displaying the text information in the focus text box.
2. The remote input method of claim 1, wherein, before the step of waking up a preset receiving application when it is detected that a program window of a current program gets focus, establishing a communication connection with an input terminal through the receiving application, further comprising:
acquiring an input method list in a current operating system;
And setting a target input method associated with a preset receiving application as a default input method according to the input method identification information in the input method list.
3. The remote input method of claim 1, wherein the waking up the preset receiving application, through which the communication connection with the input terminal is established, comprises:
Sending a binding request to an input method management service through an input method management process of the current program, and waking up the receiving application based on the input method management service and the binding request;
And receiving a communication connection request sent by the input end through the receiving application, and establishing communication connection with the input end according to the communication connection request.
4. The remote input method of claim 1, wherein the step of receiving input information sent by the input over the communication connection comprises:
Receiving input connection transmitted by an input end, and determining whether the receiving application is normally connected with the input end through the input connection;
And if the receiving application is normally connected with the input end, receiving the input information through the receiving application.
5. The remote input method of claim 1, wherein the step of displaying the text information in the focus text box comprises:
Acquiring attribute information of the focus text box, and carrying out encryption processing on the text information according to the attribute information and a preset display rule;
and displaying the text information after encryption processing in the focus text box.
6. A remote input device, the remote input device comprising:
the wake-up module is used for waking up a preset receiving application when detecting that a program window of a current program obtains a focus, and establishing communication connection with an input end through the receiving application;
The starting module is used for starting a target input method service associated with the receiving application according to the focus information of the program window;
the receiving module is used for receiving the input information sent by the input end through the communication connection;
A display module for displaying the input information in a text box of the program window based on the receiving application and the input method service;
The starting module is further used for:
dynamically acquiring focus information of the program window, and judging whether the position of a focus can be input according to the focus information;
If the position of the focus is judged to be capable of inputting, a connection session establishment request is sent to the target input method service so as to establish a connection session between the program window and the target input method service;
The display module is further configured to:
Transmitting the input information to the target input method service through the connection session so that the target input method service can convert the input information into text information;
And determining a focus text box in the program window, sending the text information to the focus text box, and displaying the text information in the focus text box.
7. An electronic device, the electronic device comprising: a memory, a processor and a remote input program stored on the memory and executable on the processor, the remote input program configured to implement the steps of the remote input method of any one of claims 1 to 5.
8. A computer readable storage medium, characterized in that it has stored thereon a remote input program, which when executed by a processor, implements the steps of the remote input method according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210734652.2A CN115052195B (en) | 2022-06-24 | 2022-06-24 | Remote input method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210734652.2A CN115052195B (en) | 2022-06-24 | 2022-06-24 | Remote input method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115052195A CN115052195A (en) | 2022-09-13 |
CN115052195B true CN115052195B (en) | 2024-05-14 |
Family
ID=83162816
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210734652.2A Active CN115052195B (en) | 2022-06-24 | 2022-06-24 | Remote input method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115052195B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104714634A (en) * | 2013-12-13 | 2015-06-17 | 奇点新源国际技术开发(北京)有限公司 | Remote input method and system |
CN105792009A (en) * | 2016-03-11 | 2016-07-20 | 青岛海信电器股份有限公司 | Multi-screen interaction type remote input method, mobile terminal, and intelligent device |
CN107179952A (en) * | 2016-03-11 | 2017-09-19 | 思杰***有限公司 | Collaboration Input Method Editor (IME) activity between virtual application client and server |
WO2018054321A1 (en) * | 2016-09-22 | 2018-03-29 | 深圳创维数字技术有限公司 | Character input method, electronic device and intelligent terminal |
CN113918227A (en) * | 2021-09-10 | 2022-01-11 | 北京鲸鲮信息***技术有限公司 | Input method setting method and device, input method and electronic equipment |
CN114051157A (en) * | 2021-09-30 | 2022-02-15 | 北京搜狗科技发展有限公司 | Input method and device |
-
2022
- 2022-06-24 CN CN202210734652.2A patent/CN115052195B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104714634A (en) * | 2013-12-13 | 2015-06-17 | 奇点新源国际技术开发(北京)有限公司 | Remote input method and system |
CN105792009A (en) * | 2016-03-11 | 2016-07-20 | 青岛海信电器股份有限公司 | Multi-screen interaction type remote input method, mobile terminal, and intelligent device |
CN107179952A (en) * | 2016-03-11 | 2017-09-19 | 思杰***有限公司 | Collaboration Input Method Editor (IME) activity between virtual application client and server |
WO2018054321A1 (en) * | 2016-09-22 | 2018-03-29 | 深圳创维数字技术有限公司 | Character input method, electronic device and intelligent terminal |
CN113918227A (en) * | 2021-09-10 | 2022-01-11 | 北京鲸鲮信息***技术有限公司 | Input method setting method and device, input method and electronic equipment |
CN114051157A (en) * | 2021-09-30 | 2022-02-15 | 北京搜狗科技发展有限公司 | Input method and device |
Also Published As
Publication number | Publication date |
---|---|
CN115052195A (en) | 2022-09-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3610341B2 (en) | Network device and remote control relay server | |
US9232395B2 (en) | System, server, communication device and computer readable medium therefor | |
US20080216153A1 (en) | Systems and methods for facilitating authentication of network devices | |
WO2017016260A1 (en) | Image forming system for parsing real-time communications information, and image forming method | |
US20180338054A1 (en) | Image reading apparatus transmitting device identification information and reading information to push notification server, and method for controlling the image reading apparatus | |
JP2007079857A (en) | Server apparatus, client apparatuses and those control methods, computer program, storage medium | |
US11838965B2 (en) | Communication system, non-transitory computer-readable recording medium storing connection application for terminal, and communication device | |
US7768664B2 (en) | Communication system that receives an input from a user | |
JP7052481B2 (en) | Network system, setting information operation method and program | |
CN104052757A (en) | Identity recognition system and method based on client-side application in mobile phone | |
CN112243000B (en) | Application data processing method and device, computer equipment and storage medium | |
CN115052195B (en) | Remote input method, device, equipment and storage medium | |
CN112333062A (en) | Control method and control device for household equipment and computer readable storage medium | |
US20140006583A1 (en) | Network Device Search System that Allows Information Processing Terminal to Identify Network Device | |
CN111163455A (en) | User identification number migration method, device, terminal and storage medium | |
JP6325654B2 (en) | Network service providing apparatus, network service providing method, and program | |
CN112445346A (en) | Information input method, device, equipment and storage medium | |
CN113873450A (en) | Short message configuration method and device, computer equipment and storage medium | |
JP5265658B2 (en) | Login authentication apparatus, login authentication method and program | |
EP2045754A1 (en) | Challenge-response method and system | |
CN112785312A (en) | Information sharing method and device, electronic equipment and readable storage medium | |
JP6115884B1 (en) | Service providing system, authentication device, and program | |
CN105791568B (en) | Information processing method and terminal thereof | |
US12021862B2 (en) | Information processing device, control method for information processing device, and recording medium | |
WO2017134922A1 (en) | Service provision system, authentication device, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |