Processing method and device, equipment and storage medium
By obtaining and storing failed drag and drop operation information and pasting it directly in the target input area, the problem of repeated execution of drag and drop operation failed is solved, and the efficiency and user experience of drag and drop operation are improved.
Patent Information
- Application Number
- CN202411018284.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-22
AI Technical Summary
During drag and drop operations, the release position deviation causes the operation to fail and requires repeated execution, which reduces the user's operation efficiency and human-computer interaction experience.
By obtaining the target information of the failed drag and drop operation, the input identifier can be displayed and stored in the temporary storage area. It will be stored directly in the target input area when the user performs the paste operation, avoiding repeated drag and drop.
Simplifies the drag-and-drop operation process, improves operation convenience and efficiency, and reduces operation failure rate.
Smart Images

Figure CN119002783A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and relates to but is not limited to a processing method, device, equipment and storage medium. Background Art
[0002] With the development of human-computer interaction technology, drag-and-drop operation, as an intuitive and convenient interaction method, has been widely used in scenarios such as file management, content editing, and data input. Through drag-and-drop operation, users can easily and quickly copy or cut the selected content to the specified area, which is simple, convenient and efficient.
[0003] However, when the user performs a drag-and-drop operation, if the release position is deviated, the drag-and-drop operation often fails, and the drag-and-drop operation needs to be repeated at least once to successfully drag and drop the selected content to the specified area. In this case, not only does the operation process of the drag-and-drop operation become extremely cumbersome, but it also greatly reduces the user's operating efficiency, resulting in a poor overall human-computer interaction experience. Summary of the invention
[0004] The present application at least provides a processing method, apparatus, device and storage medium.
[0005] The technical solution of this application is implemented as follows:
[0006] In a first aspect, the present application provides a processing method, the method comprising:
[0007] In response to a failure in the execution of the first operation, acquiring target information corresponding to the first operation; the first operation is used to read the target information and display an inputtable identifier of the target information based on an operation position of the first operation;
[0008] The target information is stored in a first target storage area, and in response to a second operation, the target information is read in the first target storage area and stored in a target storage area corresponding to a target input area.
[0009] In a second aspect, the present application provides a processing device, the device comprising:
[0010] an acquisition unit, configured to acquire target information corresponding to a first operation in response to a failure in executing the first operation; the first operation is configured to read the target information and display an inputtable identifier of the target information based on an operation position of the first operation;
[0011] The storage unit is used to store the target information in a first target storage area, read the target information in the first target storage area in response to a second operation, and store the target information in a target storage area corresponding to the target input area.
[0012] In a third aspect, the present application further provides an electronic device, comprising an input interface, a memory and a processor, wherein the memory stores a computer program that can be run on the processor;
[0013] The input interface is used to: receive a first operation; the first operation is used to read the target information, and display an inputtable identifier of the target information based on an operation position of the first operation;
[0014] The processor is configured to: in response to the failure of the execution of the first operation, obtain target information corresponding to the first operation; store the target information in a first target storage area, and in response to a second operation, read the target information in the first target storage area, and store the target information in a target storage area corresponding to a target input area;
[0015] The memory is used to store the target information.
[0016] In a fourth aspect, the present application further provides a storage medium having a computer program stored thereon, and when the computer program on the storage medium is executed, the above-mentioned processing method is implemented.
[0017] In a fifth aspect, the present application also provides a computer program product, including a computer program or instructions, which implement the above-mentioned processing method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A first optional flow chart of the processing method provided in the embodiment of the present application;
[0019] Figure 2 An optional schematic diagram of the first operation in the processing method provided in an embodiment of the present application;
[0020] Figure 3 A second optional flow chart of the processing method provided in the embodiment of the present application;
[0021] Figure 4 A third optional flow chart of the processing method provided in the embodiment of the present application;
[0022] Figure 5 A fourth optional flow chart of the processing method provided in the embodiment of the present application;
[0023] Figure 6 A fifth optional flow chart of the processing method provided in the embodiment of the present application;
[0024] Figure 7 A sixth optional flow chart of the processing method provided in the embodiment of the present application;
[0025] Figure 8 A seventh optional flow chart of the processing method provided in the embodiment of the present application;
[0026] Fig. 9 An optional structural diagram of a processing device provided in an embodiment of the present application;
[0027] Fig.10 An optional structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0029] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0030] In the following description, the terms "first\second\third" are used only as examples to distinguish different objects, and do not represent a specific order for the objects, nor do they have a limitation on the order of precedence. It is understandable that "first\second\third" can be interchanged with a specific order or order of precedence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0032] The embodiments of the present application provide a processing method, apparatus, device, storage medium and computer program product. In practical applications, the processing method can be implemented by a processing device, and each functional entity in the processing device can be collaboratively implemented by hardware resources of the electronic device, such as computing resources such as a processor, and communication resources (such as for supporting various communication methods such as optical cables and cellular).
[0033] Below, various embodiments of the processing method, apparatus, device, storage medium, and computer program product provided in the embodiments of the present application are described.
[0034] In the first aspect, the embodiment of the present application provides a processing method. The function implemented by the method can be implemented by calling program code by a processor in an electronic device (such as a computer or a mobile phone). Of course, the program code can be stored in a computer storage medium. It can be seen that the electronic device at least includes a processor and a storage medium.
[0035] Below, the processing method provided in the embodiment of the present application is explained by taking an electronic device as an execution subject as an example.
[0036] The electronic device may be any electronic device with relevant data processing capabilities. The specific type of the electronic device is not limited in the present embodiment of the application, and can be set according to actual conditions. For example, the electronic device may include but is not limited to: a computer (host plus display), a notebook, a mobile phone, a vehicle device, a smart wearable device, etc.
[0037] Figure 1 Schematic diagram of the process of the processing method of the present application embodiment, such as Figure 1 As shown, the process may include but is not limited to the following S101 and S102.
[0038] S101. In response to a failure in executing a first operation, the electronic device obtains target information corresponding to the first operation.
[0039] The first operation is used to read the target information, and an inputtable identifier of the target information is displayed based on an operation position of the first operation.
[0040] The embodiment of the present application does not limit the specific type of the first operation, and it can be set according to actual conditions. For example, the first operation can be a drag-and-drop copy operation, that is, selecting content through an input device and dragging it to a specified position and then releasing it to copy and paste the selected content, or it can be a drag-and-drop cut operation, that is, selecting content through an input device and dragging it to a specified position and then releasing it to cut and paste the selected content.
[0041] The target information refers to the information or content selected by the first operation. The specific type and quantity of the target information are not limited in the embodiment of the present application, and can be set according to the actual situation. For example, the target information can be a paragraph of text, one or more documents, one or more multimedia files, one or more shortcuts, etc.
[0042] The input mark is used to prompt the user to accept the valid position of the input. The embodiment of the present application does not limit the specific content and display position of the input mark, and it can be set according to the actual situation. Exemplarily, the input mark can be a semi-transparent thumbnail icon of the target content, and the input mark can be displayed at the operation position of the first operation, that is, the input mark moves with the movement of the operation position of the first operation.
[0043] In actual applications, first, the user can use a mouse or finger or other input device to select the specified content by clicking, selecting a box or touching, for example, selecting a paragraph of text in a text editing tool, selecting one or more files in a file explorer, selecting one or more graphic objects in an image editing software, etc.; then, while maintaining the selected state, drag the selected specified content to the specified area. During the dragging process, different operation positions will display different logos. When the operation position is in a placeable area, an input-enabled logo will be displayed to prompt the user that the selected specified content can be placed at the current position. When the operation position is in a non-placeable area, an input-disabled logo will be displayed to prompt the user that the selected specified content cannot be placed at the current position. For example, the placeable area may include a text editing box, a blank document area, a specified input box in an application, etc., and the non-placeable area may include a system menu bar, a locked document area, a title bar or a list bar of an application, etc. The input-enabled logo may be a semi-transparent thumbnail icon of the selected specified content, and the non-input logo may be a round red icon with a slash; finally, after the selected specified content is dragged to the specified area, the user can release and loosen the mouse or finger or other input device to complete the first operation.
[0044] like Figure 2 As shown, a document icon 201 and an application interface 202 are displayed on the display screen 20 of the electronic device. The application interface 202 includes a list bar 2021 and a chat input box 2022. The chat input box 2022 includes an input box 20221. When the document icon 201 is selected and dragged to the list bar 2021, a non-input mark 203 is displayed at the cursor; when the document icon 201 is selected and dragged to the input box 20221, an input-enabled mark 204 is displayed at the cursor.
[0045] For example, the user may perform the first operation on the electronic device in advance. Correspondingly, S101 may be implemented as follows: the electronic device receives the first operation and determines whether the first operation fails to be executed; in response to the first operation failing to be executed, the information selected by the first operation is read from the cache or temporary file to obtain the target information.
[0046] In actual applications, when the user drags the selected specified content, if the release position of the mouse or finger or other input device is located in a droppable area, it can be determined that the first operation is successfully executed; if the release position of the mouse or finger or other input device is located in a non-droppable area, it can be determined that the first operation has failed.
[0047] For example, suppose that the user needs to drag and cut the selected text into the chat input box. Then, when the user is dragging the selected text, when the mouse is released in the chat list bar, the drag and drop cut operation will fail. At this time, the selected text will return to its original position, and the user will need to use the mouse to select it again and drag and release it again; when the mouse is released in the chat input box, the drag and drop cut operation is successful, and the selected text is successfully cut into the chat input box.
[0048] Similarly, suppose the user needs to drag and copy document A to document B. When the user drags and selects document A, if the mouse is released at the system status bar in the lower right corner of the desktop, the drag-and-drop copy operation will fail. The selected text will return to its original position, requiring the user to select it again and drag and release it again. When the mouse is released at document B, the drag-and-drop copy operation is successful and the selected text is copied to document B.
[0049] S102: The electronic device stores the target information in a first target storage area, reads the target information in the first target storage area in response to a second operation, and stores the target information in a target storage area corresponding to a target input area.
[0050] The first target storage area refers to a storage space for temporarily storing the target information selected when the first operation fails to execute. The specific location and size of the first target storage area are not limited in the embodiment of the present application, and can be set according to actual conditions. For example, the first target storage area can be a storage space corresponding to the clipboard of the electronic device.
[0051] The second operation is used to read information from the first target storage area and store the read information in the storage space corresponding to the specified input area. The embodiment of the present application does not limit the specific type of the second operation, and can be set according to actual conditions. For example, the second operation can be a paste operation.
[0052] The target input area may be any area on the display interface of the electronic device where target information can be input.
[0053] The target storage area refers to the storage space corresponding to the target input area.
[0054] The embodiment of the present application does not limit the specific location and size of the target input area and the target storage area, which can be set according to actual conditions.
[0055] It can be understood that the first target storage area may be a temporary storage space, and the target storage area may be a temporary storage space or a permanent storage space.
[0056] Exemplarily, S102 may be implemented as follows: the electronic device stores the target information in a first target storage area; receives a second operation; in response to the second operation, reads the target information in the first target storage area, and stores the target information in a target storage area corresponding to the target input area.
[0057] In actual applications, when the user releases the content in an incorrect position when performing a first operation, resulting in the failure of the first operation, the electronic device can automatically obtain and automatically store the target information corresponding to the first operation in the clipboard of the electronic device, so that in subsequent response to the user's paste operation, the target information in the clipboard can be directly stored in the storage space corresponding to the designated input area, without the user having to manually repeat the first operation multiple times.
[0058] For example, suppose the user needs to drag and cut the selected text into the chat input box. When the mouse is released and the drag and drop cut operation fails, the electronic device can automatically cut the selected text to the clipboard. The user can then paste it directly into the chat input box, and the selected text in the clipboard can be successfully cut into the chat input box without the user having to use the mouse to select, drag and release again.
[0059] Similarly, suppose the user needs to drag and copy document A to document B. When the mouse is released and the system status bar is located in the lower right corner of the desktop, causing the drag and drop copy operation to fail, the electronic device can automatically copy the selected document A to the clipboard. Then, the user can directly paste it in document B, and document A in the clipboard can be successfully copied to document B without the user having to use the mouse to select, drag and release it again.
[0060] An embodiment of the present application provides a processing method, which includes: in response to a failure to execute a first operation, obtaining target information corresponding to the first operation; the first operation is used to read the target information, and display an input identifier of the target information based on the operation position of the first operation; the target information is stored in a first target storage area, and in response to a second operation, the target information is read in the first target storage area, and the target information is stored in a target storage area corresponding to the target input area.
[0061] In the solution of the present application, the electronic device responds to the failure of the first operation by automatically acquiring and automatically storing the target information corresponding to the first operation in the first target storage area, and can respond to the second operation by directly reading the target information in the first target storage area and storing it in the target storage area corresponding to the target input area. In this way, not only can the operation process of the drag-and-drop operation be simplified, the convenience and practicality of the drag-and-drop operation be improved, but also the execution efficiency and execution success rate when performing the drag-and-drop operation can be improved.
[0062] In another embodiment, the electronic device may store the target information in the first target storage area into the first input storage area corresponding to the first input area by acquiring the first input area indicated by the first operation.
[0063] refer to Figure 3 The processing method may also include but is not limited to the following S301 to S304.
[0064] S301. In response to a failure in executing a first operation, the electronic device obtains target information corresponding to the first operation.
[0065] The first operation is used to read the target information, and an inputtable identifier of the target information is displayed based on an operation position of the first operation.
[0066] For the implementation process of S301, reference may be made to the detailed description of S101 above, which will not be repeated here.
[0067] S302: The electronic device stores the target information in a first target storage area, reads the target information in the first target storage area in response to a second operation, and stores the target information in a target storage area corresponding to the target input area.
[0068] For the implementation process of S302, reference may be made to the detailed description of S102 above, which will not be repeated here.
[0069] S303: The electronic device obtains a first input area indicated by the first operation.
[0070] The first input area refers to the input area indicated by the first operation. The specific position and size of the first input area are not limited in the embodiment of the present application and can be set according to actual conditions.
[0071] In actual applications, when the user performs the first operation, multiple operation positions may be involved, and these operation positions may be divided into a starting position, an intermediate position, and an end position in the order of the operation time. Then, the first input area indicated by the first operation may be an input area closest to the end position, or a specific input area within a certain range from the starting position, the intermediate position, or the end position.
[0072] Exemplarily, S303 may be implemented as follows: the electronic device obtains at least one operation position involved in the first operation; and determines the first input area indicated by the first operation based on the positional relationship between the at least one operation position and all inputtable areas on the display interface of the electronic device.
[0073] The embodiment of the present application does not limit the specific manner in which the electronic device determines the first input area indicated by the first operation based on the positional relationship between the at least one operation position and all input areas on the display interface of the electronic device, and can be set according to actual conditions.
[0074] For example, when the first input area is the input area closest to the end position, the electronic device can calculate the distance values between the end position and all input areas; and determine the input area corresponding to the minimum value of these distance values as the first input area indicated by the first operation.
[0075] S304: In response to the second operation on the first input area, the electronic device reads the target information in the first target storage area, and stores the target information in a first input storage area corresponding to the first input area.
[0076] The input area refers to the display area on the display interface of an electronic device where information can be input.
[0077] The input storage area refers to the storage space in the storage space of the electronic device for storing the information displayed in the input area. For example, assuming that the storage space of the electronic device is pre-divided into storage space 1 for storing the information displayed in input area 1, and its address range is 001-008, then when the user drags and drops information 1 to input area 1, information 1 will be stored in addresses 001-008.
[0078] It should be noted that the content displayed in the input area is completely consistent and synchronized with the content stored in the input storage area. When content A is stored in the input storage area, its corresponding input area will also display content A; when content B is dragged and dropped into the input area, content B is also stored in its corresponding input storage area.
[0079] The first input storage area refers to the storage space corresponding to the first input area. The specific location and size of the first input storage area are not limited in the present embodiment of the application and can be set according to actual conditions.
[0080] For example, the user may perform a second operation on the first input area on the electronic device in advance. Correspondingly, S304 may be implemented as follows: the electronic device receives the second operation; in response to the second operation, reads the target information in the first target storage area, and stores the target information in the first input storage area corresponding to the first input area.
[0081] In actual applications, the second operation can be a further operation based on the first operation, or it can be completely independent of the first operation. For example, after the electronic device stores the target information corresponding to the first operation in the first target storage area in response to the failure of the first operation, the user can indicate the storage instruction through the second operation so that the electronic device stores the target information in the first target storage area to the first input storage area corresponding to the first input area indicated by the first operation. At this time, the second operation is an operation for the first input area, which is a further operation based on the first operation; the user can also indicate the storage instruction and the second input area at the same time through the second operation so that the electronic device stores the target information in the first target storage area to the second input storage area corresponding to the second input area indicated by the second operation. At this time, the second operation is completely independent of the first operation.
[0082] For example, suppose the user needs to drag and cut the selected text into the chat input box. When the mouse release position is located in the chat list bar, the drag and drop cut operation fails, and the electronic device automatically cuts the selected text to the clipboard, if the user's next paste operation does not specify location information, then the electronic device can store the selected text in the clipboard to the storage space corresponding to the input area closest to the mouse release position of the drag and cut operation; if the user's next paste operation specifies location information 1, then the electronic device can store the selected text in the clipboard to the storage space corresponding to the input area to which location information 1 belongs.
[0083] Similarly, suppose the user needs to drag and copy document A to document B. When the mouse release position is located in the system status bar at the lower right corner of the desktop, the drag and drop copy operation fails, and the electronic device automatically copies the selected document A to the clipboard, if the user's next paste operation does not specify location information, then the electronic device can store document A in the clipboard to the storage space corresponding to the input area closest to the mouse release position of the drag and copy operation; if the user's next paste operation specifies location information 2, then the electronic device can store document A in the clipboard to the storage space corresponding to the input area to which location information 1 belongs.
[0084] Simply put, by obtaining the first input area indicated by the first operation, when the second operation for the first input area is received, the target information in the first target storage area can be directly stored in the first input storage area corresponding to the first input area. In this way, there is no need for the user to re-indicate the input area for the target information. On the basis of the first operation, the second operation for the first input area can be used to further achieve the continuation of the first operation after the failure of the execution. The implementation solution is simple, efficient, convenient and practical.
[0085] In another embodiment, the electronic device may also store information in the first target storage area or the second target storage area to a second input storage area corresponding to the second input area indicated by the second operation based on the selected first input option or the second input option in response to the second operation.
[0086] refer to Figure 4 The processing method may include but is not limited to the following S401 to S405.
[0087] S401: In response to a failure in executing a first operation, the electronic device obtains target information corresponding to the first operation.
[0088] The first operation is used to read the target information, and an inputtable identifier of the target information is displayed based on an operation position of the first operation.
[0089] For the implementation process of S401, reference may be made to the detailed description of S101 above, which will not be repeated here.
[0090] S402: The electronic device stores the target information in a first target storage area, reads the target information in the first target storage area in response to a second operation, and stores the target information in a target storage area corresponding to the target input area.
[0091] For the implementation process of S402, reference may be made to the detailed description of S102 above, which will not be repeated here.
[0092] S403: In response to detecting the second operation, the electronic device displays a first input option and a second input option.
[0093] The first input option and the second input option refer to items, elements or controls for the user to select the first target storage area and the second target storage area.
[0094] The embodiment of the present application does not limit the specific type and content of the first input option and the second input option, and can be set according to actual conditions. For example, the first input option and the second input option can be in the form of a pop-up selection box, the first input option can display text for representing reading information from the first target storage area and storing it, and the second input option can display text for representing reading information from the second target storage area and storing it.
[0095] The first target storage area refers to a storage space used to temporarily store the target information selected when the first operation fails to execute. The second target storage area refers to a storage space used to temporarily store the content selected by the copy and cut operations. The embodiment of the present application does not limit the specific location and size of the first target storage area and the second target storage area, which can be set according to actual conditions. Exemplarily, the first target storage area and the second target storage area can be storage spaces corresponding to different clipboards of the electronic device. For example, the first target storage area can be the storage space corresponding to the system clipboard (system default clipboard) of the electronic device, and the second target storage area can be the storage space corresponding to the drag clipboard (newly created clipboard) of the electronic device.
[0096] For example, the user may perform the second operation on the electronic device in advance. Correspondingly, S403 may be implemented as follows: the electronic device detects whether the second operation is received; in response to detecting the second operation, the first input option and the second input option are displayed on the display interface of the electronic device for the user to select.
[0097] In actual applications, in response to detecting the second operation, the electronic device may display a pop-up selection box on the display interface, in which a prompt text, a first input option button, and a second input option button may be displayed. The prompt text may be "Please select the location of the content to be stored:", the first input option button may display the text "first target storage area", and the second input option button may display the text "second target storage area". The pop-up selection box is used for the user to choose to store the information in the first target storage area or the second target storage area to the second input storage area corresponding to the second input area indicated by the second operation.
[0098] S404: In response to detecting that the first input option is selected, the electronic device reads the target information in the first target storage area and stores the target information in a second input storage area corresponding to the second input area.
[0099] The second input area is the input area indicated by the second operation.
[0100] The specific position and size of the second input area are not limited in the present embodiment and can be set according to actual conditions. For example, the user can indicate an operation position through the second operation, and the electronic device can determine the input area to which the operation position belongs as the second input area.
[0101] Exemplarily, S404 may be implemented as follows: the electronic device obtains a second input area indicated by the second operation; in response to detecting that the first input option is selected, reads target information from the first target storage area, and stores the read target information in a second input storage area corresponding to the second input area.
[0102] S405: In response to detecting that the second input option is selected, the electronic device reads information from the second target storage area and stores the read information into the second input storage area.
[0103] The first target storage area is different from the second target storage area.
[0104] The second target storage area refers to a storage space used to temporarily store the content selected by the copy and cut operations. The embodiment of the present application does not limit the specific location and size of the second target storage area, which can be set according to actual conditions.
[0105] It should be noted that the first target storage area is different from the second target storage area. Exemplarily, the first target storage area may be a storage space corresponding to a first clipboard of the electronic device, and the second target storage area may be a storage space corresponding to a second clipboard of the electronic device.
[0106] It can be understood that, similar to the first target storage area, the second target storage area can also be a temporary storage space.
[0107] Exemplarily, S405 may be implemented as follows: the electronic device obtains the second input area indicated by the second operation; in response to detecting the selection of the second input option, reads information from the second target storage area, and stores the read information in the second input storage area corresponding to the second input area.
[0108] For example, suppose the user needs to drag and cut the selected text into the chat input box. When the mouse is released and the drag-and-drop cut operation fails, and the electronic device automatically cuts the selected text into the drag clipboard (the newly created clipboard), if the user performs a paste operation, since there are two clipboards in the electronic device and it is impossible to determine which clipboard the user wants to paste from, the program configuration can be used to make the electronic device display the two buttons "Paste from the system default clipboard" and "Paste from the drag clipboard" for the user to choose; when the user selects "Paste from the system default clipboard", the electronic device reads the information from the system default clipboard and pastes it; when the user selects "Paste from the drag clipboard", the electronic device reads the information from the drag clipboard (the newly created clipboard) and pastes it. In this way, the system default clipboard can be distinguished from the drag clipboard, so that the system default clipboard function and the drag clipboard function do not affect each other and coexist with each other.
[0109] In simple terms, by setting a first target storage area for temporarily storing target information selected when the first operation fails to execute, and a second target storage area for temporarily storing content selected by copy and cut operations, it is possible to achieve, in response to the second operation, based on the selected first input option or second input option, storing the information in the first target storage area or the second target storage area to the second input area corresponding to the second input area indicated by the second operation. In this way, the newly added automatic storage and paste function can be distinguished from the original copy / cut function of the system, and the automatic storage and paste of the target information can be achieved without affecting the original copy / cut function of the system, so that the solution is flexible, reliable, and not prone to errors.
[0110] In another embodiment, the electronic device may also delete the target information in the display area where the target information is located before the first operation is performed.
[0111] refer to Figure 5 The processing method may include but is not limited to the following S501 to S505.
[0112] S501: In response to a failure in executing a first operation, the electronic device obtains target information corresponding to the first operation.
[0113] The first operation is used to read the target information, and an inputtable identifier of the target information is displayed based on an operation position of the first operation.
[0114] For the implementation process of S501, reference may be made to the detailed description of S101 above, which will not be repeated here.
[0115] S502: The electronic device stores the target information in a first target storage area, reads the target information in the first target storage area in response to a second operation, and stores the target information in a target storage area corresponding to a target input area.
[0116] For the implementation process of S502, reference may be made to the detailed description of S102 above, which will not be repeated here.
[0117] S503: The electronic device obtains a first input area indicated by the first operation.
[0118] For the implementation process of S503, reference may be made to the detailed description of S203 above, which will not be repeated here.
[0119] S504: In response to the second operation on the first input area, the electronic device reads the target information in the first target storage area, and stores the target information in a first input storage area corresponding to the first input area.
[0120] For the implementation process of S504, reference may be made to the detailed description of S204 above, which will not be repeated here.
[0121] S505: In response to the third display area being an editable area, delete the target information in a third input storage area corresponding to the third display area.
[0122] The third display area is the display area where the target information is located before the first operation is performed.
[0123] The third input storage area refers to the storage space corresponding to the third display area.
[0124] The embodiment of the present application does not limit the specific position and size of the third display area and the third input storage area, which can be set according to actual conditions.
[0125] Exemplarily, S505 can be implemented as follows: the electronic device determines the display area where the target information is located before executing the first operation to obtain a third display area; determines whether the third display area is an editable area, and if so, deletes the target information in the third input storage area corresponding to the third display area.
[0126] For example, document 1 is initially displayed on the system desktop and stored in the storage space pointed to by drive C. Then, after the drag-and-drop cut operation on document 1 fails and the electronic device automatically stores document 1 in the clipboard, or after the electronic device stores document 1 in the clipboard to the storage space corresponding to the input area indicated by the paste operation, the electronic device can delete document 1 in the storage space pointed to by drive C. At this time, document 1 displayed on the system desktop will also disappear.
[0127] Simply put, when the first operation is a drag-and-drop cut operation, since the target information will still remain in the original position after the drag-and-drop cut operation fails, by deleting the target information in the third input storage area corresponding to the third display area, the target information can disappear from the original position, thereby realizing post-operation processing of the drag-and-drop cut operation, and realizing a complete and rigorous solution.
[0128] In another embodiment, the electronic device may further output first prompt information, and prompt whether to delete the target information in the third input storage area through the first prompt information.
[0129] refer to Figure 6 The processing method may include but is not limited to the following S601 to S606.
[0130] S601: In response to a failure in executing a first operation, the electronic device obtains target information corresponding to the first operation.
[0131] The first operation is used to read the target information, and an inputtable identifier of the target information is displayed based on an operation position of the first operation.
[0132] For the implementation process of S601, reference may be made to the detailed description of S101 above, which will not be repeated here.
[0133] S602: The electronic device stores the target information in a first target storage area, reads the target information in the first target storage area in response to a second operation, and stores the target information in a target storage area corresponding to a target input area.
[0134] For the implementation process of S602, reference may be made to the detailed description of S102 above, which will not be repeated here.
[0135] S603: The electronic device obtains a first input area indicated by the first operation.
[0136] For the implementation process of S603, reference may be made to the detailed description of S203 above, which will not be repeated here.
[0137] S604: In response to the second operation on the first input area, the electronic device reads the target information in the first target storage area, and stores the target information in a first input storage area corresponding to the first input area.
[0138] For the implementation process of S604, reference may be made to the detailed description of S204 above, which will not be repeated here.
[0139] S605: The electronic device outputs a first prompt message.
[0140] The first prompt information is used to prompt whether to delete the target information in the third input storage area.
[0141] The specific type and content of the first prompt information are not limited in the embodiment of the present application, and can be determined according to actual conditions. For example, the first prompt information can be in the form of a pop-up selection box, and its content can be the text "Please confirm whether to delete the target information in the third input storage area", and provide two selection buttons of "Yes" and "No"; the first prompt information can also be in the form of a voice file, and its content can be a voice "Please confirm whether to delete the target information in the third input storage area".
[0142] Exemplarily, S605 may be implemented as: the electronic device plays the first prompt information through a speaker; or displays the first prompt information through a display screen.
[0143] S606: In response to the third display area being an editable area and receiving a confirmation instruction for the first prompt information, the electronic device deletes the target information in the third input storage area.
[0144] The third display area is the display area where the target information is located before the first operation is performed.
[0145] For example, the user can execute a confirmation instruction for the first prompt information. Correspondingly, S606 can be implemented as follows: the electronic device determines the display area where the target information is located before the first operation is executed, and obtains a third display area; determines whether the third display area is an editable area, and if so, the electronic device receives a confirmation instruction for the first prompt information; and in response to the confirmation instruction, deletes the target information in the third input storage area.
[0146] For example, document 1 is initially displayed on the system desktop and stored in the storage space pointed to by drive C. Then, after the drag-and-drop cut operation for document 1 fails and the electronic device automatically stores document 1 in the clipboard, or after the electronic device stores document 1 in the clipboard to the storage space corresponding to the input area indicated by the paste operation, the electronic device can display a pop-up selection box on the system desktop, displaying the text "Please confirm whether to delete document 1 in drive C" and two selection buttons "Yes" and "No"; if the user clicks the "Yes" button, document 1 in the storage space pointed to by drive C is deleted, and at this time, document 1 displayed on the system desktop will also disappear; if the user clicks the "No" button, the system exits without performing the deletion action, and at this time, document 1 in the storage space pointed to by drive C still exists and document 1 is still displayed on the system desktop.
[0147] In simple terms, by outputting the first prompt information, the user can be prompted whether to delete the target information in the third input storage area, and then the target information in the third input storage area can be deleted upon receiving a confirmation instruction for the first prompt information. In this way, not only can the target information in the third input storage area be prevented from being accidentally deleted, but users can also be allowed to participate in data management, enhance system interactivity and transparency, and improve user experience.
[0148] In another embodiment, the electronic device may also determine the input area closest to the end position of the first operation as the first input area indicated by the first operation, and store the target information in the first target storage area into the first input storage area corresponding to the first input area.
[0149] refer to Figure 7 The processing method may include but is not limited to the following S701 to S704.
[0150] S701: In response to a failure in executing a first operation, the electronic device obtains target information corresponding to the first operation.
[0151] The first operation is used to read the target information, and an inputtable identifier of the target information is displayed based on an operation position of the first operation.
[0152] For the implementation process of S701, reference may be made to the detailed description of S101 above, which will not be repeated here.
[0153] S702: The electronic device stores the target information in a first target storage area, reads the target information in the first target storage area in response to a second operation, and stores the target information in a target storage area corresponding to the target input area.
[0154] For the implementation process of S702, reference may be made to the detailed description of S102 above, which will not be repeated here.
[0155] S703: The electronic device obtains a first input area indicated by the first operation.
[0156] The first input area is an input area closest to the end point of the first operation.
[0157] The embodiment of the present application does not limit the specific position and size of the first input area, which can be set according to actual conditions.
[0158] Exemplarily, S703 can be implemented as follows: the electronic device determines the end position of the first operation and all input areas on the display interface of the electronic device; calculates the distance between the end position and all input areas to obtain at least one distance value; and determines the input area corresponding to the minimum value of the at least one distance value as the first input area indicated by the first operation.
[0159] S704: In response to the second operation on the first input area, the electronic device reads the target information in the first target storage area, and stores the target information in a first input storage area corresponding to the first input area.
[0160] For the implementation process of S704, reference may be made to the detailed description of S204 above, which will not be repeated here.
[0161] For example, suppose the user needs to drag and cut the selected text into the chat input box. When the mouse release position 1 is located in the chat list bar, the drag and drop cut operation fails, and the electronic device automatically cuts the selected text to the clipboard. If the user's subsequent paste operation does not specify location information, and all input areas on the current display interface include input areas 1 to 5, then the electronic device can calculate the distance between the mouse release position 1 and the input areas 1 to 5, and obtain 5 distance values of 0.5, 1, 1.7, 0.8, and 0.3, respectively. At this time, the electronic device can store the selected text in the clipboard to the storage space corresponding to the input area 5 corresponding to 0.3.
[0162] In simple terms, since user operating habits indicate that the input area closest to the end point of the first operation is most likely to be the first input area indicated by the first operation, by directly determining the input area closest to the end point of the first operation as the first input area indicated by the first operation, when the second operation for the first input area is received, the target information in the first target storage area can be directly stored in the first input storage area corresponding to the first input area. In this way, not only can the drag and drop operation be more in line with user operating habits and user behavior patterns, but it can also improve the convenience and efficiency of the user operation process.
[0163] In another embodiment, the electronic device may further output second prompt information, and prompt through the second prompt information that the target information has been stored in the first target storage area.
[0164] refer to Figure 8 The processing method may include but is not limited to the following S801 to S803.
[0165] S801: In response to a failure in executing a first operation, the electronic device obtains target information corresponding to the first operation.
[0166] The first operation is used to read the target information, and an inputtable identifier of the target information is displayed based on an operation position of the first operation.
[0167] For the implementation process of S801, reference may be made to the detailed description of S101 above, which will not be repeated here.
[0168] S802: The electronic device stores the target information in a first target storage area, reads the target information in the first target storage area in response to a second operation, and stores the target information in a target storage area corresponding to the target input area.
[0169] For the implementation process of S802, reference may be made to the detailed description of S102 above, which will not be repeated here.
[0170] S803: The electronic device outputs a second prompt message.
[0171] The second prompt information is used to prompt that the target information has been stored in the first target storage area.
[0172] The embodiment of the present application does not limit the specific type and content of the second prompt information, which can be determined according to actual conditions. For example, the second prompt information can be in the form of a pop-up prompt box, and its content can be the text "the target information has been stored in the first target storage area"; the second prompt information can also be in the form of a voice file, and its content can be the voice "the target information has been stored in the first target storage area".
[0173] Exemplarily, S803 may be implemented as: the electronic device plays the second prompt information through a speaker; or displays the second prompt information through a display screen.
[0174] For example, suppose the user needs to drag and cut the selected text 1 into the chat input box. When the mouse is released and the drag and drop cut operation fails, and the electronic device automatically cuts the selected text 1 to the clipboard, the program configuration can be used to cause the electronic device to display a pop-up prompt box, which displays the text "Text 1 has been stored in the clipboard" to inform the user in time that the text 1 has been stored in the clipboard and prompt the user that subsequent paste operations can be performed.
[0175] Similarly, assuming that the user needs to drag and copy document A to document B, when the mouse is released and the system status bar is located in the lower right corner of the desktop, the drag and drop copy operation fails, and the electronic device automatically copies the selected document A to the clipboard, the program can be configured to cause the electronic device to display a pop-up prompt box, which displays the text "Document A has been stored in the clipboard" to let the user know in time that document A has been stored in the clipboard and prompt the user that subsequent paste operations can be performed.
[0176] In short, by outputting the second prompt information, the user can be prompted that the target information has been stored in the first target storage area. In this way, the user can know the operation progress and status of the target information in a timely manner, so as to perform subsequent operations and further improve the user experience.
[0177] Below, the processing method provided in the embodiment of the present application is explained through a complete embodiment.
[0178] In the daily use of computers or mobile phones, users often perform some drag operations to drag text, pictures, files, etc. to target applications such as Teams, WeChat, etc. However, in many cases, users may not be able to accurately place the above content in the input box where it needs to be placed, resulting in the failure of this drag operation. For example, when a user drags a file into WeChat, the file needs to be dragged to the specific location of the WeChat chat input box before it can be released. The released object must be a control object that can accept input in order to be dragged successfully. For example, the user wants to drag to the WeChat chat input box, but it is offset a little, and the center point of release is not the WeChat chat input box, then the drag will fail. When the center point of release is in the WeChat chat input box, the release position and the WeChat chat input box match each other, and the drag can be successful.
[0179] In view of the above problems, the embodiment of the present application provides a processing method, which can realize direct pasting of the failed drag content by automatically copying the failed drag content to the clipboard and prompting the user to perform a paste operation (such as Control+V), without the user having to manually repeat the drag operation. This solution mainly includes the following steps:
[0180] Step 1: The user presses and holds the left mouse button to drag the content.
[0181] Step 2: The user moves the mouse to the desired location, but the mouse may be in the wrong position in the middle.
[0182] Step 3: The user releases the left mouse button and the drag operation is completed, but the drag operation is unsuccessful.
[0183] Step 4. The electronic device automatically copies the dragged content to the clipboard, and a toast prompts the user that it can be pasted by pressing Control+V.
[0184] If the drag fails, the electronic device calls ClipboardManager.setPrimaryClip(clip) to write to the system clipboard.
[0185] Then, it is called when the user clicks the focus and then pastes or Control+V.
[0186] Step 5. The user executes Control+V.
[0187] Step 6: The electronic device is pasted.
[0188] If the user presses Control+V, the electronic device calls ClipboardManager.getPrimaryClipDescription to obtain the content of the failed drag and paste it to the specified location.
[0189] This solution may also include an automatic pasting process for the content that failed to be dragged. The electronic device may determine whether the mouse has released the focus, and then find the nearest input box for pasting, or may obtain the focus position for pasting.
[0190] In a second aspect, the present application provides a processing device, such as Figure 8 As shown, the processing device 90 includes: an acquisition unit 901 and a storage unit 902. Among them:
[0191] The acquisition unit 901 is used to acquire target information corresponding to the first operation in response to the failure of the first operation; the first operation is used to read the target information and display an input mark of the target information based on the operation position of the first operation;
[0192] The storage unit 902 is used to store the target information in a first target storage area, read the target information in the first target storage area in response to a second operation, and store the target information in a target storage area corresponding to the target input area.
[0193] In some embodiments, the acquiring unit 901 is further used to: acquire a first input area indicated by the first operation.
[0194] The storage unit 902 is further configured to: in response to a second operation on the first input area, read the target information in the first target storage area, and store the target information in a first input storage area corresponding to the first input area.
[0195] In some embodiments, the processing device 90 further includes a display unit, and the display unit is configured to: in response to detecting the second operation, display a first input option and a second input option.
[0196] The storage unit 902 is also used for: in response to detecting that the first input option is selected, reading the target information in the first target storage area, and storing the target information in a second input storage area corresponding to the second input area; in response to detecting that the second input option is selected, reading information in the second target storage area, and storing the read information in the second input storage area; the first target storage area is different from the second target storage area; wherein the second input area is the input area indicated by the second operation.
[0197] In some embodiments, the processing device 90 further includes a deleting unit. The deleting unit is used to: in response to the third display area being an editable area, delete the target information in a third input storage area corresponding to the third display area; wherein the third display area is the display area where the target information is located before the first operation is performed.
[0198] In some embodiments, the processing device 90 further includes a first output unit. The first output unit is used to: before deleting the target information in the third input storage area corresponding to the third display area, output first prompt information; the first prompt information is used to prompt whether to delete the target information in the third input storage area.
[0199] Correspondingly, the deleting unit is further used for: in response to receiving a confirmation instruction for the first prompt information, deleting the target information in the third input storage area.
[0200] In some embodiments, the first input area is an input area closest to an end point of the first operation.
[0201] In some embodiments, the processing device 90 further includes a second output unit. The second output unit is used to: output second prompt information; the second prompt information is used to prompt that the target information has been stored in the first target storage area.
[0202] In a third aspect, an embodiment of the present application provides an electronic device, including an input interface, a memory, and a processor, wherein the memory stores a computer program that can be run on the processor;
[0203] The input interface is used to: receive a first operation; the first operation is used to read the target information, and display an inputtable identifier of the target information based on an operation position of the first operation;
[0204] The processor is used to: in response to a failure in executing a first operation, obtain target information corresponding to the first operation; store the target information in a first target storage area, and in response to a second operation, read the target information from the first target storage area, and store the target information in a target storage area corresponding to a target input area;
[0205] The memory is used to store the target information.
[0206] Combine the following Fig.10 The electronic device 100 shown is a block diagram of the electronic device.
[0207] In one example, if Fig.10 As shown, the electronic device 100 includes: an input interface 1001, a processor 1002, at least one communication bus 1003, at least one external communication interface 1004 and a memory 1005. The communication bus 1003 is configured to realize connection and communication between these components. The external communication interface 1004 may include a standard wired interface and a wireless interface.
[0208] The input interface 1001 is configured to: receive a first operation; the first operation is used to read the target information, and display an inputtable identifier of the target information based on the operation position of the first operation;
[0209] The processor 1002 is configured to: in response to a failure in executing a first operation, obtain target information corresponding to the first operation; store the target information in a first target storage area, and in response to a second operation, read the target information from the first target storage area, and store the target information in a target storage area corresponding to a target input area;
[0210] The memory 1005 is configured to store the target information.
[0211] The memory 1005 is also configured to store instructions and applications executable by the processor 1002, and can also cache data to be processed or processed by the processor and various modules in the electronic device (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0212] In a fourth aspect, an embodiment of the present application further provides a storage medium, on which a computer program is stored. When the computer program on the storage medium is executed, the steps in the processing method provided in the embodiment of the present application are implemented.
[0213] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps in the above-mentioned processing method.
[0214] It should be noted that in the embodiment of the present application, if the above-mentioned processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0215] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0216] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0217] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0218] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0219] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0220] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0221] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0222] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0223] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A processing method, the method comprising: In response to a failure in executing the first operation, obtaining target information corresponding to the first operation; The first operation is used to read the target information, and display an inputtable identifier of the target information based on an operation position of the first operation; The target information is stored in a first target storage area, and in response to a second operation, the target information is read in the first target storage area and stored in a target storage area corresponding to a target input area.
2. The method according to claim 1, further comprising: Acquire a first input area indicated by the first operation; In response to a second operation on the first input area, the target information is read from the first target storage area, and the target information is stored in a first input storage area corresponding to the first input area.
3. The method according to claim 1, further comprising: In response to detecting the second operation, displaying a first input option and a second input option; In response to detecting that the first input option is selected, reading the target information in the first target storage area, and storing the target information in a second input storage area corresponding to the second input area; In response to detecting that the second input option is selected, reading information in a second target storage area, and storing the read information in the second input storage area; The first target storage area is different from the second target storage area; The second input area is the input area indicated by the second operation.
4. The method according to claim 2, further comprising: In response to the third display area being an editable area, deleting the target information in a third input storage area corresponding to the third display area; The third display area is the display area where the target information is located before the first operation is performed.
5. The method according to claim 4, before deleting the target information in the third input storage area corresponding to the third display area, the method further comprises: Output the first prompt information; The first prompt information is used to prompt whether to delete the target information in the third input storage area; Correspondingly, deleting the target information in the third input storage area corresponding to the third display area includes: In response to receiving a confirmation instruction for the first prompt information, the target information is deleted in the third input storage area. The method according to claim 2 , wherein the first input area is an input area closest to an end point of the first operation.
7. The method according to claim 1, further comprising: Output the second prompt information; The second prompt information is used to prompt that the target information has been stored in the first target storage area.
8. A processing device, comprising: an acquiring unit, configured to acquire target information corresponding to the first operation in response to failure of execution of the first operation; The first operation is used to read the target information, and display an inputtable identifier of the target information based on an operation position of the first operation; The storage unit is used to store the target information in a first target storage area, read the target information in the first target storage area in response to a second operation, and store the target information in a target storage area corresponding to the target input area.
9. An electronic device comprising an input interface, a memory and a processor, wherein the memory stores a computer program that can be run on the processor; The input interface is used to: receive a first operation; the first operation is used to read the target information, and display an inputtable identifier of the target information based on an operation position of the first operation; The processor is configured to: in response to the failure of the execution of the first operation, obtain target information corresponding to the first operation; store the target information in a first target storage area, and in response to a second operation, read the target information in the first target storage area, and store the target information in a target storage area corresponding to a target input area; The memory is used to store the target information.
10. A storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
