Search

CN-121979595-A - Display method and device of input method content, electronic equipment and storage medium

CN121979595ACN 121979595 ACN121979595 ACN 121979595ACN-121979595-A

Abstract

The application provides a display method, a device, electronic equipment and a computer readable storage medium of input method content, which comprise the steps of running a target application program of a second operating system based on a compatible application program installed in user equipment, wherein the target application program comprises a main window and a sub window, acquiring input information of the text input operation through an interception processing function of the compatible application program when text input operation of a target input method type is detected and the processes of the sub window and the main window are determined to be different, and transmitting the input information to the sub window for display through the interception processing function. The method solves the problem that the cross-process window cannot target input information of the input method type under the condition of being compatible with the application program, and improves user experience.

Inventors

  • Request for anonymity
  • Request for anonymity
  • Request for anonymity

Assignees

  • 中科方德软件有限公司

Dates

Publication Date
20260505
Application Date
20251210

Claims (10)

  1. 1. A method for displaying input method content, applied to user equipment of a first operating system, the method comprising: Running a target application program of a second operating system based on a compatible application program installed in the user equipment, wherein the target application program comprises a main window and a sub window; When text input operation of a target input method type is detected, and the processes of the sub window and the main window are different, acquiring input information of the text input operation through an interception processing function of the compatible application program; and sending the input information to the sub-window for display through the interception processing function.
  2. 2. The method for displaying content of an input method according to claim 1, further comprising: When focus information corresponding to the child window is detected in a preset shared memory area and the child window is determined to be a target window type, determining that the processes of the child window and the main window are different; the target window type is used for indicating that the processes of the child window and the main window respectively belong to are different; the step of sending the input information to the sub-window for display through the interception processing function comprises the following steps: and sending the input information to the sub-window for display based on the focus information of the sub-window through the interception processing function.
  3. 3. The method according to claim 2, wherein the focus information includes a handle of the child window, the handle indicating an address of the child window; the step of sending the input information to the sub-window for display based on the focus information of the sub-window through the interception processing function comprises the following steps: And according to the indication of the handle of the child window, the input information is sent to the child window for display through the interception processing function call NtUserMessageCall interface.
  4. 4. The method for displaying content of an input method according to claim 2, further comprising: Responding to clicking operation of a window in the target application program, and acquiring focus information of the window receiving the clicking operation; and recording the focus information of the window receiving the clicking operation in the shared memory.
  5. 5. The method for displaying content of an input method according to claim 1, further comprising: And when the text input operation comprising Chinese content is detected, determining that the text input operation is the target input method type.
  6. 6. The method for displaying contents according to claim 1, further comprising, before the obtaining the input information of the text input operation by the interception processing function of the compatible application: binding the input context of the child window with the input context of the main window; the obtaining the input information of the text input operation includes: Detecting the window position of the sub window; And under the condition that the sub window is determined to be at the top window position, acquiring the input information of the text input operation.
  7. 7. The method for displaying content of an input method according to claim 1, further comprising: When text input operation of a non-target input method type is detected or the fact that the processes of the sub-window and the main window are the same is determined, input information of the text input operation is obtained through the compatible application program, and the input information is sent to the sub-window for display; When text input operation of a non-target input method type is detected, and the processes of the sub-window and the main window are different, acquiring the input information through a COM interface of the compatible application program, and sending the input information to the sub-window for display.
  8. 8. A display device of input method content, applied to an electronic device running a first operating system, characterized in that the device comprises: The running module is used for running a target application program of the second operating system based on the compatible application program installed in the user equipment, wherein the target application program comprises a main window and a sub window; the acquisition module is used for acquiring input information of the text input operation through the interception processing function of the compatible application program when the text input operation of the target input method type is detected and the processes of the sub window and the main window are different; And the display module is used for sending the input information to the child window for display through the interception processing function.
  9. 9. An electronic device is characterized by comprising a processor; A memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 7.
  10. 10. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1 to 7.

Description

Display method and device of input method content, electronic equipment and storage medium Technical Field The present application relates to the field of computer technologies, and in particular, to a method and apparatus for displaying content of an input method, an electronic device, and a computer readable storage medium. Background An application may implement the corresponding function through interaction of multiple application windows, but there are different processes to which each of the multiple windows belongs, where if the application loads window B by way of ActiveX (an independent process based on a component object model (COM, component Object Model)), then window B is different from the process to which the application itself belongs to the main window a. At present, the first operating system can provide compatible application programs, and the application programs of the second operating system can run in the user equipment of the first operating system through the compatible application programs, so that cross-system compatible running of the application programs is achieved. Under the scene, a user can realize the purpose of transmitting input content to the window B for display through the input method control. However, in the current scheme, because the realization of the COM by the compatible application program is imperfect, the window B cannot normally receive some specific messages, so that the input method is imperfect in function and the user experience is affected. Disclosure of Invention The embodiment of the application provides a method and a device for displaying input method content, which are used for solving the problems that in the prior art, due to imperfect realization of a compatible application program on COM, a window B cannot normally receive some specific messages, so that the input method is imperfect in function and user experience is influenced. In a first aspect, an embodiment of the present application provides a method for displaying content of an input method, which is applied to a user device of a first operating system, where the method includes: Running a target application program of a second operating system based on a compatible application program installed in the user equipment, wherein the target application program comprises a main window and a sub window; When text input operation of a target input method type is detected, and the processes of the sub window and the main window are different, acquiring input information of the text input operation through an interception processing function of the compatible application program; and sending the input information to the sub-window for display through the interception processing function. In a second aspect, an embodiment of the present application provides a display apparatus for inputting content by a method, which is applied to a user equipment of a first operating system, where the apparatus includes: The running module is used for running a target application program of the second operating system based on the compatible application program installed in the user equipment, wherein the target application program comprises a main window and a sub window; the acquisition module is used for acquiring input information of the text input operation through the interception processing function of the compatible application program when the text input operation of the target input method type is detected and the processes of the sub window and the main window are different; And the display module is used for sending the input information to the child window for display through the interception processing function. In a third aspect, an embodiment of the present application further provides an electronic device, including a processor; A memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of the first aspect. In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method of the first aspect. The embodiment of the application can install the compatible application program in the user equipment of the first operating system, and the function of the compatible application program is to run the target application program of the second operating system in the user equipment of the first operating system. When text input operation of a target input method type is detected and different scenes of processes of the sub-window and the main window are determined, input information of the text input operation can be obtained through interception processing functions compatible with application programs, and the input information is sent to the sub-window for display. The interception processing function is a function specifically developed for the scene, is triggered wh