A multi-modal intelligent mouse control method and intelligent mouse
By creating candidate virtual mouse and temporary storage space in the intelligent mouse control method, supporting multiple input methods, the problem of cumbersome data transfer between applications is solved, and efficient and convenient data transmission and operation experience is achieved.
Patent Information
- Application Number
- CN202411555418.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-11-04
AI Technical Summary
When using a smart mouse or a traditional mouse, it is cumbersome and inefficient to frequently switch multiple applications to transfer data (such as text, images, files, etc.).
It provides a multimodal intelligent mouse control method, which creates candidate virtual mouse and temporary storage space in the application interfaces of the operating device, supports various input methods such as voice signals, brain computer signals, electromyography signals and eye movement signals, and realizes easy switching and transmission of data between different applications.
It greatly improves interaction efficiency and flexibility, reduces the steps of data transmission between different applications, improves work efficiency, and enhances the smoothness and convenience of the operation experience.
Smart Images

Figure CN119414977B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mouse technology, and in particular to a multi-modal intelligent mouse control method and an intelligent mouse. Background Art
[0002] Smart mouse is a computer peripheral that integrates multiple high-tech functions. It uses built-in sensors, microprocessors and other advanced technologies to achieve a diverse operating experience that traditional mice cannot provide. Smart mouse not only has basic click and scroll functions, but also can improve user operating efficiency through gestures, voice control and other forms.
[0003] In traditional technology, when using an intelligent mouse or a traditional mouse to frequently switch between multiple applications, the operation process may become quite cumbersome and inefficient. For example, when transferring data (such as text, images, files, etc.) between multiple applications, it is usually necessary to first select the data in one application, then copy or cut it, and then switch to another application and paste it. This process involves multiple steps and possible error points, so it is in urgent need of improvement. Summary of the invention
[0004] Based on this, it is necessary to provide a multi-modal intelligent mouse control method and an intelligent mouse that can optimize operational convenience in response to the above technical problems.
[0005] In a first aspect, the present application provides a multimodal intelligent mouse control method, which is applied to an intelligent mouse connected to an operating device. The method includes:
[0006] When a multi-modal wake-up instruction for the intelligent mouse is obtained, different candidate virtual mice are created in each application interface of the operating device, and different temporary storage spaces are created for each candidate virtual mouse; wherein the application interface is an operation page corresponding to an application in use in the operating device;
[0007] When a data transfer instruction from an operator is obtained, a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction are determined from the candidate virtual mice;
[0008] Transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse;
[0009] The data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse is displayed at the location of the destination candidate virtual mouse in the corresponding application interface.
[0010] In one embodiment, the application interface corresponding to the source candidate virtual mouse is a first interface, and the application interface corresponding to the destination candidate virtual mouse is a second interface;
[0011] Transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse, including:
[0012] Determine whether a first data format corresponding to the first interface is the same as a second data format corresponding to the second interface;
[0013] If they are different, the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse is converted from the first data format to the second data format, and the data to be transferred in the second data format is transferred to the temporary storage space corresponding to the destination candidate virtual mouse.
[0014] In one embodiment, the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse is obtained in the following manner:
[0015] When a mouse movement instruction for the source candidate virtual mouse input by the operator is obtained, the source candidate virtual mouse in the first interface is moved to a target position corresponding to the mouse movement instruction;
[0016] According to the target location and the operation action input by the operator, the data to be transferred corresponding to the target location is selected.
[0017] In one embodiment, selecting the data to be transferred corresponding to the target location according to the target location and the operation action input by the operator includes:
[0018] Determine a selection method at the target location according to the data type displayed at the target location in the first interface;
[0019] According to the selection instruction input by the operator, the corresponding data to be transferred at the target location is selected using the selection method.
[0020] In one embodiment, determining a selection method at the target location according to the data type displayed at the target location in the first interface includes:
[0021] If the data type is text type, the selection method at the target position is text matching;
[0022] If the data type is an object type other than text, the target location is selected using the object identifier matching method.
[0023] In one embodiment, according to the selection instruction input by the operator, the data to be transferred corresponding to the target location is selected in a selection manner, including:
[0024] If the selection method is a text matching method, determining the first text content included in the selection instruction;
[0025] Matching the first text content with the second text content in the target area where the target position is located, and determining the text content that has been successfully matched;
[0026] The second text content that is successfully matched is used as the data to be transferred corresponding to the target position.
[0027] In one embodiment, according to the selection instruction input by the operator, the data to be transferred corresponding to the target location is selected in a selection manner, including:
[0028] If the selection method is an object identifier matching method, determining a first object identifier included in the selection instruction;
[0029] matching the first object identifier with a second object identifier within a target area where the target location is located;
[0030] The successfully matched second object identifier is used as the to-be-transferred data corresponding to the target location.
[0031] In one embodiment, matching the first text content with the second text content in the target area where the target position is located, and determining the text content that matches successfully includes:
[0032] Extracting the first field and the last field of the first text content;
[0033] Matching the header field and the tail field with the second text content in the target area where the target position is located;
[0034] If the match is successful, the first field, the last field, and the text content between the first field and the last field in the second text content are regarded as the text content that has been matched successfully.
[0035] In one embodiment, the multimodal wake-up instruction, or data transfer instruction, or mouse movement instruction, or selection instruction is in the form of any one of a voice signal, a brain-computer signal, an electromyography signal, and an eye movement signal.
[0036] In a second aspect, the present application further provides a multi-modal intelligent mouse control device, comprising:
[0037] An acquisition module, for creating different candidate virtual mice in each application interface of the operating device and creating different temporary storage spaces for each candidate virtual mouse when a multi-modal wake-up instruction for the intelligent mouse is acquired; wherein the application interface is an operation page corresponding to an application in use in the operating device;
[0038] A selection module is used to determine, from among the candidate virtual mice, a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction when a data transfer instruction from an operator is obtained;
[0039] A storage module, used for transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse;
[0040] The transfer module is used to display the data to be transferred in the temporary storage space corresponding to the target candidate virtual mouse at the location of the target candidate virtual mouse in the corresponding application interface.
[0041] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0042] When a multi-modal wake-up instruction for the intelligent mouse is obtained, different candidate virtual mice are created in each application interface of the operating device, and different temporary storage spaces are created for each candidate virtual mouse; wherein the application interface is an operation page corresponding to an application in use in the operating device;
[0043] When a data transfer instruction from an operator is obtained, a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction are determined from the candidate virtual mice;
[0044] Transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse;
[0045] The data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse is displayed at the location of the destination candidate virtual mouse in the corresponding application interface.
[0046] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
[0047] When a multi-modal wake-up instruction for the intelligent mouse is obtained, different candidate virtual mice are created in each application interface of the operating device, and different temporary storage spaces are created for each candidate virtual mouse; wherein the application interface is an operation page corresponding to an application in use in the operating device;
[0048] When a data transfer instruction from an operator is obtained, a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction are determined from the candidate virtual mice;
[0049] Transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse;
[0050] The data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse is displayed at the location of the destination candidate virtual mouse in the corresponding application interface.
[0051] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0052] When a multi-modal wake-up instruction for the intelligent mouse is obtained, different candidate virtual mice are created in each application interface of the operating device, and different temporary storage spaces are created for each candidate virtual mouse; wherein the application interface is an operation page corresponding to an application in use in the operating device;
[0053] When a data transfer instruction from an operator is obtained, a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction are determined from the candidate virtual mice;
[0054] Transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse;
[0055] The data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse is displayed at the location of the destination candidate virtual mouse in the corresponding application interface.
[0056] The above-mentioned multimodal intelligent mouse control method and intelligent mouse, by supporting multiple input methods such as voice signals, brain-computer signals, electromyographic signals and eye movement signals, the operator can choose the most convenient command input method according to his own needs and preferences, thereby greatly improving the interaction efficiency and flexibility. Different candidate virtual mice are created in each application interface of the operating device, and an independent temporary storage space is allocated to each candidate virtual mouse, so that the operator can easily switch and transfer data between different applications. This design enhances the system's support for multitasking, allowing the operator to manage multiple application interfaces and data more efficiently. The operator can quickly and seamlessly transfer data between different applications without frequently switching applications or manually performing copy and paste operations. This not only improves work efficiency, but also enhances the fluency and convenience of the operator's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1 is a flow chart of a multi-modal intelligent mouse control method in one embodiment;
[0059] Figure 2 A schematic diagram of a flow chart of a step of transferring to a temporary storage space corresponding to a destination candidate virtual mouse in an embodiment;
[0060] Figure 3 It is a flowchart of the steps of obtaining the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse in one embodiment;
[0061] Figure 4 A schematic diagram of a flow chart of a step of selecting data to be transferred corresponding to a target location in an embodiment;
[0062] Figure 5 It is a flowchart of a step of selecting data to be transferred corresponding to a target location in a selection manner according to a selection instruction input by an operator in an embodiment;
[0063] Figure 6 It is a flowchart of another embodiment of selecting the data to be transferred corresponding to the target location by using a selection method according to the selection instruction input by the operator;
[0064] Figure 7 is a structural block diagram of a multi-modal intelligent mouse control device in one embodiment;
[0065] Figure 8 FIG. 4 is a diagram showing the internal structure of an intelligent mouse in one embodiment. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0067] In an exemplary embodiment, Figure 1 As shown, this embodiment provides a control method for an intelligent mouse, which is applied to the intelligent mouse, and the intelligent mouse is connected to an operating device. The method includes:
[0068] S101, when a multi-modal wake-up instruction for an intelligent mouse is obtained, different candidate virtual mice are created in each application interface of an operating device, and different temporary storage spaces are created for each candidate virtual mouse.
[0069] It is understandable that the multi-modal wake-up instruction usually means that the user needs to start using the intelligent mouse to operate, or the intelligent mouse changes from a dormant state to an active state.
[0070] Optionally, the multimodal wake-up command can take a variety of forms, including but not limited to voice signals, brain-computer signals, electromyographic signals, and eye movement signals. These forms each have their own characteristics and application scenarios: 1) Voice signal form: The user wakes up the smart mouse through verbal commands. 2) Brain-computer signal form: The user controls the smart mouse through brain activity (such as brain waves). 3) Electromyographic signal form: The user controls the smart mouse through electrical signals generated by muscle activity. 4) Eye movement signal form: The user controls the smart mouse through eye movements.
[0071] Among them, the application interface is the operation page corresponding to the application program in use in the operating device.
[0072] It can be understood that the application interface is the visual and functional area where users interact with the application, which displays the application's functions, content, and controls. The operating device usually refers to the device used by the user to run the application, such as a computer, smartphone, tablet, etc. It means that the application is currently being used by the user, its interface is displayed on the screen of the operating device, and can accept user input.
[0073] For example, when a user opens a Word document on a computer for editing, the Word application interface will be displayed on the computer screen. This interface includes elements such as a text editing area, a toolbar, and a menu bar. Users can interact with Word through this interface, such as inputting text, setting formats, etc. If the user opens multiple applications at the same time, each application will have a corresponding application interface. The operating device will determine which application interface is currently active or displayed in the foreground based on the user's operation or setting.
[0074] Specifically, after the intelligent mouse is connected to the operating device, it is first initialized, including hardware self-test, software loading, and establishing communication with the operating device. The intelligent mouse continuously listens for multimodal wake-up commands from the user. These commands can be voice signals, brain-computer signals, electromyographic signals, eye movement signals, or other forms of input. Once a valid multimodal wake-up command is detected, the intelligent mouse enters the active state. The intelligent mouse obtains a list of all applications in use (i.e., running in the foreground or the user is interacting) on the current operating device and their corresponding interface information through the API (application programming interface) provided by the operating device or the intelligent mouse-level hook. For each identified application interface, the intelligent mouse software creates a corresponding candidate virtual mouse object in memory. These objects contain information such as the location, status, and configuration of the virtual mouse.
[0075] The intelligent mouse software opens up a dedicated temporary storage space in the memory or hard disk to store the temporary data of each candidate virtual mouse. Specifically, a separate temporary storage space is allocated for each candidate virtual mouse. This can be achieved by creating separate memory blocks, files, or database tables to ensure that the data of each candidate virtual mouse is isolated from each other. The user interacts with the application interface on the operating device through the intelligent mouse. The intelligent mouse determines the user's intention based on the user's input (such as moving, clicking, dragging, etc.) and the current active candidate virtual mouse.
[0076] When the user needs to transfer data between different application interfaces, the intelligent mouse first identifies the source candidate virtual mouse and the target candidate virtual mouse. Then, it reads the data to be transferred from the temporary storage space of the source candidate virtual mouse and converts the data format as needed. Finally, the data is written to the temporary storage space of the target candidate virtual mouse and displayed in the target application interface.
[0077] S102 : when a data transfer instruction from an operator is obtained, determining a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction from among the candidate virtual mice.
[0078] Optionally, the intelligent mouse first receives a data transfer instruction from the operator. This instruction may include a variety of information, such as the identifier of the source application interface, the identifier of the destination application interface, the type of data to be transferred, etc. The received instruction is parsed to extract key information, such as the identifiers of the source application interface and the destination application interface.
[0079] When creating a candidate virtual mouse, the intelligent mouse maintains a mapping relationship to associate each application interface with the corresponding candidate virtual mouse. This mapping relationship can be a table, a hash table, or other data structures. According to the parsed source application interface identifier, the corresponding source candidate virtual mouse is searched in the mapping relationship. Similarly, according to the parsed destination application interface identifier, the corresponding destination candidate virtual mouse is searched in the mapping relationship.
[0080] S103, transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse.
[0081] First, the intelligent mouse needs to determine the exact location of the data to be transferred in the temporary storage space of the source candidate virtual mouse, which can be achieved through memory address, file offset or database record identifier. Then, the size of the data to be transferred is calculated to allocate sufficient resources for data transfer. According to the size of the data to be transferred, a buffer large enough is allocated in the memory to temporarily store the read data.
[0082] Secondly, set the parameters of the read operation, such as the starting position, read length, etc., and prepare to start reading data from the temporary storage space of the source candidate virtual mouse, execute the read operation, and read the data to be transferred in the temporary storage space of the source candidate virtual mouse into the previously allocated buffer.
[0083] Finally, determine a suitable location in the temporary storage space of the destination candidate virtual mouse for storing the data to be written. Set the parameters of the write operation, such as the starting position, the write length, etc., and prepare to start writing the data to the temporary storage space of the destination candidate virtual mouse. Execute the write operation to write the data in the buffer to the temporary storage space of the destination candidate virtual mouse.
[0084] S104, displaying the data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse at the location of the destination candidate virtual mouse in the corresponding application interface.
[0085] Optionally, determine the specific location where the data should be displayed based on the location information of the destination candidate virtual mouse in the corresponding application interface. Pass the prepared data to the rendering engine or drawing function of the destination application interface. Render the data to the specified location based on the layout and style of the application interface. Trigger the update mechanism of the application interface to ensure that the rendered data can be displayed immediately on the user interface. This may involve operations such as refreshing the screen, redrawing the window, or updating controls. If the data is successfully displayed, visual or auditory feedback can be provided to the user to indicate that the data transfer and display operation has been completed.
[0086] Exemplarily, the operator presses a specific button (such as a "wake-up button") on the intelligent mouse, and the intelligent mouse receives a multimodal wake-up instruction. The intelligent mouse creates a main virtual mouse on the main interface of the operating device and allocates a temporary storage space (such as memory buffer A) for it. The intelligent mouse detects that the two applications Word and Photoshop are in use, so it creates two additional virtual mice on their application interfaces and allocates temporary storage space (such as memory buffers B and C) for them respectively.
[0087] The operator selects the text to be copied in Word and uses the intelligent mouse to issue a data transfer instruction (for example, by pressing the "Copy" button on the mouse or performing a specific gesture). The intelligent mouse parses the instruction and recognizes that the source virtual mouse is the virtual mouse located on the Word application interface and the destination virtual mouse is the virtual mouse located on the Photoshop application interface. The intelligent mouse copies the data to be transferred (the selected text) from the temporary storage space (memory buffer B) corresponding to the source virtual mouse (the virtual mouse in Word). The intelligent mouse transfers this data to the temporary storage space (memory buffer C) corresponding to the destination virtual mouse (the virtual mouse in Photoshop).
[0088] The intelligent mouse detects that the data has been successfully transferred to Photoshop's virtual mouse, and then displays the text in the appropriate location of the Photoshop application interface (such as the text box specified by the operator or the cursor position). The operator can now edit or use the text in Photoshop without manually switching applications or performing complex copy and paste operations.
[0089] When the operator completes the data transfer and closes the related application, the intelligent mouse can automatically or according to the operator's instructions close the corresponding virtual mouse and release the temporary storage space it occupies. The intelligent mouse continuously monitors the use of the virtual mouse to ensure the effective use and timely release of resources.
[0090] The above-mentioned intelligent mouse block control method supports multiple input methods such as voice signals, brain-computer signals, electromyographic signals and eye movement signals. The operator can choose the most convenient command input method according to his or her own needs and preferences, thereby greatly improving the interaction efficiency and flexibility. Different candidate virtual mice are created in each application interface of the operating device, and an independent temporary storage space is allocated to each candidate virtual mouse, so that the operator can easily switch and transfer data between different applications. This design enhances the system's support for multi-tasking, allowing operators to manage multiple application interfaces and data more efficiently. Operators can quickly and seamlessly transfer data between different applications without having to frequently switch applications or manually perform copy and paste operations. This not only improves work efficiency, but also enhances the smoothness and convenience of the operator's experience.
[0091] In an exemplary embodiment, the application interface corresponding to the source candidate virtual mouse is a first interface, and the application interface corresponding to the destination candidate virtual mouse is a second interface.
[0092] like Figure 2 As shown, transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse includes:
[0093] S201, determining whether a first data format corresponding to a first interface is the same as a second data format corresponding to a second interface.
[0094] First, it is determined that the intelligent mouse or the related data transfer program needs to obtain the data format information supported by the first interface and the second interface, which can be obtained by querying the application interface document, API or directly from the properties of the interface controls.
[0095] Secondly, the first data format of the first interface is compared with the second data format of the second interface to determine whether they are the same or compatible.
[0096] S202: If they are different, convert the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse from the first data format to the second data format, and transfer the data to be transferred in the second data format to the temporary storage space corresponding to the destination candidate virtual mouse.
[0097] Optionally, if the judgment result is that the first data format is different from the second data format, data format conversion is required. Read the data to be transferred from the temporary storage space of the source candidate virtual mouse, which is currently stored in the first data format. Use a data conversion algorithm or tool to convert the read data from the first data format to the second data format. This conversion process may include adjustment of the data structure, conversion of the data type, change of the encoding method, etc. Write the converted data (now stored in the second data format) into the temporary storage space of the destination candidate virtual mouse.
[0098] For example, suppose a user is using Word (first interface) to edit a rich text containing bold and italic text, and wants to copy the text to a text box in Photoshop (second interface). The intelligent mouse recognizes that Word supports rich text formatting, while Photoshop's text box may only support plain text or simple text formatting. The intelligent mouse determines that the rich text format is different from the text format required by the Photoshop text box. The intelligent mouse performs a conversion to remove the bold and italic styles in the rich text and retain only the plain text content. This may involve parsing the rich text format, extracting the text content, and ignoring or converting the formatting information. The converted plain text is transferred to the temporary storage space of the virtual mouse corresponding to the Photoshop text box and is displayed correctly in the text box.
[0099] Through such data format conversion steps, the intelligent mouse control method can ensure that data transmission between different applications is more flexible and accurate, thereby improving the efficiency of users working together between different applications.
[0100] In an exemplary embodiment, Figure 3 As shown, the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse is obtained in the following manner:
[0101] S301, when a mouse moving instruction for a source candidate virtual mouse input by an operator is obtained, the source candidate virtual mouse in the first interface is moved to a target position corresponding to the mouse moving instruction.
[0102] Optionally, the intelligent mouse or the related control intelligent mouse continuously monitors the mouse movement instructions input by the operator (user). These instructions are usually generated by moving, clicking or scrolling the mouse. When a mouse movement instruction is received, the instruction is parsed to determine its corresponding target position. This usually involves combining the current position of the mouse with the movement vector to calculate the new position coordinates. According to the parsed instructions, the source candidate virtual mouse in the first interface is moved to the target position corresponding to the instruction. This may involve updating the coordinates of the source candidate virtual mouse, redrawing the mouse icon, or updating other related elements on the interface.
[0103] S302, selecting the data to be transferred corresponding to the target location according to the target location and the operation action input by the operator.
[0104] Optionally, after the source candidate virtual mouse moves to the target position, continue to listen to the operation actions input by the operator. These actions can be clicks, double-clicks, drags, or other custom operations. According to the target position, analyze the data or elements that may exist at the position. This may involve querying the interface layout, identifying the control type, or retrieving data related to the position. Based on the analysis results of the operation action and the target position, select the corresponding data to be transferred at the target position. This may include text, images, files, or other types of data. The selected data to be transferred is temporarily stored in the temporary storage space corresponding to the source candidate virtual mouse for subsequent data transfer operations.
[0105] Exemplarily, the operator moves the intelligent mouse to a paragraph in the source document interface and prepares to perform a moving operation. The intelligent mouse captures the operator's mouse movement instruction and parses the operator's desire to move the mouse to the starting position of the paragraph. The intelligent mouse moves the source candidate virtual mouse (i.e., the virtual representation of the intelligent mouse currently operated by the operator) in the source document interface to the starting position of the paragraph specified by the operator. The operator presses the left mouse button and starts dragging, indicating that the operator wishes to select the paragraph as the data to be transferred. The intelligent mouse analyzes the target position of the operator's dragging operation, i.e., the end position of the paragraph. At the same time, the intelligent mouse recognizes that the data at this position is of text type and belongs to the paragraph that the operator wishes to move. The intelligent mouse selects the entire paragraph as the data to be transferred based on the operator's dragging operation and the analysis results of the target position. The intelligent mouse temporarily stores the selected paragraph data in the temporary storage space corresponding to the source candidate virtual mouse, preparing for subsequent data transfer operations.
[0106] In an exemplary embodiment, Figure 4 As shown, according to the target location and the operation action input by the operator, the corresponding data to be transferred at the target location is selected, including:
[0107] S401, determining a selection method at the target position according to the data type displayed at the target position in the first interface.
[0108] In one possible implementation, if the data type is a text type, the selection method at the target position is a text matching method.
[0109] It is understandable that if the data type is a text type (such as paragraphs, sentences, words, etc.), the selection method is usually a text matching method. In this method, the intelligent mouse can determine the text range to be selected based on the operation of the operator (such as clicking, dragging, etc.), and use the text matching algorithm to accurately identify and select the target text.
[0110] In another possible implementation, if the data type is an object type in a non-textual form, the selection method at the target position is an object identifier matching method.
[0111] If the data type is a non-text object type (such as graphics, images, buttons, controls, etc.), the selection method is usually object identification matching. In this method, the intelligent mouse determines the object to be selected by identifying the unique identifier of the object (such as ID, class name, label, etc.), and uses the object identification matching algorithm to ensure accurate selection of the target object.
[0112] S402, according to the selection instruction input by the operator, the corresponding data to be transferred at the target location is selected using a selection method.
[0113] It is understood that if the text matching method is adopted, the intelligent mouse will determine the text range to be selected according to the click or drag operation of the operator. The intelligent mouse will highlight the selected text for the operator to confirm. If the object identification matching method is adopted, the intelligent mouse determines the object to be selected by identifying the unique identification of the object. Once a matching object is found, the intelligent mouse will identify the selected object in some way (such as highlighting the border, changing the color, etc.).
[0114] In one possible implementation, Figure 5 As shown, according to the selection instruction input by the operator, the corresponding data to be transferred at the target location is selected using a selection method, including:
[0115] S501: If the selection method is a text matching method, determine the first text content included in the selection instruction.
[0116] Specifically, the intelligent mouse continuously monitors the input of the operator, especially the instructions related to text selection. When receiving the selection instruction (such as the operator clicks or drags the mouse and releases it), the intelligent mouse parses the instruction to determine the text content that the operator wants to select, that is, the first text content. This may involve identifying the operation trajectory of the operator, calculating the selection range, etc. The intelligent mouse temporarily stores the first text content so that it can be matched with the text in the target area later.
[0117] S502: Match the first text content with the second text content in the target area where the target position is located, and determine the text content that has been successfully matched.
[0118] Specifically, the first text content is matched with the second text content in the target area where the target position is located to determine the successfully matched text content, including: extracting the header field and the tail field of the first text content; matching the header field and the tail field with the second text content in the target area where the target position is located, respectively; if the match is successful, the header field, the tail field, and the text content between the header field and the tail field in the second text content are used as the successfully matched text content.
[0119] Optionally, a header field and a tail field are extracted from the first text content. The header field is usually the text at the starting position selected by the operator, and the tail field is the text at the ending position selected by the operator. The intelligent mouse matches the extracted header field and tail field with the second text content in the target area where the target position is located. This usually involves a string comparison algorithm to find the part that matches the text in the target area. If both the header field and the tail field find a match in the target area, the intelligent mouse considers that the match is successful. At this time, the intelligent mouse regards the header field, the tail field, and all the text content between the header field and the tail field in the second text content as successfully matched text content.
[0120] S503: Use the successfully matched second text content as the to-be-transferred data corresponding to the target location.
[0121] Optionally, according to the text content that matches successfully determined in S502, the intelligent mouse selects these texts from the target area as data to be transferred. The intelligent mouse can temporarily store these data to be transferred in a buffer or clipboard for subsequent transfer operations (such as copying to another location or pasting into another application).
[0122] In another possible implementation, Figure 6 As shown, according to the selection instruction input by the operator, the corresponding data to be transferred at the target location is selected using a selection method, including:
[0123] S601: If the selection method is an object identifier matching method, determine a first object identifier included in the selection instruction.
[0124] The intelligent mouse continuously monitors the input of the operator, especially the instructions related to object selection. These instructions may include operations such as clicking, dragging, and double-clicking, and these operations may be accompanied by specific modifier keys (such as Ctrl, Shift, etc.). When receiving a selection instruction, the intelligent mouse parses the instruction to determine the object that the operator wants to select, and extracts the first object identifier from it. The object identifier is usually a unique identifier of the object, which can be the object's ID, name, path, or other attribute that can uniquely identify the object. The intelligent mouse temporarily stores the first object identifier for subsequent matching with the object identifier in the target area.
[0125] S602: Match the first object identifier with a second object identifier in the target area where the target position is located.
[0126] The intelligent mouse obtains the second object identification of all objects in the target area where the target position is located. These object identifications can be stored in a data structure (such as a tree, a list, a hash table, etc.) for fast search and matching. The intelligent mouse compares the first object identification with the second object identification in the target area one by one to find matching objects. The matching process can involve simple equality checks or more complex matching logic (such as fuzzy matching, regular expression matching, etc.).
[0127] S603: Use the successfully matched second object identifier as the to-be-transferred data corresponding to the target location.
[0128] According to the second object identifier that matches successfully determined in S602, the intelligent mouse selects the corresponding object from the target area as the data to be transferred. This may involve operations such as retrieving the object from the data structure, copying the object or its reference. The intelligent mouse may temporarily store the data to be transferred in a buffer, a clipboard, or prepare to transfer it to another location or application. The specific processing method depends on the subsequent operation requirements.
[0129] In an exemplary embodiment, the instruction forms of the multimodal wake-up instructions, data transfer instructions, mouse movement instructions and selection instructions include voice signal forms, brain-computer signal forms, electromyographic signal forms and eye movement signal forms.
[0130] It is understandable that the operator can issue commands through voice, and the operator converts the voice signal into text or command code through voice recognition technology, thereby realizing control over the operator. This method is suitable for situations where commands need to be input quickly or the operator's hands are occupied.
[0131] Using brain-computer interface technology, the operator can capture and analyze the electrical signals emitted by the operator's brain and convert them into instructions. This method usually requires the use of specific equipment (such as a brain wave collector) and requires certain training to use accurately.
[0132] By capturing the electrical signals generated by the operator's muscle activity (such as arm and finger muscle activity), the operator can identify the operator's intention and convert it into corresponding instructions. This method is usually used to assist disabled people in computer operation or game control.
[0133] Using eye tracking technology, the operator can capture the movement trajectory and gaze point of the operator's eyes, thereby identifying the operator's instructions. For example, the operator can issue instructions to move the mouse or click by gazing at a specific area on the screen.
[0134] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0135] Based on the same inventive concept, the embodiment of the present application also provides a multimodal intelligent mouse control device for implementing the multimodal intelligent mouse control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more multimodal intelligent mouse control device embodiments provided below can refer to the limitations of the multimodal intelligent mouse control method above, and will not be repeated here.
[0136] In an exemplary embodiment, Figure 7 As shown, a multi-modal intelligent mouse control device 1 is provided, comprising:
[0137] The acquisition module 11 is used to create different candidate virtual mice in each application interface of the operating device and create different temporary storage spaces for each candidate virtual mouse when a multi-modal wake-up instruction for the intelligent mouse is obtained; wherein the application interface is an operation page corresponding to an application in use in the operating device;
[0138] The selection module 12 is used to determine, from among the candidate virtual mice, a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction when a data transfer instruction from the operator is obtained;
[0139] The storage module 13 is used to transfer the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse;
[0140] The transfer module 14 is used to display the data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse at the location of the destination candidate virtual mouse in the corresponding application interface.
[0141] Each module in the multi-modal intelligent mouse control device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0142] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a multi-modal intelligent mouse control method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0143] Those skilled in the art will understand that Figure 8The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0144] In an exemplary embodiment, an intelligent mouse is provided, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0145] When a multi-modal wake-up instruction for the intelligent mouse is obtained, different candidate virtual mice are created in each application interface of the operating device, and different temporary storage spaces are created for each candidate virtual mouse; wherein the application interface is an operation page corresponding to an application in use in the operating device;
[0146] When a data transfer instruction from an operator is obtained, a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction are determined from the candidate virtual mice;
[0147] Transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse;
[0148] The data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse is displayed at the location of the destination candidate virtual mouse in the corresponding application interface.
[0149] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0150] When a multi-modal wake-up instruction for the intelligent mouse is obtained, different candidate virtual mice are created in each application interface of the operating device, and different temporary storage spaces are created for each candidate virtual mouse; wherein the application interface is an operation page corresponding to an application in use in the operating device;
[0151] When a data transfer instruction from an operator is obtained, a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction are determined from the candidate virtual mice;
[0152] Transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse;
[0153] The data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse is displayed at the location of the destination candidate virtual mouse in the corresponding application interface.
[0154] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0155] When a multi-modal wake-up instruction for the intelligent mouse is obtained, different candidate virtual mice are created in each application interface of the operating device, and different temporary storage spaces are created for each candidate virtual mouse; wherein the application interface is an operation page corresponding to an application in use in the operating device;
[0156] When a data transfer instruction from an operator is obtained, a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction are determined from the candidate virtual mice;
[0157] Transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse;
[0158] The data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse is displayed at the location of the destination candidate virtual mouse in the corresponding application interface.
[0159] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0160] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0161] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A multi-modal intelligent mouse control method, characterized in that: Applied to an intelligent mouse, the intelligent mouse is connected to an operating device, and the method includes: When a multi-modal wake-up instruction for the intelligent mouse is obtained, different candidate virtual mice are created in each application interface of the operating device, and different temporary storage spaces are created for each candidate virtual mouse; wherein the application interface is an operation page corresponding to an application in use in the operating device; When a data transfer instruction from an operator is obtained, determining a source candidate virtual mouse and a destination candidate virtual mouse corresponding to the data transfer instruction from the candidate virtual mice; Transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse; The data to be transferred in the temporary storage space corresponding to the destination candidate virtual mouse is displayed at the location of the destination candidate virtual mouse in the corresponding application interface.
2. The multi-modal intelligent mouse control method according to claim 1, characterized in that: The application interface corresponding to the source candidate virtual mouse is a first interface, and the application interface corresponding to the destination candidate virtual mouse is a second interface; The step of transferring the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse to the temporary storage space corresponding to the destination candidate virtual mouse includes: Determining whether a first data format corresponding to the first interface is the same as a second data format corresponding to the second interface; If they are different, the data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse is converted from the first data format to the second data format, and the data to be transferred in the second data format is transferred to the temporary storage space corresponding to the destination candidate virtual mouse.
3. The multi-modal intelligent mouse control method according to claim 2, characterized in that: The data to be transferred in the temporary storage space corresponding to the source candidate virtual mouse is obtained in the following manner: When a mouse movement instruction for the source candidate virtual mouse input by the operator is obtained, the source candidate virtual mouse in the first interface is moved to a target position corresponding to the mouse movement instruction; According to the target location and the operation action input by the operator, the to-be-transferred data corresponding to the target location is selected.
4. The multi-modal intelligent mouse control method according to claim 3, characterized in that: The selecting the data to be transferred corresponding to the target location according to the target location and the operation action input by the operator includes: Determining a selection method at the target position according to the data type displayed at the target position in the first interface; According to the selection instruction input by the operator, the data to be transferred corresponding to the target location is selected using the selection method.
5. The multi-modal intelligent mouse control method according to claim 4, characterized in that: The determining, according to the data type displayed at the target position in the first interface, a selection method at the target position includes: If the data type is a text type, the selection method at the target position is a text matching method; If the data type is an object type in a non-text form, the selection method at the target position is an object identifier matching method.
6. The multi-modal intelligent mouse control method according to claim 5, characterized in that: The selecting method is used to select the data to be transferred corresponding to the target location according to the selection instruction input by the operator, including: If the selection method is the text matching method, determining the first text content included in the selection instruction; Matching the first text content with the second text content in the target area where the target position is located, and determining the text content that matches successfully; The successfully matched second text content is used as the to-be-transferred data corresponding to the target position.
7. The multi-modal intelligent mouse control method according to claim 5, characterized in that: The selecting method is used to select the data to be transferred corresponding to the target location according to the selection instruction input by the operator, including: If the selection method is the object identifier matching method, determining a first object identifier included in the selection instruction; matching the first object identifier with a second object identifier within a target area where the target location is located; The successfully matched second object identifier is used as the to-be-transferred data corresponding to the target location.
8. The multi-modal intelligent mouse control method according to claim 6, characterized in that: The step of matching the first text content with the second text content in the target area where the target position is located to determine the text content that matches successfully includes: Extracting the first field and the last field of the first text content; Matching the header field and the tail field with the second text content in the target area where the target position is located; If the match is successful, the header field, the tail field, and the text content between the header field and the tail field in the second text content are used as the text content that has been matched successfully.
9. The multi-modal intelligent mouse control method according to any one of claims 1 to 8, characterized in that: The multimodal wake-up instruction, or the data transfer instruction, or the mouse movement instruction, or the selection instruction is in the form of any one of a voice signal, a brain-computer signal, an electromyographic signal, and an eye movement signal.
10. An intelligent mouse, comprising a memory, a processor, an input device and an output device, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the multimodal intelligent mouse control method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Operation control method and device of virtual article and electronic equipment
CN117654045A
Interaction method based on mouse motion trail and electronic equipment
CN117666855A