CN110837308B - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN110837308B
CN110837308B CN201911112034.9A CN201911112034A CN110837308B CN 110837308 B CN110837308 B CN 110837308B CN 201911112034 A CN201911112034 A CN 201911112034A CN 110837308 B CN110837308 B CN 110837308B
Authority
CN
China
Prior art keywords
input
electronic device
event
electronic equipment
input event
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
Application number
CN201911112034.9A
Other languages
Chinese (zh)
Other versions
CN110837308A (en
Inventor
张家普
陈睿
黄世光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911112034.9A priority Critical patent/CN110837308B/en
Publication of CN110837308A publication Critical patent/CN110837308A/en
Application granted granted Critical
Publication of CN110837308B publication Critical patent/CN110837308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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/04886Interaction 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 present disclosure provides an information processing method, including: firstly, obtaining an input event; and if the input event is a first input event generated by the first electronic equipment sensing the input operation, responding to the first input event, and setting a first input method program as the input method of the first electronic equipment based on the first input event. And if the input event is that the first electronic equipment receives a second input event generated by the second electronic equipment in response to the input operation, responding to the second input event, and setting a second input method program as the input method of the first electronic equipment based on the second input event. The second electronic equipment is connected with the first electronic equipment. The disclosure also provides an information processing device and an electronic device.

Description

Information processing method and device and electronic equipment
Technical Field
The disclosure relates to an information processing method and device and an electronic device.
Background
With the development of network technology, the frequency of using mobile phones by people is higher and higher. In order to meet the requirement of users for displaying the content of the mobile phone to others, a screen projection technology of electronic equipment for projecting the picture of the mobile phone to a large display screen is developed.
In the related art, the screen projection interface of the mobile phone in the display screen of the computer terminal is input from the computer terminal, only operation events and operation positions can be fed back to the mobile phone, the mobile phone can only determine input characters based on the operation events and the operation positions sent by the computer terminal and combined with the display interface of the current virtual keyboard, and the input efficiency is low. The physical keyboard cannot be used at the computer end to input the input frame in the screen projection interface of the mobile phone in the display screen of the computer end, and the use experience of a PC cannot be achieved. There is a drawback that the user experience is poor.
Disclosure of Invention
One aspect of the present disclosure provides an information processing method, including: obtaining an input event; if the input event is a first input event generated by the first electronic equipment sensing the input operation, responding to the first input event, and setting a first input method program as an input method of the first electronic equipment based on the first input event; and if the input event is a second input event generated by the first electronic equipment receiving the input operation of the second electronic equipment, responding to the second input event, and setting a second input method program as the input method of the first electronic equipment based on the second input event. The second electronic equipment is connected with the first electronic equipment.
Optionally, the information processing method further includes: obtaining a text sent by the second electronic equipment, wherein the text comprises at least one character, and the at least one character is determined by converting the key information by the second electronic equipment based on a third input method; and inputting text into the input box by the second input method program.
Optionally, the responding to the first input event includes activating an input box and an input method of the first electronic device. Responding to the second input event includes activating the input box and the input method of the first electronic device.
Optionally, the setting the first input method program as the input method of the first electronic device based on the first input event includes: monitoring an interface of a touch input device of first electronic equipment; and if the monitoring result represents that the first input event is generated, switching the input method of the first electronic equipment to the first input method program. Wherein the first input event is a real input event.
Optionally, the setting the second input method program as the input method of the second electronic device based on the second input event includes: monitoring a calling interface of screen projection application of first electronic equipment; and if the monitoring result represents that a second input event is generated, switching the input method of the first electronic equipment to a second input method program. The second input event is a simulation input event, and the simulation input event comprises a conversion of the screen-casting application into a simulation input event aiming at the operation instruction based on the operation instruction sent by the second electronic equipment. The operation instruction is generated by the second electronic device obtaining input operation aiming at the screen projection interface, and the screen projection interface is a real-time interface which is used by the screen projection application and is sent to the second electronic device for direct display through a connecting channel between the first electronic device and the second electronic device based on the obtained real-time display data of the display screen of the first electronic device.
Optionally, the information processing method further includes: determining the cursor position of a cursor for inputting the text into the input box when the text is input into the input box through a second input method program; converting the cursor position into a corresponding position on a current display interface of a display screen of the second electronic equipment; and sending the corresponding position to the second electronic equipment through a connecting channel between the first electronic equipment and the second electronic equipment, so that the second electronic equipment displays an input interface of the third input method on the screen projection interface at a position matched with the corresponding position when inputting based on the third input method.
Another aspect of the present disclosure provides an information processing apparatus including: the event obtaining module is used for obtaining an input event; the first event response module is used for responding to a first input event if the input event is the first input event generated by the first electronic equipment sensing the input operation, and setting a first input method program as an input method of the first electronic equipment based on the first input event; and the second event response module is used for responding to a second input event if the second input event is generated by the first electronic equipment receiving the input operation of the second electronic equipment, and setting a second input method program as the input method of the first electronic equipment based on the second input event. The second electronic equipment is connected with the first electronic equipment.
Optionally, the information processing apparatus further includes: the text obtaining module is used for obtaining a text sent by the second electronic equipment, wherein the text comprises at least one character, and the at least one character is determined by converting the key information by the second electronic equipment based on a third input method; and the text input module is used for inputting the text into the input box through the second input method program.
Optionally, the responding to the first input event includes activating an input box and an input method of the first electronic device. Responding to the second input event includes activating the input box and the input method of the first electronic device.
Optionally, the first event response module includes: the first monitoring submodule is used for monitoring an interface of a touch input device of first electronic equipment; and the first switching submodule is used for switching the input method of the first electronic equipment to the first input method program if the monitoring result represents that the first input event is generated. Wherein the first input event is a real input event.
Optionally, the second event response module includes: the second monitoring submodule is used for monitoring a calling interface of screen projection application of the first electronic equipment; and the second switching submodule is used for switching the input method of the first electronic equipment to the second input method program if the monitoring result represents that a second input event is generated. The second input event is a simulation input event, and the simulation input event comprises a simulation input event which is converted into an operation instruction by the screen-casting application based on the operation instruction sent by the second electronic equipment; the operation instruction is generated by the second electronic device obtaining input operation aiming at the screen projection interface, and the screen projection interface is a real-time interface which is used by the screen projection application and is sent to the second electronic device for direct display through a connecting channel between the first electronic device and the second electronic device based on the obtained real-time display data of the display screen of the first electronic device.
Optionally, the information processing apparatus further includes: the cursor position determining module is used for determining the cursor position of a cursor for inputting the text into the input box when the text is input into the input box through the second input method program; the position conversion module is used for converting the cursor position into a corresponding position on a current display interface of a display screen of the second electronic equipment; and the position sending module is used for sending the corresponding position to the second electronic equipment through a connecting channel between the first electronic equipment and the second electronic equipment so as to enable the second electronic equipment to display the input interface of the third input method on the screen projection interface at the position matched with the corresponding position when inputting based on the third input method.
Another aspect of the present disclosure provides an electronic device comprising one or more processors; and a memory for storing one or more programs. Wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the information processing method described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to perform the above-described information processing method.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario of an information processing method, an information processing apparatus and an electronic device according to an embodiment of the present disclosure;
fig. 2A schematically shows a flow chart of an information processing method according to a first exemplary embodiment of the present disclosure;
FIG. 2B schematically shows a scene diagram of the information processing method of FIG. 2A applied to a first application scene;
fig. 2C schematically shows a scene diagram when the information processing method in fig. 2A is applied to a second application scene;
fig. 3 schematically shows a flow chart of an information processing method according to an exemplary embodiment two of the present disclosure;
FIG. 4 schematically illustrates a flow diagram for setting a first input method program as an input method for a first electronic device based on a first input event, according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a flow diagram for setting a second input method program as an input method for the first electronic device based on a second input event, according to an embodiment of the disclosure;
Fig. 6A schematically shows a flowchart of an information processing method according to a third exemplary embodiment of the present disclosure;
FIG. 6B schematically shows an effect diagram obtained according to the information processing method in FIG. 6A;
fig. 7 schematically shows a block diagram of the structure of an information processing apparatus according to an embodiment of the present disclosure; and
fig. 8 schematically shows a block diagram of an electronic device adapted to perform an information processing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that these descriptions are illustrative only and are not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flowcharts are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
The first electronic device in the embodiment of the present disclosure may be, for example, a device such as a mobile phone. The second electronic device may be, for example, a notebook computer, a desktop all-in-one machine, a television, a tablet computer, or the like. For example, the first electronic device and the second electronic device establish a connection in a low power consumption mode, which may be, for example, a bluetooth broadcast mode. After the first electronic device establishes a connection with the second electronic device, a high-speed transmission channel between the first electronic device and the second electronic device may be created. The high-speed transmission channel may be, for example, a wifi direct channel, so that the first electronic device may send the image frame to the second electronic device through the transmission channel.
When the first electronic device is a mobile phone and the second electronic device is a notebook computer, a desktop all-in-one machine, a television, a tablet computer and the like, the first electronic device sends display data of display contents of a display screen of the first electronic device to the second electronic device through the high-speed transmission channel, the second electronic device displays the display contents corresponding to the display data on the display screen of the second electronic device based on the display data, and the display contents are consistent with the display contents of the display screen of the second electronic device.
According to the embodiment of the disclosure, if the first electronic device obtains the display content of the display screen of the first electronic device that can be changed by the control operation aiming at the display content, the second electronic device synchronously obtains the display content corresponding to the update display data sent by the first electronic device so that the display screen of the second electronic device displays the update display data of the first electronic device. Similarly, if the first electronic device obtains the control operation of the second electronic device sent by the second electronic device for the display content (i.e., the display content is consistent with the display content of the display screen of the first electronic device), and the first electronic device can also change the display content of the display screen of the first electronic device in response to the control operation from the second electronic device, the second electronic device synchronously obtains the display content corresponding to the update display data sent by the first electronic device so that the display screen of the second electronic device displays the update display data of the first electronic device.
According to the embodiment of the disclosure, when the first electronic device is a mobile phone, once the first electronic device and the second electronic device are located within a predetermined range, automatically establishing a network connection to establish a transmission channel, if the first electronic device is in a running state and the display screen is in a lighting state, the first electronic device of the embodiment of the disclosure can close the display screen of the first electronic device; and prohibiting the first electronic device from entering a low power consumption state. If the first electronic device is in a low power consumption state and the display screen is in a turned-off state, the first electronic device of the embodiment of the disclosure can maintain to turn off the display screen of the first electronic device; and waking up the first electronic device to enter a running state. For example, the first electronic device is still in an operational state, at least ensuring that the display processor of the first electronic device is able to be in an operational state to continuously process display data for the display screen of the first electronic device. The first electronic device saves power consumption due to the display being turned off.
The embodiment of the disclosure provides an information processing method and device and electronic equipment. The information processing method comprises the following steps: firstly, obtaining an input event; and if the input event is a first input event generated by the first electronic equipment sensing the input operation, responding to the first input event, and setting a first input method program as the input method of the first electronic equipment based on the first input event. And if the input event is that the first electronic equipment receives a second input event generated by the second electronic equipment in response to the input operation, responding to the second input event, and setting a second input method program as the input method of the first electronic equipment based on the second input event. The second electronic equipment is connected with the first electronic equipment.
The information processing method according to the embodiment of the disclosure can switch the input method of the first electronic device to the default input method when receiving an input event generated by an input operation on the first electronic device, and switch the input method of the first electronic device to the customized input method between the first electronic device and the second electronic device when receiving an input event generated by an input operation on the second electronic device connected to the first electronic device. Therefore, seamless switching of the input method of the first electronic equipment under two input scenes can be realized. Compared with the related technology, the method can at least partially solve the technical problems that the input method cannot be switched quickly and the switching mode is not flexible.
Fig. 1 schematically illustrates an application scenario of an information processing method, an information processing apparatus and an electronic device according to an embodiment of the disclosure. It should be noted that fig. 1 is only an example of a scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, an application scenario 100 of an embodiment of the present disclosure may include a first electronic device 110 and a second electronic device 120.
The first electronic device 110 may be a portable terminal such as a mobile phone and a tablet computer. The second electronic device 120 may be a terminal device such as a desktop computer, a notebook computer, a tablet, and the like. The first electronic device 110 and the second electronic device 120 may communicate through a connection channel, for example. The connection channel may be, for example, a wifi direct connection channel, a networking connection channel, or a connection channel established through the network 130 shown in fig. 1. The network 130 can include various types of connections, such as wired and/or wireless communication links, among others.
According to an embodiment of the present disclosure, the first electronic device 110 and the second electronic device 120 may, for example, each have installed thereon various client applications, such as a screen-casting application, a video playing application, a web browser application, and the like (for example only).
According to the embodiment of the present disclosure, for example, the first electronic device 110 may send the display data to the second electronic device 120 through the connection channel, so that the second electronic device 120 displays a display screen corresponding to the display data of the first electronic device 110. The display data may be obtained by compressing a display currently displayed on the display screen of the first electronic device 110, for example.
In an initial stage, the first electronic device 110 and the second electronic device 120 may establish a connection in a low power consumption manner, for example, to know the existence of each other in the surrounding environment. The Low power mode may be, for example, a Bluetooth Low Energy (BLE) channel. The establishing of the low power consumption connection may for example comprise: the first electronic device 110 and the second electronic device 120 each broadcast device information of their own device, which may include, for example, a bluetooth address, a wifi address, a device model name, etc., and know the existence of the other party according to the broadcasted device information.
After the first electronic device 110 establishes the low power consumption connection with the second electronic device 120, the second electronic device 120 may create a connection channel so that the first electronic device 110 may transmit the image frame to the second electronic device 120 through the connection channel. The connection channel may be established by the second electronic device 120 by, for example: according to the SSID and BSSID sent by the first electronic device 110, it is determined whether the first electronic device 110 and the second electronic device 120 are located in the same local area network, and if so, a TCP connection is established with the first electronic device 110. If the first electronic device 110 is located in a different local area network, a P2P group is created to establish a connection with the first electronic device 110 in a networking manner.
After the connection channel is established between the first electronic device 110 and the second electronic device 120, the transmission of the display data and the control instruction may be performed, so as to display the display image of the first electronic device 110 in the target display area 121 of the display screen of the second electronic device 120 by projecting, and control the first electronic device 110 to change the display image according to the input information obtained by the second electronic device 120. Here, the position of the target display area 121 on the display screen of the second electronic device 120 is only used as an example to facilitate understanding of the present disclosure, and the present disclosure is not limited thereto.
According to embodiments of the present disclosure, display data and control instructions may be transmitted, for example, through a data transmission sub-channel and an instruction transmission sub-channel, respectively, to distinguish the transmission of different types of data. Alternatively, the display data and the control command can be transmitted through the same transmission sub-channel.
It is understood that the information processing method of the embodiment of the present disclosure may be performed by the first electronic device 110, for example. Accordingly, the information processing apparatus provided by the embodiment of the present disclosure may be provided in the first electronic device 110.
It should be understood that the types of first electronic device 110, second electronic device 120, and network 130 described above are merely illustrative. There may be any type of first electronic device 110, second electronic device 120, and network 130, as the implementation requires.
The following describes the information processing method according to the embodiment of the disclosure in detail with reference to fig. 2A to 6B in conjunction with the application scenario of fig. 1.
Fig. 2A schematically shows a flowchart of an information processing method according to a first exemplary embodiment of the present disclosure. Fig. 2B schematically illustrates a scene diagram when the information processing method of fig. 2A is applied to a first application scene; fig. 2C schematically shows a scene diagram when the information processing method in fig. 2A is applied to a second application scenario.
As shown in fig. 2A, the information processing method of the embodiment of the present disclosure may include operations S210 to S230.
In operation S210, an input event is obtained.
According to an embodiment of the present disclosure, in the first application scenario, the operation S210 may be performed, for example, in response to the first electronic device 110 sensing that the input operation generates an input event. The input operation sensed by the first electronic device 110 may include, for example: the touch operation (for example, sliding, clicking, etc.) of the operation body on the display screen of the first electronic device 110, or the operation of the operation body on the physical operation key set in the first electronic device 110. The entity operation keys may include, for example, a "home" key, a volume adjustment key, a mute key, a power-on key, and/or the like. As shown in fig. 2B, in an embodiment, the input operation sensed by the first electronic device 110 may be, for example, a click operation of an operator on an input box 201 in the display screen.
In this case, the input method of the first electronic device 110 may be set as an input method that the user is used to when using the first electronic device 110 in response to the input event, for example, a default input method that may be set by the user. Therefore, operation S220 is performed, if the input event is a first input event generated by the first electronic device 110 sensing the input operation, and in response to the first input event, the first input method program is set as the input method of the first electronic device 110 based on the first input event. The first input method program is an input method program for the first electronic device 110, and may be, for example, an input method program corresponding to an input method that is used by a user when using the first electronic device 110. Specifically, the first input method program may be an input method program carried by an operating system of the first electronic device 110, or may be an input method program in an input method application installed in the first electronic device 110.
According to an embodiment of the present disclosure, the operation S220 may include, for example: in response to the first input event, it is first checked whether the current input method of the first electronic device 110 is the first input method program. If the input method program is not the first input method program, the current input method program is switched to the first input method program, so that the first input method program is used as the input method of the first electronic device 110.
According to the embodiment of the disclosure, when the input text is obtained through the input operation or the text to be input by the operation body is determined, the generated first input event may include, for example, an input instruction generated according to the input operation and/or the input text obtained through the input operation. Responding to the first input event may include, for example, activating an input box and an input method in response to a real input event generated by the first electronic device according to a received real input operation. The input box is an input box included in the display page of the first electronic device 110, and the input method is an input method of the first electronic device. When a plurality of input boxes are included in the display page, the input box to which the input operation is directed may be regarded as an activated input box. For example, in response to the first input event, the input box 201 shown in fig. 2B may be activated, while the input method 202 shown in fig. 2B is activated, and the input method 202 is displayed in the display screen of the first electronic device 110.
According to the embodiment of the present disclosure, when the text input is not obtained through the input operation, the generated first input event may include, for example, an operation instruction generated according to the sensing of the real input operation by the first electronic device 110. The operation instruction may be, for example, an instruction to slide a page, an instruction to switch a page, an instruction to submit a page, or the like. Responding to the first input event may include, for example, performing an operation corresponding to the operation instruction, such as sliding a page, switching a page, or committing a page, etc.
According to an embodiment of the present disclosure, the operation of setting the first input method program as the input method of the first electronic device based on the first input event in operation S220 may be implemented through operations S421 to S422 described in fig. 4, for example, and details are not repeated here.
According to an embodiment of the present disclosure, in the second application scenario, operation S210 may be performed, for example, after the first electronic device 110 receives an input operation that the second electronic device 120 sends to the target display area 121 through the screen-casting application, and generates an input event according to the input operation. The input operation for the target display area 121 sent by the second electronic device 120 may include, for example: an input operation transmitted by an input device (such as a mouse, a keyboard, etc.) accessing the second electronic device 120 in response to an operation of the operation body; and/or a touch operation (e.g., sliding, clicking, etc.) of the target display area 121 in the display screen of the second electronic device 120 by the operating body. According to an embodiment of the present disclosure, the transmitted input operation may be, for example, an operation instruction generated in response to an operator operation to instruct the first electronic device 110 to perform a virtual operation matching the operator operation. For example, as shown in fig. 2C, the input operation may be an input operation transmitted in response to a tap of the physical keyboard 204 in the second electronic device 120 by the operator.
According to the embodiment of the present disclosure, the second electronic device 120 sending the input operation for the target display area through the screen-projecting application may be, for example, transmitting through the aforementioned instruction transmission sub-channel and/or data transmission sub-channel.
In this case, the input method of the first electronic device 110 may be switched to a customized input method for the second electronic device in response to the input event. Therefore, operation S230 is performed, if the input event is a second input event generated by the first electronic device 110 receiving the input operation of the second electronic device 120, and in response to the second input event, the second input method program is set as the input method of the first electronic device 110 according to the second input event.
According to an embodiment of the present disclosure, the second input method program is a program of an input method for the second electronic device 120 installed in the first electronic device 110. The second input method program may be defined with a plurality of input rules, for example, input of copy information by long pressing the letter "c", input of paste information by long pressing the letter "v", input of all contents in the selected display page by long pressing the letter "a", and the like.
According to an embodiment of the present disclosure, the operation S230 may include, for example: in response to the second input event, it is checked whether the current input method of the first electronic device 110 is the second input method program. If the input method program is not the second input method program, the current input method program is switched to the second input method program, so that the second input method program is used as the input method of the first electronic device 110.
According to an embodiment of the present disclosure, the second input event may be, for example, an input event generated by the first electronic device 110 according to an input operation of the second electronic device 120 after the input operation is received. When the second electronic device 120 obtains the input text through the input operation, the second input event obtained through the input operation may include, for example, an input instruction generated according to the input operation and the input text obtained through the input operation, where the input instruction may include, for example, an instruction to perform a virtual input operation on the target input box. Responding to the second input event may include, for example, activating an input box and an input method in response to an instruction to perform a virtual input operation. As shown in fig. 2C, the target input box may be, for example, an input box 203 corresponding to a position in the display area 121 for the input operation in the display page of the first electronic device 110, that is, an input box in which a cursor is located.
According to an embodiment of the present disclosure, when no text input is obtained by the input operation to the second electronic device 120, the generated second input event may include, for example, an operation instruction instructing the first electronic device 110 to perform a virtual operation for the input operation. The response to the second input event includes an operation instruction to perform a virtual operation for the input operation. When the input operation is an input operation transmitted by the mouse in response to the operation of the scroll wheel, the virtual operation may include, for example, a virtual sliding operation on the display screen of the first electronic device 110. When the input operation is an input operation that the mouse transmits in response to a single-click operation on the "primary key", the virtual operation may include, for example, a virtual click operation on the display screen of the first electronic device 110 or the like.
According to the embodiment of the disclosure, the operation of setting the second input method program as the input method of the first electronic device based on the second input event in operation S230 may be implemented through operations S531 to S532 described in fig. 5, for example, and details are not repeated here.
According to an embodiment of the present disclosure, the operation body may be, for example, a user finger, a capacitance pen, a joystick, or the like, which is capable of interacting with the first electronic device 110 or the second electronic device 120.
In summary, the input method of the first electronic device is switched by responding to the obtained input event, so that the input method of the first electronic device can be an input method matched with the electronic device currently operated by the user, and the user can effectively control the screen projection interface. Moreover, when the user switches the electronic equipment for use, the input method of the first electronic equipment can be quickly switched, so that the user experience can be improved to a certain extent.
According to the embodiment of the present disclosure, when the input operation of the second electronic device 120 includes an operation of inputting a text to the target display area 121, in order to add the input text in the target display area 121 in response to the input operation, the input text and an operation instruction for the input operation need to be sent to the first electronic device 110, a virtual operation corresponding to the input operation is performed by the first electronic device 110, and the text is input to an input box in a display page of the first electronic device 110. Thereby enabling an increase in text in the target display area 121. As shown in fig. 2C, when the operator obtains the text "order" through a tapping operation on the physical keyboard 204 in the second electronic device 120, the first electronic device 110 may input an "order" text in the input box 203 according to a virtual operation.
Fig. 3 schematically shows a flowchart of an information processing method according to a second exemplary embodiment of the present disclosure.
The text processing method of the present embodiment may further include operations S340 to S350, as shown in fig. 3, in addition to operations S210 to S230.
In operation S340, a text sent by the second electronic device is obtained, where the text includes at least one character, and the at least one character is a character that the second electronic device converts the key information into a certain character based on the third input method.
According to an embodiment of the present disclosure, the text sent by the second electronic device may be generated, for example, by: the second electronic device 120 determines key information according to the acquired input operation, where the key information may include, for example: information for operating a key in a keyboard accessed to the second electronic device 120, information for operating a control in a virtual keyboard displayed by the second electronic device 120, and/or information for operating a main key of a mouse accessed to the second electronic device 120. And then, converting the key information into determined characters according to a third input method in the second electronic equipment. The third input method may be, for example, a default input method in the second electronic device 120, and the third input method may correspond to the second input method, for example. The text sent by the second electronic device is composed of the plurality of characters obtained through conversion. For example, if the input operation acquired by the second electronic device 120 is a sequential operation of the letter keys "n", "i", and the numeric key "1" in the keyboard, the specified key information is information for operating the keys "n", "i", and "1", and the specified character is converted into "you". After the second electronic device 120 converts the key information into characters, a character string composed of a plurality of characters may be transmitted as text to the first electronic device 110.
In operation S350, text is input into the input box through the second input method program.
According to an embodiment of the present disclosure, the input box may be, for example, an input box in which a cursor is located in a display screen of the first electronic device 110. The operation S350 may include, for example: and determining a virtual input operation aiming at the obtained text based on the second input method program according to the obtained text. The virtual input operation is then performed by the second electronic device 120, thereby inputting text into the text box. For example, if the text includes the character "you," the virtual input operation determined based on the second input method program may include, for example, the following operations arranged in order: virtual clicking of a key MNO in the virtual keyboard corresponding to the second input method, virtual clicking of a virtual keyboard GHI corresponding to the second input method and clicking operation of the character 'you' in the character frame above the virtual keyboard.
According to an embodiment of the present disclosure, in the course of performing operations S230 and S340 to S350, in order to provide a more realistic feeling to the user, the virtual keyboard corresponding to the second input method program may not be displayed in the display page of the first electronic device 110.
In summary, the information processing method implemented by the present disclosure can display the text information input by the operation body at the end of the second electronic device 120 in the text box of the display page of the first electronic device, and can timely display the target display area at the end of the second electronic device 120 by screen projection, so that a real effect of interaction between the end of the second electronic device 120 and the screen projection interface can be given to a user performing input operation.
Fig. 4 schematically illustrates a flowchart of setting a first input method program as an input method of a first electronic device based on a first input event according to an embodiment of the present disclosure.
As shown in fig. 4, the operation S220 of setting the first input method program as the input method of the first electronic device based on the first input event may include, for example, operations S421 to S422.
In operation S421, an interface of a touch input device of a first electronic device is listened to.
According to an embodiment of the present disclosure, the touch input device may be, for example, an object that is operated by an operator in the input operation, such as a touch display screen or a physical operation key of the first electronic device 110. Operation S421 may include: monitoring a calling interface of a touch display screen or an entity operation key in an operation system of the first electronic equipment to obtain a monitoring result of whether the operation body performs pressing, clicking, sliding and the like on the touch display screen or the entity operation key or not.
And if the operation of the operation body on the touch display screen or the entity operation key is not monitored, the monitoring result represents that the first input event is not generated. If it is monitored that the operation body performs the operation on the touch display screen or the entity operation key, the monitoring result represents that a first input event is generated, and at this time, operation S422 may be performed. In operation S422, if the monitoring result indicates that the first input event is generated, the input method of the first electronic device is switched to the first input method program.
Fig. 5 schematically illustrates a flowchart of setting a second input method program as an input method of the first electronic device based on the second input event according to an embodiment of the present disclosure.
As shown in fig. 5, the operation S230 of setting the second input method program as the input method of the first electronic device based on the second input event may include, for example, operations S531 to S532.
In operation S531, a call interface of a screen-casting application of the first electronic device is monitored.
According to an embodiment of the present disclosure, the first electronic device 110 and the second electronic device 120 may be respectively installed with a screen-projecting application, and the transmission of the page data and the input operation is performed through a connection channel established by the screen-projecting application, so that the display page of the first electronic device 110 is projected to the target display area 121 of the second electronic device 120. Considering that the display information of the target display area 121 is the display page of the first electronic device 110, when the operation body operates the screen projection page of the target display area 121 through the second electronic device 120, in order to obtain an effect that the screen projection page can respond to the operation, the second electronic device 120 needs to transmit an input operation (for example, a obtained operation instruction and/or text) obtained according to the operation to the first electronic device 110 through the connection channel. So that the first electronic device 110 changes the display page of the first electronic device 110 in response to the input operation, thereby changing the display information in the target display area 121.
When the input operation sent by the second electronic device is an operation instruction, considering that the operating systems of the first electronic device 110 and the second electronic device 120 are different, after receiving the operation instruction, the first electronic device 110 needs to convert the operation instruction into an analog input event for the operation instruction, which can be recognized by the operating systems. The analog input event is then sent to the operating system for the operating system to perform the analog input. The call interface of the screen projection application listened in operation S531 may be, for example, a call interface between the operating system and the screen projection application, so as to send the simulated input event to the operating system through the call interface. Accordingly, it can be obtained through operation S531 whether the screen casting application transmits a listening result simulating an input event to the operating system.
When the input operation sent by the second electronic device includes a text and an operation instruction, in order to facilitate the first electronic device 110 to input the text, the first electronic device 110 needs to generate a simulation input event for setting an input method program in response to receiving the operation instruction. The simulated input event is then sent to the operating system, which sets the input method program in response to the simulated input event. The calling interface of the screen casting application listened in operation S531 may be an interface for the screen casting application to send the analog input event to the operating system. Accordingly, it can be obtained through operation S531 whether the screen casting application transmits a listening result simulating an input event to the operating system.
According to the embodiment of the disclosure, when the monitoring result is that the screen-casting application does not send the analog input event, the monitoring result may represent that the analog input event is not generated, and the second electronic device 120 does not receive the input operation, and the input method of the first electronic device 110 does not need to be switched.
According to the embodiment of the disclosure, when the monitoring result sends the analog input event to the screen-casting application, the monitoring result may represent that the analog input event is generated and the second electronic device 120 receives the input operation. In order to enable the input method of the first electronic device 110 to accurately input the received text, the input method program needs to be set as the second input method program for the second electronic device 120. Therefore, operation S532 is performed, and if the listening result indicates that the second input event is generated, the input method of the first electronic device is switched to the second input method program.
According to the embodiment of the present disclosure, when the input operation sent by the second electronic device includes a text and an operation instruction, considering that the input methods in the first electronic device 110 and the second electronic device 120 are different, after the first electronic device 110 receives the text, in order to facilitate inputting the text into the text box through operation S350, the text needs to be converted into a virtual operation instruction that can be recognized by the input method program in the first electronic device 110. The virtual operating instruction is then sent to the input method program, so that the input method program gets the text in response to the virtual operating instruction. In order to enable the first electronic device 110 to accurately input text, operation S532 needs to be performed to switch the input method of the first electronic device 110 to the second input method program before the virtual operation instruction is sent to the input method program.
The second input event in operation S532 is the aforementioned analog input event. The analog input event may be, for example, an analog input event for an operation instruction converted by a screen-casting application installed in the first electronic device 110 based on the operation instruction transmitted by the second electronic device. The operation instruction is an operation instruction generated by the second electronic device 120 obtaining an input operation for the screen-projection interface. The screen projection interface is a real-time interface in which the screen projection application obtains real-time display data of the display screen of the first electronic device and sends the real-time display data to the second electronic device 120 through a connection channel between the first electronic device 110 and the second electronic device 120 for direct display.
According to the embodiment of the present disclosure, in order to provide a more realistic effect of manipulating the screen-projection interface to the user during the process that the user inputs text through the second electronic device 120, the first electronic device 110 may further acquire a cursor position in the input box in real time and transmit the cursor position to the second electronic device 120 in real time when the text is input into the input box through operation S350. The second electronic device 120 may adjust a position where an input method (e.g., the third input method) in the second electronic device 120 appears according to a cursor position of the input box received in real time. Therefore, the effect that the input method moves along with the cursor position is achieved, the interaction between the user and the screen projection interface is more real, and the operation habit of the user is better met.
Fig. 6A schematically shows a flowchart of an information processing method according to a third exemplary embodiment of the present disclosure, and fig. 6B schematically shows an effect diagram obtained according to the information processing method in fig. 6A.
As shown in fig. 6A, the information processing method according to the embodiment of the present disclosure may include, for example, operations S660 to S680, in addition to operations S210 to S230, and operations S340 to S350. The operations S660 to S680 are performed in real time during the performance of the operation S350.
In operation S660, a cursor position of a cursor for inputting text into an input box is determined when the text is input into the input box by the second input method program.
According to an embodiment of the present disclosure, the cursor position obtained in operation S660 may be, for example, a position of a cursor on a display screen of the first electronic device 110. The position may include, for example, a coordinate position of a cursor determined with a center or any corner of the display screen of the first electronic device 110 as a coordinate origin. The cursor position can be obtained, for example, by using JavaScript to operate dom. It is to be understood that the above-mentioned cursor position obtaining method is only an example to facilitate understanding of the present disclosure, and the present disclosure does not limit this.
In operation S670, the cursor position is converted into a corresponding position on a current display interface of a display screen of the second electronic device.
According to an embodiment of the present disclosure, the operation S670 may include, for example: the coordinates of the cursor displayed in the second electronic device 120 with respect to the second electronic device 120 are determined according to the position of the target display area 121 in the second electronic device 120 and the cursor position. For example, if the position of the target display area 121 in the second electronic device 120 relative to the upper left corner of the display screen of the second electronic device 120 is (x1, y1) and the coordinate position determined in operation S660 is (x0, y0), the corresponding position on the current display interface of the display screen of the second electronic device determined in operation S670 is (x0+ x1, y0+ y 1).
In operation S680, the corresponding position is sent to the second electronic device through a connection channel between the first electronic device and the second electronic device, so that the second electronic device displays an input interface of the third input method at a position, which is matched with the corresponding position, on the screen projection interface when inputting based on the third input method.
According to the embodiment of the present disclosure, after the corresponding position is sent to the second electronic device 120, the second electronic device determines the display position of the third input method according to the corresponding position, where the display interface of the third input method is the position matched with the corresponding position. The position of the cursor of the second electronic device in the target display area 121 corresponds to the position of the input method of the second electronic device 120. For example, if the corresponding position converted in operation S670 is (x0+ x1, y0+ y1), the position matched with the corresponding position is (x0+ x1+ Δ x, y0+ y1+ Δ y). The Δ X and Δ Y may be fixed values, for example, which are distance differences between the display position and the corresponding position of the third input method in the coordinate system established according to the second electronic device 120 with respect to the X axis and the Y axis. As shown in fig. 6B, a third input method 601 may be displayed at the matched location. When the value y0 in the coordinate value of the cursor position acquired in operation S660 changes, the coordinate of the position displayed by the third input method 601 (y0+ y1+ Δ y) also changes.
Fig. 7 schematically shows a block diagram of the structure of an information processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 7, the information processing apparatus 700 of the embodiment of the present disclosure may include an event obtaining module 710, a first event responding module 720, and a second event responding module 730.
The event obtaining module 710 is configured to obtain an input event (operation S210).
The first event response module 720 is configured to, if the input event is a first input event generated by the first electronic device sensing an input operation, set a first input method program as an input method of the first electronic device based on the first input event in response to the first input event (operation S220).
The second event response module 730 is configured to, if the second input event is a second input event generated by the first electronic device receiving an input operation of the second electronic device, respond to the second input event and set a second input method program as an input method of the first electronic device based on the second input event (operation S230). The second electronic equipment is connected with the first electronic equipment.
According to an embodiment of the present disclosure, as shown in fig. 7, the information processing apparatus 700 may further include a text obtaining module 740 and a text input module 750, for example. The text obtaining module 740 is configured to obtain a text sent by the second electronic device, where the text includes at least one character, and the at least one character is a character determined by the second electronic device converting the key information based on the third input method (operation S340). The text input module 750 is used to input text into the input box through the second input method program (operation S350).
According to an embodiment of the present disclosure, the responding to the first input event includes activating an input box and an input method of the first electronic device. Responding to the second input event includes activating the input box and the input method of the first electronic device.
According to an embodiment of the present disclosure, as shown in fig. 7, the first event response module 720 may include, for example, a first listening submodule 721 and a first switching submodule 722. The first listening sub-module 721 is used for listening to an interface of a touch input device of the first electronic apparatus (operation S340). The first switching sub-module is configured to switch the input method of the first electronic device to the first input method program if the monitoring result represents that the first input event is generated (operation S350). Wherein the first input event is a real input event.
According to an embodiment of the present disclosure, as shown in fig. 7, the second event response module 730 may include, for example, a second listening sub-module 731 and a second switching sub-module 732. The second listening sub-module 731 is configured to listen to a call interface of the screen projection application of the first electronic device (operation S531). The second switching sub-module 732 is configured to switch the input method of the first electronic device to a second input method program if the listening result indicates that a second input event is generated (operation S532). The second input event is a simulation input event, and the simulation input event comprises a simulation input event which is converted into an operation instruction by the screen-casting application based on the operation instruction sent by the second electronic equipment; the operation instruction is generated by the second electronic device obtaining input operation aiming at the screen projection interface, and the screen projection interface is a real-time interface which is used by the screen projection application and is sent to the second electronic device for direct display through a connecting channel between the first electronic device and the second electronic device based on the obtained real-time display data of the display screen of the first electronic device.
According to an embodiment of the present disclosure, as shown in fig. 7, the information processing apparatus 700 may further include a cursor position determining module 760, a position converting module 770, and a position transmitting module 780. The cursor position determining module 760 is used to determine a cursor position of a cursor for inputting text into the input box when the text is input into the input box through the second input method program (operation S660). The position conversion module 770 is configured to convert the cursor position to a corresponding position on a current display interface of a display screen of the second electronic device (operation S670). The position sending module 780 is configured to send the corresponding position to the second electronic device through a connection channel between the first electronic device and the second electronic device, so that the second electronic device displays an input interface of the third input method at a position, which is matched with the corresponding position, on the screen projection interface when inputting based on the third input method (operation S680).
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the event obtaining module 710, the first event response module 720, the second event response module 730, the text obtaining module 740, the text input module 750, the cursor position determination module 760, the position conversion module 770, the position transmission module 780, the first listening sub-module 721, the first switching sub-module 722, the second listening sub-module 731, and the second switching sub-module 732 may be combined in one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in one module. According to an embodiment of the present disclosure, for example, at least one of the event obtaining module 710, the first event responding module 720, the second event responding module 730, the text obtaining module 740, the text input module 750, the cursor position determining module 760, the position converting module 770, the position transmitting module 780, the first listening sub-module 721, the first switching sub-module 722, the second listening sub-module 731, and the second switching sub-module 732 may be at least partially implemented as a hardware circuit, such as Field Programmable Gate Arrays (FPGAs), Programmable Logic Arrays (PLAs), systems on a chip, systems on a substrate, systems on a package, Application Specific Integrated Circuits (ASICs), or may be implemented in hardware or firmware in any other reasonable way to integrate or package circuits, or in any one of three implementations, software, hardware and firmware, or in any suitable combination of these. Alternatively, for example, at least one of the event obtaining module 710, the first event response module 720, the second event response module 730, the text obtaining module 740, the text input module 750, the cursor position determining module 760, the position conversion module 770, the position transmitting module 780, the first listening sub-module 721, the first switching sub-module 722, the second listening sub-module 731 and the second switching sub-module 732 may be implemented at least in part as a computer program module that, when executed, may perform corresponding functions.
Fig. 8 schematically shows a block diagram of an electronic device adapted to perform an information processing method according to an embodiment of the present disclosure.
As shown in fig. 8, electronic device 800 includes a processor 810 and a computer-readable storage medium 820. The electronic device 800 may perform an information processing method according to an embodiment of the present disclosure.
In particular, processor 810 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 810 may also include on-board memory for caching purposes. Processor 810 may be a single processing unit or a plurality of processing units for performing different actions of a method flow according to embodiments of the disclosure.
Computer-readable storage medium 820, for example, may be a non-volatile computer-readable storage medium, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 820 may include a computer program 821, which computer program 821 may include code/computer-executable instructions that, when executed by the processor 810, cause the processor 810 to perform a method according to an embodiment of the present disclosure, or any variation thereof.
The computer program 821 may be configured with computer program code, for example, comprising computer program modules. For example, in an example embodiment, code in computer program 821 may include one or more program modules, including for example 821A, modules 821B, … …. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, when the program modules are executed by the processor 810, the processor 810 may execute the method according to the embodiment of the present disclosure or any variation thereof.
According to an embodiment of the present invention, at least one of the event obtaining module 710, the first event responding module 720, the second event responding module 730, the text obtaining module 740, the text input module 750, the cursor position determining module 760, the position converting module 770, the position transmitting module 780, the first listening sub-module 721, the first switching sub-module 722, the second listening sub-module 731, and the second switching sub-module 732 may be implemented as a computer program module described with reference to fig. 8, which when executed by the processor 810 may implement the corresponding operations described above.
The present disclosure also provides a computer-readable storage medium, which may be embodied in the device/apparatus/system described in the above embodiments; or may exist alone without being assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement a method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments of the present disclosure and/or the claims may be made without departing from the spirit and teachings of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. An information processing method, comprising:
obtaining an input event;
if the input event is a first input event generated by the first electronic equipment sensing input operation, responding to the first input event, and setting a first input method program as an input method of the first electronic equipment based on the first input event;
If the input event is a second input event generated by the first electronic equipment receiving input operation of second electronic equipment, responding to the second input event, setting a second input method program as an input method of the first electronic equipment based on the second input event,
wherein the input operation of the second electronic device comprises: the input operation is sent in response to the knocking of an operator on a physical keyboard in the second electronic equipment;
the second input event comprises: after receiving the input operation of the second electronic equipment, the first electronic equipment generates an input event according to the input operation of the second electronic equipment;
the second electronic device is connected with the first electronic device.
2. The method of claim 1, further comprising:
obtaining a text sent by the second electronic device, wherein the text comprises at least one character, and the at least one character is determined by converting key information of the second electronic device based on a third input method; and
and inputting the text into an input box through the second input method program.
3. The method of claim 2, wherein:
The responding to the first input event comprises activating the input box and an input method of the first electronic device;
the responding to the second input event includes activating the input box and an input method of the first electronic device.
4. The method of claim 2, wherein setting a first input method program as the input method for the first electronic device based on the first input event comprises:
monitoring an interface of a touch input device of the first electronic equipment;
if the monitoring result represents that the first input event is generated, switching the input method of the first electronic equipment to the first input method program,
wherein the first input event is a real input event.
5. The method of claim 2, wherein setting a second input method program as the input method for the first electronic device based on the second input event comprises:
monitoring a calling interface of screen projection application of the first electronic equipment;
if the monitoring result represents that the second input event is generated, switching the input method of the first electronic equipment to the second input method program,
the second input event is a simulated input event, and the simulated input event comprises a conversion of the screen-casting application into a simulated input event aiming at an operation instruction based on the operation instruction sent by the second electronic equipment; the operation instruction is generated by the second electronic device obtaining input operation aiming at a screen projection interface, and the screen projection interface is a real-time interface which is generated by the screen projection application based on obtaining real-time display data of a display screen of the first electronic device and sending the real-time display data to the second electronic device through a connecting channel between the first electronic device and the second electronic device for direct display.
6. The method of claim 5, further comprising:
determining a cursor position of a cursor in the input box for the text input when the text is input into the input box by the second input method program;
converting the cursor position into a corresponding position on a current display interface of a display screen of the second electronic device; and
and sending the corresponding position to the second electronic equipment through a connecting channel between the first electronic equipment and the second electronic equipment, so that the second electronic equipment displays an input interface of the third input method on a screen projection interface at a position matched with the corresponding position when inputting based on the third input method.
7. An information processing apparatus includes:
the event acquisition module is used for acquiring an input event;
the first event response module is used for responding to a first input event generated when the first electronic equipment senses an input operation and setting a first input method program as an input method of the first electronic equipment based on the first input event if the input event is the first input event;
a second event response module, configured to respond to a second input event generated by the first electronic device receiving an input operation of a second electronic device if the input event is the second input event, set a second input method program as an input method of the first electronic device based on the second input event,
Wherein the input operation of the second electronic device comprises: the input operation is sent in response to the knocking of an operator on a physical keyboard in the second electronic equipment;
the second input event comprises: after receiving the input operation of the second electronic equipment, the first electronic equipment generates an input event according to the input operation of the second electronic equipment;
the second electronic device is connected with the first electronic device.
8. The apparatus of claim 7, further comprising:
the text obtaining module is used for obtaining a text sent by the second electronic equipment, wherein the text comprises at least one character, and the at least one character is determined by converting the key information by the second electronic equipment based on a third input method; and
and the text input module is used for inputting the text into the input box through the second input method program.
9. The apparatus of claim 8, wherein:
the responding to the first input event comprises activating the input box and an input method of the first electronic device;
the responding to the second input event includes activating the input box and an input method of the first electronic device.
10. An electronic device, comprising:
one or more processors; and
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
CN201911112034.9A 2019-11-13 2019-11-13 Information processing method and device and electronic equipment Active CN110837308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911112034.9A CN110837308B (en) 2019-11-13 2019-11-13 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911112034.9A CN110837308B (en) 2019-11-13 2019-11-13 Information processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110837308A CN110837308A (en) 2020-02-25
CN110837308B true CN110837308B (en) 2022-06-28

Family

ID=69574924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911112034.9A Active CN110837308B (en) 2019-11-13 2019-11-13 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110837308B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787410B (en) * 2020-07-03 2022-03-29 三星电子(中国)研发中心 Keyboard input method and keyboard input device
CN115700460A (en) * 2021-07-26 2023-02-07 上海擎感智能科技有限公司 Content input control method, system, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094371A (en) * 2015-08-28 2015-11-25 努比亚技术有限公司 Text input mode switching apparatus and method for mobile terminal
CN106383652A (en) * 2016-08-31 2017-02-08 北京极维客科技有限公司 Virtual input method and system apparatus
CN108900697A (en) * 2018-05-30 2018-11-27 武汉卡比特信息有限公司 Terminal word information input system and method when mobile phone and computer terminal interconnect
CN109582210A (en) * 2018-12-19 2019-04-05 虚拟现实(深圳)智能科技有限公司 A kind of input method and system
CN110417992A (en) * 2019-06-20 2019-11-05 华为技术有限公司 A kind of input method, electronic equipment and throw screen system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838466B (en) * 2014-03-10 2017-07-25 联想(北京)有限公司 Information processing method, device and electronic equipment
CN105282318B (en) * 2015-05-21 2019-04-09 维沃移动通信有限公司 Input method switching method and its mobile terminal
US9658817B2 (en) * 2015-10-15 2017-05-23 Optim Corporation Screen sharing terminal, method of screen sharing, and program for screen sharing terminal
US20180329622A1 (en) * 2017-05-12 2018-11-15 Apple Inc. Portable Computing Input Devices and Methods

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094371A (en) * 2015-08-28 2015-11-25 努比亚技术有限公司 Text input mode switching apparatus and method for mobile terminal
CN106383652A (en) * 2016-08-31 2017-02-08 北京极维客科技有限公司 Virtual input method and system apparatus
CN108900697A (en) * 2018-05-30 2018-11-27 武汉卡比特信息有限公司 Terminal word information input system and method when mobile phone and computer terminal interconnect
CN109582210A (en) * 2018-12-19 2019-04-05 虚拟现实(深圳)智能科技有限公司 A kind of input method and system
CN110417992A (en) * 2019-06-20 2019-11-05 华为技术有限公司 A kind of input method, electronic equipment and throw screen system

Also Published As

Publication number Publication date
CN110837308A (en) 2020-02-25

Similar Documents

Publication Publication Date Title
CN110597474B (en) Information processing method and electronic equipment
US11431784B2 (en) File transfer display control method and apparatus, and corresponding terminal
US10996774B2 (en) Method and apparatus for providing interoperability between devices
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
US8886763B2 (en) Method and apparatus for providing interoperability between devices
US10462243B2 (en) Method and device for interaction between terminals
JP2018504798A (en) Gesture control method, device, and system
CN110837308B (en) Information processing method and device and electronic equipment
US11349976B2 (en) Information processing method, file transmission method, electronic apparatus, and computing apparatus
WO2022111397A1 (en) Control method and apparatus, and electronic device
CN110908757A (en) Method and related device for displaying media content
CN112817555B (en) Volume control method and volume control device
CN107948756B (en) Video synthesis control method and device and corresponding terminal
CN110737380B (en) Thinking guide graph display method and device, storage medium and electronic equipment
CN108920086B (en) Split screen quitting method and device, storage medium and electronic equipment
CN116594616A (en) Component configuration method and device and computer readable storage medium
CN114911404A (en) Interface control method, control system, electronic device and storage medium
CN113325980B (en) Control method, control device, electronic equipment and readable storage medium
CN110928508B (en) Control method and electronic equipment
US10073611B2 (en) Display apparatus to display a mirroring screen and controlling method thereof
JP2023527236A (en) APPLICATION CONTROL METHOD, APPARATUS AND ELECTRONIC DEVICE
CN112162838B (en) Multimedia file playing method and device and electronic equipment
KR20130085604A (en) Method and device for controlling user input using paired display
CN110620845B (en) Information processing method, electronic device and computing device
CN117354414A (en) Processing method and processing device

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