CN116880939A - Handwriting erasing method, handwriting erasing device, electronic equipment and computer readable storage medium - Google Patents

Handwriting erasing method, handwriting erasing device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116880939A
CN116880939A CN202310695953.3A CN202310695953A CN116880939A CN 116880939 A CN116880939 A CN 116880939A CN 202310695953 A CN202310695953 A CN 202310695953A CN 116880939 A CN116880939 A CN 116880939A
Authority
CN
China
Prior art keywords
target window
mask layer
handwriting
mouse
mouse information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310695953.3A
Other languages
Chinese (zh)
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.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information Technology Co 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 Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN202310695953.3A priority Critical patent/CN116880939A/en
Publication of CN116880939A publication Critical patent/CN116880939A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a handwriting erasing method, a handwriting erasing device, electronic equipment and a computer readable storage medium, wherein the handwriting erasing method comprises the following steps: a first mask layer responds to a first operation and informs a target window of starting an erasing mode, the first mask layer is positioned at the upper layer of the target window, and the first mask layer comprises a toolbar; the second mask layer acquires mouse information and directly sends the mouse information to the target window, wherein the second mask layer is a transparent rendering layer and is positioned on the upper layer of the target window; the target window erases at least part of handwriting indicated by the mouse information. The proposal provided by the application can reduce the performance loss such as time delay for providing mouse information for the target window, reduce the data communication times and the code volume for realizing the erasing function, and improve the erasing efficiency.

Description

Handwriting erasing method, handwriting erasing device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of electronic information processing technology, and in particular, to a handwriting erasing method, apparatus, electronic device, and computer readable storage medium.
Background
At present, more and more teachers use multimedia teaching, and the teacher can open corresponding course software to give lessons to students when in class. The lesson software may include a window in which a teacher may perform writing, drawing, etc., and may display handwriting for writing and drawing. However, during the writing and drawing process of the window, contents needing to be updated or corrected often appear, and some handwriting in the window needs to be erased.
Disclosure of Invention
The application aims to provide a handwriting erasing method, a handwriting erasing device, electronic equipment and a computer readable storage medium, aiming at solving the problems of reducing performance loss such as time delay for providing mouse information to a target window and reducing data communication times.
A first aspect of an embodiment of the present application proposes a handwriting erasing method, including:
a first mask layer responds to a first operation and informs a target window of starting an erasing mode, the first mask layer is positioned at the upper layer of the target window, and the first mask layer comprises a toolbar;
the second mask layer acquires mouse information and directly sends the mouse information to the target window, wherein the second mask layer is a transparent rendering layer and is positioned on the upper layer of the target window;
the target window erases at least part of handwriting indicated by the mouse information.
In some embodiments, the second mask layer directly sends the mouse information to the target window, including:
the second Meng Ceng generates a simulated mouse event based on the mouse information;
and the second mask layer directly sends the simulated mouse event to the target window.
In some embodiments, the mouse information includes coordinate information and status information.
In some embodiments, the target window erases at least a portion of the handwriting indicated by the mouse information, including:
and adding a transparent track at the position indicated by the mouse information by the target window.
In some embodiments, before the first cover layer informs the target window to start the erase mode in response to the first operation, the handwriting erase method further includes:
creating the first mask layer;
the first mask layer acquires a window handle of the target window;
the first mask layer, in response to a first operation, informs a target window to turn on an erase mode, including:
the first mask layer creates the second mask layer and notifies the target window to turn on the erase mode through the window handle in response to the first operation.
In some embodiments, the first and second cover each cover a different region of the target window.
A second aspect of an embodiment of the present application proposes a handwriting erasing apparatus, including:
the notification module is used for notifying the target window to start an erasure mode by a first mask layer in response to a first operation, wherein the first mask layer is positioned at the upper layer of the target window and comprises a toolbar;
the sending module is used for obtaining mouse information by a second mask layer and directly sending the mouse information to the target window, wherein the second mask layer is a transparent rendering layer and is positioned on the upper layer of the target window;
and the erasing module is used for erasing at least part of handwriting indicated by the mouse information by the target window.
In some embodiments, the sending module is specifically configured to:
the second Meng Ceng generates a simulated mouse event based on the mouse information;
and the second mask layer directly sends the simulated mouse event to the target window.
A third aspect of the embodiments of the application proposes an electronic device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the steps of the method as described above when said computer program is executed.
A fourth aspect of the embodiments of the present application proposes a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method as described above.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
in the embodiment of the application, the first mask layer may inform the target window to start the erase mode in response to the first operation. The second mask layer is a transparent rendering layer positioned on the upper layer of the target window, so that input mouse information can be obtained through the second mask layer, the mouse information is sent to the target window through the second mask layer, and the erasing operation indicated by the mouse information is executed through the target window, so that handwriting in the target window is erased, and the writing and drawing contents in the target window can be updated or corrected conveniently. And the second mask layer can directly provide the mouse information for the target window, so that the performance loss such as time delay for providing the mouse information for the target window can be reduced, the data communication times and the code volume for realizing the erasing function are reduced, and the erasing efficiency is improved.
Drawings
FIG. 1 is a flow chart of a handwriting erase method;
FIG. 2 is a flowchart of a handwriting erasing method according to an embodiment of the present application;
FIG. 3 is a diagram showing a relationship between a mask layer and a window according to an embodiment of the present application;
FIG. 4 is a flowchart of a handwriting erasing method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a handwriting erasing apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects to be solved more clear, the application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It will be understood that when an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
It is to be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are merely for convenience in describing and simplifying the description based on the orientation or positional relationship shown in the drawings, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus are not to be construed as limiting the application.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
FIG. 1 shows a flow chart of a handwriting erase method. The method comprises the following steps:
s101, instantiating a toolbar.
When an application is launched, the main program of the application may display the target window and instantiate the toolbar.
S102, when a user clicks an erasing tool in the toolbar, the toolbar creates a mask.
S103, when the mask layer acquires the simulated mouse event, mouse information is sent to the main program.
The mask layer can acquire mouse information from the simulated mouse event.
S104, the main program forwards the mouse information to the target window.
In the method shown in fig. 1, the cover layer is required to send the mouse information to the main program, and then the main program sends the mouse information to the target window, namely, two times of data communication are required to send the mouse information to the target window, so that the time delay for providing the mouse information to the target window is larger, the performance loss is serious, the erasing efficiency is reduced, and a huge code volume is required to realize the erasing function.
Fig. 2 shows a flowchart of a handwriting erasing method according to an embodiment of the present application. The method comprises the following steps:
s201, the first mask layer responds to the first operation and notifies the target window to start an erasing mode, the first mask layer is arranged on the upper layer of the target window, and the first mask layer comprises a toolbar.
The first operation may be used to trigger an erase mode to erase handwriting in the target window. When the first mask layer responds to the first operation and notifies the target window to start the erasing mode, the target window can be enabled to determine the data or operation received subsequently, and handwriting in the target window can be erased.
In some embodiments, the first cover layer may cover at least a partial area of the target window. In some embodiments, as shown in fig. 3, the first cover layer may cover an area of a preset size of the edge of the target window. It will be appreciated that the embodiment of the present application is not limited to the position and size of the first mask.
In some implementations, the toolbar may be a toolbar programmed based on a machine language such as C++. In some implementations, the toolbar may include at least one tool for acting on the target window such that a user may operate on the target window based on the tool. In some implementations, the toolbar may include an erasure tool such that the first operation may be received by the erasure tool. It will be appreciated that in practical applications, the toolbar may further include more tools, and the embodiment of the present application does not limit the number and types of tools included in the toolbar. It will also be appreciated that in actual practice, the first operation may be another type of operation, such as a voice command "on erase mode".
In some implementations, the target window can be a window that includes handwriting to be erased. For example, the target window may be a window of curriculum software that may present courseware and handwriting written by a user such as a teacher. For another example, the target window may be a window of web conferencing software that may present a conference interface and handwriting written by users such as conferees. In some implementations, the target window can include a World Wide Web (Web) page.
In some implementations, the target window can be notified to turn on the erase mode by a window handle (Handle to A Window, HWND) of the target window.
Wherein the window handle of the target window may be used to identify the target window. And it will be appreciated that in practical applications, the window handle may be replaced with other information that identifies the target window.
In some implementations, the window handle for a target window can be obtained when the target window is created. In some embodiments, the window handle of the target window may be obtained by invoking the initHWND method. Of course, in practical application, the window handle of the target window may be acquired in other manners or at other times, or the target window may be identified in other manners, which is not limited herein.
S202, a second mask layer acquires mouse information and directly sends the mouse information to a target window, wherein the second mask layer is a transparent rendering layer and is positioned on the upper layer of the target window.
Because the second mask layer is a transparent rendering layer positioned on the upper layer of the target window, the input mouse information can be acquired through the second mask layer, and then the mouse information is directly sent to the target window through the second mask layer, so that the target window can acquire the mouse information conveniently. The second mask layer directly provides the mouse information for the target window, so that performance loss such as time delay for providing the mouse information for the target window can be reduced, data communication times and code volume for realizing an erasing function are reduced, and the erasing efficiency is improved.
In some implementations, the second mask layer can correspond to a target window. In some embodiments, the second mask may cover at least a partial region of the target window, so that input mouse information for erasing handwriting of the target window in the at least partial region can be acquired through the second mask. In some embodiments, the second cover layer may cover an area in the target window for writing.
In some embodiments, the first skin may be another skin at the same level as the second skin, or the first skin may be the same skin as the second skin. In some embodiments, the first and second cover each cover a different region of the target window. In some embodiments, as shown in FIG. 3, a first overlay covers an edge region of the target window, a toolbar may be included in the first overlay, and a second overlay covers other regions of the target window other than the first overlay, all for the user to write handwriting. It is understood that in practical applications, the first cover layer and the second cover layer may have other positional relationships.
In some implementations, the mouse information may include at least one of coordinate information and status information. Wherein the coordinate information may be used to indicate a position of the mouse in the desktop, and the status information may be used to indicate an operation status of the mouse. In some embodiments, the status information may indicate at least one of whether at least one button on the mouse is pressed, whether a wheel of the mouse is toggled, and whether a trackball of the mouse is toggled. It will be appreciated that in actual practice, the mouse information may include more or less mouse-related information.
In some embodiments, the electronic device includes a mouse, and the user may input the mouse information by dragging the mouse or pressing a button on the mouse, and accordingly, the second mask layer may obtain the mouse information from the mouse. In some embodiments, the electronic device includes a touch screen, and the user may input mouse information on the touch screen via a finger or a stylus, and accordingly, the second cover layer may receive the mouse information from the touch screen, or may obtain the mouse information from the touch screen and the stylus. It will be appreciated that in practical applications, the second mask layer may also obtain the mouse information from other input devices.
In some embodiments, the second skin may be created before mouse information is acquired through the second skin. In some embodiments, in response to the first operation, a second mask may be created and an erase mode may be turned on to the notification target window, and then mouse information may be acquired through the second mask.
In some embodiments, a simulated mouse event may be sent to the target window through the second skin, the simulated mouse event including mouse information. In some embodiments, the PostMessage method may be invoked by the second mask layer to send the simulated mouse event to the target window. In some implementations, the simulated mouse event may be a simulated event generated based on mouse information. In some implementations, mouse information can be sent to the target window based on the window handle of the target window through the second mask. In some implementations, the mouse information can be sent to the target window based on the window handle of the target window, and the window handle of the target window can be provided to the second mask. For example, the window handle of the target window may be provided to the second skin when the second skin is created.
S203, the target window erases at least part of handwriting indicated by the mouse information.
And executing the erasing operation indicated by the mouse information through the target window, so as to erase at least part of handwriting of the target window.
In some embodiments, the target window may add a transparent track at a location indicated by the mouse information, thereby enabling erasing of handwriting at the location. Of course, in practical applications, the erase operation may be implemented in other ways.
In some embodiments, the simulated mouse event sent by the second mask layer may be detected through the target window, and the mouse information may be obtained from the simulated mouse event.
In some embodiments, the second cover may inform the target window to close the erase mode in response to the second operation, so that the user may continue writing, drawing, and other operations in the target window.
Wherein the second operation may be for turning off the erase mode. In some embodiments, the second operation may include closing or clicking the erasure tool (such as a rubber button) again. Of course, in practical applications, the second operation may be another type of operation, for example, the second operation may be a voice command "turn off erase mode".
In some implementations, the target window can be notified of the erase mode closing by the window handle of the target window.
In the embodiment of the application, the first mask layer may inform the target window to start the erase mode in response to the first operation. The second mask layer is a transparent rendering layer positioned on the upper layer of the target window, so that input mouse information can be obtained through the second mask layer, the mouse information is sent to the target window through the second mask layer, and the erasing operation indicated by the mouse information is executed through the target window, so that handwriting in the target window is erased, and the writing and drawing contents in the target window can be updated or corrected conveniently. And the second mask layer can directly provide the mouse information for the target window, so that the performance loss such as time delay for providing the mouse information for the target window can be reduced, the data communication times and the code volume for realizing the erasing function are reduced, and the erasing efficiency is improved.
FIG. 4 is a flowchart of another handwriting erasing method according to an embodiment of the present application.
S401, instantiating a toolbar and sending a window handle of a target window to the toolbar.
When an application is launched, the application's main program may display the target window and instantiate a toolbar, sending the window handle of the target window to the toolbar.
In some implementations, an application can act as a container that exposes a target window, which can act as a sub-page for the application. For example, the application may be the course software described above, and the target window may be a window for showing courseware. For another example, the application may be web conferencing software and the target window may be a window that exposes a conference file.
In some implementations, the application can be an electron-based cross-platform application. Wherein, electronics is a cross-platform desktop application framework built based on multiple machine languages.
In some implementations, the toolbar may be a toolbar programmed based on a machine language such as C++. In some implementations, the toolbar and application may be the same process. In some implementations, the toolbar and application may be separate threads.
In some implementations, instantiating the toolbar may include displaying the toolbar in the target window such that a user can operate at least one tool (such as an erase tool) included in the toolbar. In some implementations, a toolbar may be displayed on at least one side of the target window. In some implementations, instantiating the toolbar can include creating a first mask.
In some implementations, the window handle of the target window can be sent to the toolbar by invoking the initHWND method. Of course, in practical applications, the window handle of the target window may be sent to the toolbar in other manners, or the target window may be identified in other manners, which is not limited herein.
S402, when a user clicks an erasing tool in the toolbar, the toolbar creates a second mask, and the main program notifies the target window to start an erasing mode.
The user clicks the erasing tool in the toolbar, which is the first operation. In some embodiments, the user may also select at least one of a rubber size and a rubber shape in the toolbar, which may be included in the first operation.
In some embodiments, the target window may be notified to turn on the erase mode by the main program invoking the invokeMethod method so that the target window begins to receive mouse information. Of course, in practical applications, the target window may be notified of the erase mode in other manners.
In some implementations, the first and second masks may belong to the same thread as the toolbar.
S403, when the second mask layer acquires the simulated mouse event, the simulated mouse event is sent to the target window.
In some embodiments, the second mask layer may call a PostMessage method, send a simulated mouse event to the target window, and when the target window listens to and captures the simulated mouse event, may acquire mouse information from the simulated mouse event by calling a listening callback function, and add a transparent track on a corresponding position in the target window based on the position indicated by the mouse information, so as to erase handwriting. In some embodiments, the target window may add a transparent track on the handwriting to be erased in the target window based on at least one of the size and shape of the eraser carried in the first operation, based on the position indicated by the mouse information.
In some implementations, the host program can notify the target window to close the erase mode when the user selects other tools in the toolbar. Wherein the user selects other tools in the toolbar, i.e. can act as a second operation in the foregoing. In some implementations, when the user closes the toolbar, the main program can notify the target window to close the erase mode. In some embodiments, the target window may be notified to close the erase mode by invoking an invokeMethod method.
In the embodiment of the application, the application program can instruct the toolbar to create the second mask layer and inform the target window of starting the erasing mode, the second mask layer can acquire the mouse information and directly send the simulated mouse event to the target window, so that the target window can erase handwriting in the target window based on the mouse information included in the simulated mouse event, and the writing and drawing contents in the target window can be updated or corrected conveniently. And the second mask layer can directly provide the mouse information for the target window, so that the performance loss such as time delay for providing the mouse information for the target window can be reduced, the data communication times and the code volume for realizing the erasing function are reduced, and the erasing efficiency is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Fig. 5 shows a schematic diagram of a handwriting erasing apparatus 500 according to an embodiment of the present application. The apparatus 500 includes:
a notification module 501, configured to notify, in response to a first operation, the target window to start an erase mode, where the first mask is at an upper layer of the target window, and the first mask includes a toolbar;
the sending module 502 is configured to obtain mouse information by using a second mask layer, and directly send the mouse information to the target window, where the second mask layer is a transparent rendering layer and the second mask layer is located on an upper layer of the target window;
and the erasing module 503 is used for erasing at least part of handwriting indicated by the mouse information by the target window.
In some embodiments, the sending module 502 is specifically configured to:
the second mask layer generates a simulated mouse event based on the mouse information;
the second mask directly sends the simulated mouse event to the target window.
In some implementations, the mouse information includes coordinate information and status information.
In some embodiments, the erasing module 503 is specifically configured to:
and adding a transparent track at the position indicated by the mouse information on the target window.
In some embodiments, the apparatus 500 is further configured to: creating a first mask; the first mask layer acquires a window handle of the target window;
the notification module 501 is specifically configured to: the first mask creates a second mask and notifies the target window, via the window handle, to turn on the erase mode in response to the first operation.
In some embodiments, the first and second cover each cover a different region of the target window.
The apparatus 500 shown in fig. 5 may implement the foregoing method embodiment and has the same advantages as the method embodiment.
Fig. 6 shows a schematic diagram of an electronic device according to an embodiment of the present application. As shown in fig. 6, the electronic device 6 of this embodiment includes: a processor 60, a memory 61, a computer program 62 stored in said memory 61 and executable on said processor 60, and a display 63, for example a program for retrieving mouse information. The steps of the various method embodiments described above, such as steps 201 to 203 shown in fig. 2, are implemented when the processor 60 executes the computer program 62. Alternatively, the processor 60 may implement the functions of the modules in the device embodiments described above, such as the notification module 501 to the erase module 503 shown in fig. 5, when executing the computer program 62.
Illustratively, the computer program 62 may be partitioned into one or more modules that are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments describe the execution of the computer program 62 in the electronic device 6. For example, the computer program 62 may be divided into a synchronization module, a summary module, an acquisition module, and a return module (modules in the virtual device), each of which specifically functions as follows:
the electronic device 6 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The electronic device may include, but is not limited to, a processor 60, a memory 61. It will be appreciated by those skilled in the art that fig. 6 is merely an example of the electronic device 6 and is not meant to be limiting as the electronic device 6 may include more or fewer components than shown, or may combine certain components, or different components, e.g., the electronic device may further include an input-output device, a network access device, a bus, etc.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the electronic device 6, such as a hard disk or a memory of the electronic device 6. The memory 61 may be an external storage device of the electronic device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the electronic device 6. The memory 61 is used for storing the computer program and other programs and data required by the electronic device. The memory 61 may also be used for temporarily storing data that has been output or is to be output.
In some embodiments, the electronic device 6 further comprises a display 63. The display 63 may be used to display a human-machine interactive interface such as a target window, handwriting, toolbar, etc. as previously described.
In some embodiments, the display 63 may be a touch screen, and the user may interact with the electronic device 6 by touching or sliding on the display 63 via a limb or a stylus.
In some embodiments, the electronic device 6 includes a mouse, a keyboard, a touch pad, and other peripheral devices, through which a user may interact with the electronic device 6.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional units and modules, that is, the internal structure of the electronic device is divided into different functional units or modules, so as to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed electronic device and method may be implemented in other manners. For example, the above-described embodiments of the electronic device are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by instructing related hardware by a computer program, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of each of the method embodiments described above when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. The handwriting erasing method is characterized by comprising the following steps of:
a first mask layer responds to a first operation and informs a target window of starting an erasing mode, the first mask layer is positioned at the upper layer of the target window, and the first mask layer comprises a toolbar;
the second mask layer acquires mouse information and directly sends the mouse information to the target window, wherein the second mask layer is a transparent rendering layer and is positioned on the upper layer of the target window;
the target window erases at least part of handwriting indicated by the mouse information.
2. The handwriting erasing method of claim 1, wherein the second mask directly transmits the mouse information to the target window, comprising:
the second Meng Ceng generates a simulated mouse event based on the mouse information;
and the second mask layer directly sends the simulated mouse event to the target window.
3. A handwriting erasing method according to claim 1 or 2 and wherein said mouse information comprises coordinate information and status information.
4. The handwriting erasing method of claim 1 or 2, wherein the target window erases at least part of handwriting indicated by the mouse information, comprising:
and adding a transparent track at the position indicated by the mouse information by the target window.
5. The handwriting erase method of claim 1 or 2, wherein before the first mask notifies the target window of turning on the erase mode in response to the first operation, the handwriting erase method further comprises:
creating the first mask layer;
the first mask layer acquires a window handle of the target window;
the first mask layer, in response to a first operation, informs a target window to turn on an erase mode, including:
the first mask layer creates the second mask layer and notifies the target window to turn on the erase mode through the window handle in response to the first operation.
6. A handwriting erasing method according to claim 1 or 2 and wherein said first and second cover each cover a different region of said target window.
7. A handwriting erasing apparatus, comprising:
the notification module is used for notifying the target window to start an erasure mode by a first mask layer in response to a first operation, wherein the first mask layer is positioned at the upper layer of the target window and comprises a toolbar;
the sending module is used for obtaining mouse information by a second mask layer and directly sending the mouse information to the target window, wherein the second mask layer is a transparent rendering layer and is positioned on the upper layer of the target window;
and the erasing module is used for erasing at least part of handwriting indicated by the mouse information by the target window.
8. A handwriting erasing apparatus according to claim 7 and wherein said sending module is specifically configured to:
the second Meng Ceng generates a simulated mouse event based on the mouse information;
and the second mask layer directly sends the simulated mouse event to the target window.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 6.
CN202310695953.3A 2023-06-12 2023-06-12 Handwriting erasing method, handwriting erasing device, electronic equipment and computer readable storage medium Pending CN116880939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310695953.3A CN116880939A (en) 2023-06-12 2023-06-12 Handwriting erasing method, handwriting erasing device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310695953.3A CN116880939A (en) 2023-06-12 2023-06-12 Handwriting erasing method, handwriting erasing device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116880939A true CN116880939A (en) 2023-10-13

Family

ID=88257613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310695953.3A Pending CN116880939A (en) 2023-06-12 2023-06-12 Handwriting erasing method, handwriting erasing device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116880939A (en)

Similar Documents

Publication Publication Date Title
US20180032168A1 (en) Multi-touch uses, gestures, and implementation
EP0557320B1 (en) User interface having simulated devices
EP0479408B1 (en) Computer-assisted instructional delivery system
CN1322405C (en) Input processing method and input control apparatus
JP5854442B2 (en) Handwriting input method to write multiple characters continuously
CN111475097B (en) Handwriting selection method and device, computer equipment and storage medium
US20060294473A1 (en) Page Bar Control
JP2016071819A (en) Electronic apparatus and method
CN104407787A (en) Terminal
CN108509142B (en) Writing software interaction method and device, terminal equipment and storage medium
WO2020168786A1 (en) Touch operation response method and apparatus, storage medium and terminal
CN109697004B (en) Method, device and equipment for writing annotation by touch equipment and storage medium
JP2014059808A (en) Electronic equipment and handwritten document processing method
CN113282214A (en) Stroke rendering method, device, storage medium and terminal
CN110362217B (en) Touch interactive electronic blackboard eraser system and erasing method
CN108492349A (en) Processing method, device, equipment and the storage medium of stroke writing
CN113485570B (en) Multi-user writing method, device, computer readable storage medium and terminal equipment
CN111836093A (en) Video playing method, device, equipment and medium
CN113515228A (en) Virtual scale display method and related equipment
CN109298809A (en) A kind of touch action recognition methods, device and terminal device
CN107193424A (en) A kind of Intelligent electronic-type method for deleting and device
CN116880939A (en) Handwriting erasing method, handwriting erasing device, electronic equipment and computer readable storage medium
CN107679219B (en) Matching method and device, interactive intelligent panel and storage medium
CN103150118A (en) Method, device and mobile terminal for selecting contents based on multi-point touch technology
CN112860112B (en) Handwriting erasing method and device of electronic whiteboard, electronic equipment and storage medium

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