A method, apparatus, device, and medium for searching content information
The method automates the transfer of content between applications using hooking technology to simulate mouse operations, addressing the inefficiencies and errors in manual cross-process searching, thereby improving search efficiency.
Patent Information
- Application Number
- CN202210751044.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-06-29
AI Technical Summary
Operations back and forth between two files are cumbersome and error-prone, resulting in high complexity in content acquisition, and it is difficult for the prior art to automatically search for content information selected in other processes in the target process.
By obtaining file location information of the source process and the target process, using the hook function to intercept the content information, and simulate mouse operations to search in the target file.
It realizes automatic search of content information selected in other processes in the target process, avoids the cumbersomeness of manual operations and improves the efficiency of cross-process content information search.
Smart Images

Figure CN115098280B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and particularly to a method, device, equipment and medium for searching content information. Background Art
[0002] With the popularization of computers, people place more and more work on computers. In the complicated work, there is often such a scenario: according to a given excel, sort out the content in a word or txt or other file. At this time, people need to switch back and forth, search and find in the two files. However, on the one hand, a large number of back-and-forth operations between the two programs are too cumbersome, resulting in a high complexity of content acquisition; on the other hand, obtaining content by manually switching between the two files is prone to errors in content acquisition due to the existence of human factors. In summary, the problem of how to automatically search for the selected content information in other processes in the target process to avoid the disadvantages of manual operations remains to be further solved. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for searching content information, which can automatically search for the selected content information in other processes in the target process to avoid the disadvantages of manual operations. The specific solutions are as follows:
[0004] In the first aspect, the present application discloses a method for searching content information, including:
[0005] Obtain the source process and the corresponding source file, and obtain the target execution process and the corresponding target file;
[0006] Obtain the position information of the search box of the search content window in the target file, and obtain the position information of the confirmation search button of the search content window;
[0007] When it is monitored that the operation of selecting the target content information in the source file is performed, the hook function is used to intercept the target content information;
[0008] According to the position information of the search box, simulate a mouse operation to fill the target content information into the search box, and according to the position information of the confirmation search button, simulate a mouse operation to click the confirmation search button to complete the search for the target content information.
[0009] Optionally, the obtaining of the source process and the corresponding source file includes:
[0010] When a click operation on the preset source process determination button is obtained, monitor the subsequent first open file operation;
[0011] When the first file opening operation is monitored, the process corresponding to the first file opening operation is determined as the source process, and the file corresponding to the file opening operation is determined as the source file.
[0012] Optionally, the obtaining of the target execution process and the corresponding target file includes:
[0013] After a click operation on a preset execution process determination button is obtained, subsequent second file opening operations are monitored;
[0014] When the second file opening operation is monitored, the process corresponding to the second file opening operation is determined as the target execution process, and the file corresponding to the file opening operation is determined as the target file.
[0015] Optionally, the obtaining of the position information of the search box in the search content window of the target file and the position information of the confirm search button in the search content window includes:
[0016] Obtain the pixel position information of the search box in the search content window of the target file and the pixel position information of the confirm search button in the search content window.
[0017] Optionally, the obtaining of the pixel position information of the search box in the search content window of the target file includes:
[0018] After a click operation on a preset confirm search box button is obtained, subsequent first click operations are monitored;
[0019] When the first click operation is monitored, the pixel position information of the mouse click position corresponding to the first click operation is determined as the pixel position information of the search box in the search content window of the target file.
[0020] Optionally, the obtaining of the pixel position information of the confirm search button in the search content window includes:
[0021] After a click operation on a preset confirm search button is obtained, subsequent second click operations are monitored;
[0022] When the second click operation is monitored, the pixel position information of the mouse click position corresponding to the second click operation is determined as the pixel position information of the confirm search button in the search content window.
[0023] Optionally, according to the position information of the search box, simulating a mouse operation to fill the target content information into the search box, and according to the position information of the confirm search button, simulating a mouse operation to click the confirm search button to complete the search for the target content information, includes:
[0024] Simulate mouse operations based on the pixel position information of the search box to fill the target content information into the search box, and simulate mouse operations based on the pixel position information of the confirmation search button to click on the confirmation search button to complete the search for the target content information.
[0025] In a second aspect, the present application discloses a content information search device, including:
[0026] A process acquisition module, configured to acquire a source process and a corresponding source file and acquire a target execution process and a corresponding target file;
[0027] A position acquisition module, configured to acquire the position information of the search box of the search content window in the target file and acquire the position information of the confirmation search button of the search content window;
[0028] A content information interception module, configured to, when monitoring an operation of selecting target content information in the source file, use a hook function to intercept the target content information;
[0029] A content information search module, configured to simulate mouse operations based on the position information of the search box to fill the target content information into the search box, and simulate mouse operations based on the position information of the confirmation search button to click on the confirmation search button to complete the search for the target content information.
[0030] In a third aspect, the present application discloses an electronic device, including:
[0031] A memory, configured to store a computer program;
[0032] A processor, configured to execute the computer program to implement the steps of the content information search method disclosed above.
[0033] In a fourth aspect, the present application discloses a computer-readable storage medium, configured to store a computer program; wherein, when the computer program is executed by a processor, the steps of the content information search method disclosed above are implemented.
[0034] When searching for content information, the present application first obtains the source process and the corresponding source file and obtains the target execution process and the corresponding target file, then obtains the position information of the search box of the content search window in the target file and obtains the position information of the confirmation search button of the content search window, and when monitoring the operation of selecting the target content information in the source file, uses the hook function to intercept the target content information, and finally simulates the mouse operation according to the position information of the search box to fill the target content information into the search box, and simulates the mouse operation according to the position information of the confirmation search button to click the confirmation search button to complete the search for the target content information. It can be seen that when the present application searches for content information selected in other processes in the target process, it first obtains the source process and source file as well as the target process and target file, and obtains the position information of the search box in the search content window in the target file and the position information of the confirm search button in the search content window. When an operation of selecting the target content information of the source file is monitored, a hook is used to obtain the target content information, and the mouse operation is simulated according to the obtained search box position information to fill the target content information into the search box, and the mouse operation is simulated according to the position information of the confirm search button to click the confirm search button, so as to automatically perform content search in the two processes. Therefore, when searching for content information, the present application obtains the source process and the source file as well as the target process and the target file when searching for the target content information in the source file in the target file, and obtains the location information of the search box in the search content window in the target file and the location information of the confirmation search button in the search content window. When the operation of selecting the target content information in the source file is monitored, the corresponding target content information is obtained and the mouse operation is simulated to click to complete the automatic search of the target content information. The above technical solution uses the hook technology to realize the communication between the two processes and realizes the function of automatically searching the content information specified in the source file in the target file. It only needs to select the target content information in the source file, and the mouse click can be simulated through the pre-acquired location information, so that the automatic search is realized when searching for content information across processes, avoiding the tedious operation of manually performing a large number of back and forth operations between the two programs, thereby improving the efficiency of searching for content information across processes. In summary, the present application can automatically search for content information selected in other processes in the target process to avoid the disadvantages of manual operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0036] Figure 1 Flowchart of a content information search method provided for this application;
[0037] Figure 2 Flowchart of a specific content information search method provided for this application;
[0038] Figure 3 Schematic diagram of the GUI interface provided for this application;
[0039] Figure 4 Schematic diagram of the search box in the excel provided for this application;
[0040] Figure 5 Schematic diagram of the structure of a content information search device provided for this application;
[0041] Figure 6 Schematic diagram of the structure of an electronic device provided for this application. Specific embodiments
[0042] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0043] In complex work, the following scenario is often encountered: according to a given excel, sort out the content in a word or txt or other file. At this time, people need to switch, search and find back and forth between the two files. However, on the one hand, a large number of back-and-forth operations between the two programs are too cumbersome, resulting in a high complexity of content acquisition; on the other hand, content acquisition by switching between the two files manually is prone to errors due to human factors. For this reason, this application provides a content information search method that can automatically search for the selected content information in other processes in the target process to avoid the disadvantages of manual operations.
[0044] Embodiments of the present invention disclose a content information search method. Refer to Figure 1 as shown, the method includes:
[0045] Step S11: Obtain the source process and the corresponding source file, and obtain the target execution process and the corresponding target file.
[0046] In this embodiment, before obtaining the source process and the corresponding source file and obtaining the target execution process and the corresponding target file, it further includes: opening the source file and the target file, and opening a search box in the target file. Since the target file will automatically move the search box when performing a search in order to display the searched content, in order to avoid the change of the position of the search box, it is necessary to move the search box to a place where the content of the target file is not blocked in advance.
[0047] In this embodiment, before obtaining the source process and the corresponding source file and obtaining the target execution process and the corresponding target file, it further includes: designing an interface for obtaining data content, writing a GUI (i.e., Graphical User Interface), obtaining the source process and the corresponding source file and obtaining the target execution process and the corresponding target file through the GUI, and subsequently obtaining the position information of the search box in the search content window in the target file and the position information of the confirmation search button in the search content window.
[0048] In this embodiment, the source process and the corresponding source file are files that provide target content information, that is, the content information in the source file needs to be searched in other files subsequently. The source process includes but is not limited to excel, txt, and word. The target process and the corresponding target file are files in which the corresponding target content information is searched. The target process includes but is not limited to excel and word. It should be noted that the target process is a process that can perform content information search. For example, the search box in excel can perform corresponding content information search, and the search box in word can perform corresponding content information search. The source process is a process that can select content information. Specifically, first obtain the source process and the corresponding source file and obtain the target execution process and the corresponding target file, so that the target content information can be intercepted in the source file and searched in the target file subsequently. It can be understood that the source process and the target process can be the same process or different processes. Through the above technical solution, first obtain two processes for content information capture and content information search, the source process and the target process, so as to determine the target process and the source process, so as to facilitate subsequent searching for the target content information in the source file corresponding to the source process in the target file corresponding to the target process by obtaining the corresponding position information.
[0049] Step S12: Obtain the position information of the search box in the search content window in the target file and obtain the position information of the confirmation search button in the search content window.
[0050] In this embodiment, the position information of the search box in the search content window of the target file and the position information of the confirmation search button in the search content window are obtained. It can be understood that the target file corresponding to the target process has its own content search system. Usually, during use, the search content window for movies is opened, the content to be searched is input into the corresponding search box, and after clicking the confirmation search button, the corresponding content information can be searched. Specifically, the position information of the search box in the search content window of the target file is obtained through a preset interface, and the position information of the confirmation search button in the search content window is obtained through a preset interface. It should be noted that in some specific embodiments, the confirmation search button is the next search button, so as to facilitate the sequential search for multiple corresponding targets in the target file. Through the above technical solution, the position information of the search box in the search content window of the target file is obtained and the position information of the confirmation search button in the search content window is obtained, so as to facilitate subsequent automatic search and acquisition of content information through the position information of the search box in the search content window of the target file and the position information of the confirmation search button in the search content window, and thus the control of the simulated mouse can be performed through the corresponding position information.
[0051] Step S13: When it is monitored that an operation of selecting the target content information in the source file is performed, the hook function is used to intercept the target content information.
[0052] In this embodiment, after obtaining and using the position information of the source file, the target file, the search box in the search content window, and the position information of the confirmation search button in the search content window, the operations in the source file are monitored. When it is monitored that an operation of selecting the target content information in the source file is performed, the preset hook function is used to obtain the target content information. Through the above technical solution, the corresponding target content information in the source file is obtained, and the hook function is used to intercept the target content information, so as to facilitate subsequent search for the target content information in the source file in the target file, thereby realizing the automatic search function of the target content information.
[0053] Step S14: According to the position information of the search box, a simulated mouse operation is performed to fill the target content information into the search box, and according to the position information of the confirmation search button, a simulated mouse operation is performed to click the confirmation search button to complete the search for the target content information.
[0054] In this embodiment, according to the position information of the search box, mouse operations are simulated to fill the target content information into the search box, and according to the position information of the confirmation search button, mouse operations are simulated to click on the confirmation search button. It can be understood that when searching for information in a target file, the search window in the target file needs to be opened first, content is entered in the search box corresponding to the search window, and content is searched by clicking the confirmation search button. In this embodiment, through the obtained corresponding position information, content is searched by simulating the mouse. Through the above technical solution, the hook technology is used to realize communication between two processes and to realize the function of automatically searching for specified content information in the target file in the source file. Only by selecting the target content information in the source file can the mouse be simulated to click through the pre-obtained position information, so that automatic search is realized when searching for content information between processes, avoiding a large number of cumbersome operations back and forth between two programs manually, thereby improving the efficiency of content information search between processes.
[0055] It can be seen that when searching for the selected content information in other processes in the target process in this embodiment, the source process and the source file, as well as the target process and the target file, are first obtained, and the position information of the search box in the search window for finding content in the target file and the position information of the confirmation search button in the search window for finding content are obtained. When it is monitored that there is an operation of selecting the target content information in the source file, the hook is used to obtain the target content information, and according to the obtained position information of the search box, mouse operations are simulated to fill the target content information into the search box, and according to the position information of the confirmation search button, mouse operations are simulated to click on the confirmation search button to automatically search for content in the two processes. Thus, when the present application performs content information search, when it is necessary to search for the target content information in the source file in the target file, the source process and the source file, as well as the target process and the target file, are obtained, and the position information of the search box in the search window for finding content in the target file and the position information of the confirmation search button in the search window for finding content are obtained. When it is monitored that there is an operation of selecting the target content information in the source file, the corresponding target content information is obtained and the mouse operation is simulated to click to complete the automatic search of the target content information. The above technical solution uses the hook technology to realize communication between two processes and to realize the function of automatically searching for specified content information in the target file in the source file. Only by selecting the target content information in the source file can the mouse be simulated to click through the pre-obtained position information, so that automatic search is realized when searching for content information between processes, avoiding a large number of cumbersome operations back and forth between two programs manually, thereby improving the efficiency of content information search between processes. In summary, the present application can automatically search for the selected content information in other processes in the target process to avoid the disadvantages of manual operations.
[0056] SeeFigure 2 As shown in Figure 2 , an embodiment of the present invention discloses a specific content information search method. Compared with the previous embodiment, the technical solution in this embodiment is further described and optimized.
[0057] Step S21: Obtain the source process and the corresponding source file, and obtain the target execution process and the corresponding target file.
[0058] In this embodiment, the obtaining of the source process and the corresponding source file includes: after obtaining a click operation on a preset source process determination button, monitor subsequent first open file operations; when the first open file operation is monitored, determine the process corresponding to the first open file operation as the source process and determine the file corresponding to the open file operation as the source file. The obtaining of the target execution process and the corresponding target file includes: after obtaining a click operation on a preset execution process determination button, monitor subsequent second open file operations; when the second open file operation is monitored, determine the process corresponding to the second open file operation as the target execution process and determine the file corresponding to the open file operation as the target file.
[0059] In a specific implementation manner, the user clicks the preset source process determination button and opens the corresponding file for which content search is desired, and then determines the above file as the source file; the user clicks the preset execution process determination button and opens the corresponding file for the search content, and then determines the above file as the target file, and displays the source file and the target file on the GUI window so that the user can check whether there are errors in the selection results of the source file and the target file and make changes in a timely manner.
[0060] Step S22: Obtain the pixel position information of the search box of the search content window in the target file and obtain the pixel position information of the confirm search button of the search content window.
[0061] In this embodiment, the obtaining of the pixel position information of the search box of the search content window in the target file includes: after obtaining a click operation on a preset search box determination button, monitor subsequent first click operations; when the first click operation is monitored, determine the pixel position information of the mouse click position corresponding to the first click operation as the pixel position information of the search box of the search content window in the target file. The obtaining of the pixel position information of the confirm search button of the search content window includes: after obtaining a click operation on a preset confirm search button, monitor subsequent second click operations; when the second click operation is monitored, determine the pixel position information of the mouse click position corresponding to the second click operation as the pixel position information of the confirm search button of the search content window.
[0062] In a specific implementation manner, the schematic diagram of the GUI interface is as follows. Figure 3 After the user clicks the "Determine Source Process" button, the "Holiday Work Arrangement.txt - Notepad" file is opened. The GUI interface program will automatically obtain the current operating process and display its name on the interface, that is, in the box showing "Holiday Work Arrangement.txt - Notepad" in the schematic diagram, and determine the above - mentioned file as the source file. When the user clicks the "Determine Execution Process" button and opens the "Holiday Work Arrangement.xlsx - Excel" file, the GUI interface program will automatically obtain the currently opened excel and display its name on the interface, that is, in the box showing "Holiday Work Arrangement.xlsx - Excel" in the schematic diagram, and determine the above - mentioned file as the target file. Further, when the user opens the search box in the target file, that is, the schematic diagram of the search box in excel is as follows. Figure 4 After the user clicks the "Determine Search Box" button and then clicks on the input box in the schematic diagram of the search box, the GUI interface program will obtain the pixel position of the current mouse click and display it in the box where "POS:(2075,1174)" is located. Further, when the user clicks the "Determine Search" button and then clicks on the "Find Next" button in the schematic diagram of the search box, the GUI interface program will also obtain the pixel position of the current mouse click and display it in the box where "POS:(2257,1308)" is located.
[0063] Step S23: When it is monitored that an operation of selecting the target content information in the source file is performed, the hook function is used to intercept the target content information.
[0064] In a specific implementation manner, after the above - mentioned setting steps are completed, when the user selects any text in the source file, the GUI interface program will use the Hook (i.e., the hook) function to intercept the mouse message of the target process and automatically obtain the selected content. Through the above - mentioned technical solution, the corresponding target content information in the source file is obtained, and the hook function is used to intercept the target content information, so as to facilitate the subsequent search for the target content information in the source file in the target file, thereby realizing the automatic search function of the target content information.
[0065] Step S24: According to the pixel position information of the search box, simulate a mouse operation to fill the target content information into the search box, and according to the pixel position information of the confirm search button, simulate a mouse operation to click the confirm search button to complete the search for the target content information.
[0066] In a specific embodiment, after obtaining the pixel position information of the search box and the pixel position information of the confirmation search button, the content is automatically filled into the content column of the excel search box by simulating mouse messages; similarly, according to the previously obtained position information, a click operation is simulated at the "Find Next" button, thereby realizing the automatic search function. Through the above technical solution, the hook technology is used to realize the communication between two processes, and the function of automatically searching for the specified content information in the source file in the target file is realized. Only by selecting the target content information in the source file, the mouse can be simulated to click through the pre-obtained position information, so as to realize automatic search when searching for content information between processes, avoiding a large number of cumbersome operations back and forth between two programs manually, thereby improving the efficiency of content information search between processes.
[0067] It can be seen that when searching for the selected content information in other processes in the target process in this embodiment, first, the source process and the source file, as well as the target process and the target file, are obtained, and the pixel position information of the search box of the search content window in the target file and the pixel position information of the confirmation search button of the search content window are obtained. When it is monitored that there is an operation of selecting the target content information in the source file, the hook is used to obtain the target content information, and according to the obtained pixel position information of the search box, the mouse operation is simulated to fill the target content information into the search box, and according to the pixel position information of the confirmation search button, the mouse operation is simulated to click the confirmation search button, and the content search in the two processes is automatically performed. Thus, the pixel position information of the search box and the pixel position information of the confirmation search button are obtained through the preset interface, so as to accurately determine the position of the button and facilitate clicking through mouse simulation to complete the automatic search.
[0068] See Figure 5 As shown in the embodiments of the present application discloses a content information search device, including:
[0069] A process acquisition module 11, configured to acquire a source process and a corresponding source file, and acquire a target execution process and a corresponding target file;
[0070] A position acquisition module 12, configured to acquire the position information of the search box of the search content window in the target file and acquire the position information of the confirmation search button of the search content window;
[0071] A content information intercepting module 13, configured to use the hook function to intercept the target content information when it is monitored that there is an operation of selecting the target content information in the source file;
[0072] The content information search module 14 is used to simulate a mouse operation to fill the target content information into the search box according to the position information of the search box, and simulate a mouse operation to click the confirm search button according to the position information of the confirm search button to complete the search of the target content information.
[0073] It can be seen that when searching for content information selected in other processes in the target process, this embodiment first obtains the source process and source file as well as the target process and target file, and obtains the position information of the search box in the search content window and the position information of the confirm search button in the search content window in the target file. When an operation of selecting the target content information of the source file is monitored, the target content information is obtained by using a hook, and the target content information is filled into the search box by simulating the mouse operation according to the obtained search box position information, and the confirm search button is clicked by simulating the mouse operation according to the position information of the confirm search button, so as to automatically perform content search in the two processes. Therefore, when searching for content information, the present application obtains the source process and the source file as well as the target process and the target file when searching for the target content information in the source file in the target file, and obtains the location information of the search box in the search content window in the target file and the location information of the confirmation search button in the search content window. When the operation of selecting the target content information in the source file is monitored, the corresponding target content information is obtained and the mouse operation is simulated to click to complete the automatic search of the target content information. The above technical solution uses the hook technology to realize the communication between the two processes and realizes the function of automatically searching the content information specified in the source file in the target file. It only needs to select the target content information in the source file, and the mouse click can be simulated through the pre-acquired location information, so that the automatic search is realized when searching for content information across processes, avoiding the tedious operation of manually performing a large number of back and forth operations between the two programs, thereby improving the efficiency of searching for content information across processes. In summary, the present application can automatically search for content information selected in other processes in the target process to avoid the disadvantages of manual operation.
[0074] In some specific embodiments, the process acquisition module 11 specifically includes:
[0075] A first file opening monitoring unit is used to monitor a subsequent first file opening operation after a click operation on a preset source process confirmation button is obtained;
[0076] The source process determining unit is used to determine the process corresponding to the first file opening operation as the source process and the file corresponding to the file opening operation as the source file when the first file opening operation is monitored.
[0077] In some specific embodiments, the process acquisition module 11 specifically includes:
[0078] A second file opening monitoring unit, configured to monitor subsequent second file opening operations after a click operation on a preset execution process determination button is obtained.
[0079] A target process determination unit, configured to, when the second file opening operation is monitored, determine the process corresponding to the second file opening operation as the target execution process and determine the file corresponding to the file opening operation as the target file.
[0080] In some specific embodiments, the position acquisition module 12 is specifically configured to: acquire pixel position information of a search box of a search content window in the target file and acquire pixel position information of a confirm search button of the search content window.
[0081] In some specific embodiments, the position acquisition module 12 specifically includes:
[0082] A first click monitoring unit, configured to monitor subsequent first click operations after a click operation on a preset determine search box button is obtained.
[0083] A search box position determination unit, configured to, when the first click operation is monitored, determine the pixel position information of the mouse click position corresponding to the first click operation as the pixel position information of the search box of the search content window in the target file.
[0084] In some specific embodiments, the position acquisition module 12 specifically includes:
[0085] A second click monitoring unit, configured to monitor subsequent second click operations after a click operation on a preset determine search button is obtained.
[0086] A confirm search button position determination unit, configured to, when the second click operation is monitored, determine the pixel position information of the mouse click position corresponding to the second click operation as the pixel position information of the confirm search button of the search content window.
[0087] In some specific embodiments, the content information search module 14 is specifically configured to: fill the target content information into the search box by simulating a mouse operation according to the pixel position information of the search box, and click the confirm search button by simulating a mouse operation according to the pixel position information of the confirm search button, so as to complete the search for the target content information.
[0088] Figure 6The following shows an electronic device 20 provided by an embodiment of the present application. The electronic device 20 may specifically further include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the content information search method disclosed in any of the foregoing embodiments. Additionally, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0089] In this embodiment, the power supply 23 is used to provide voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of the present application, and no specific limitation is imposed here; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application requirements, and no specific limitation is made here.
[0090] In addition, as a carrier for resource storage, the memory 22 can be a read-only memory, a random access memory, a disk, or an optical disc, etc. The resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method can be short-term storage or permanent storage.
[0091] Among them, the operating system 221 is used to manage and control each hardware device on the electronic device 20 and the computer program 222, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the content information search method executed by the electronic device 20 disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program that can be used to complete other specific tasks.
[0092] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the content information search method disclosed above. For the specific steps of this method, reference can be made to the corresponding content disclosed in the foregoing embodiments, and details will not be repeated here.
[0093] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0094] The above has introduced in detail a content information search method, device, equipment and medium provided by the present invention. Specific examples are used in this text to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A method for searching content information, characterized in that, Including: Obtain the source process and the corresponding source file, and obtain the target execution process and the corresponding target file; Obtain the position information of the search box in the search content window of the target file, and obtain the position information of the confirmation search button in the search content window; When it is monitored that an operation of selecting the target content information in the source file is performed, use the hook function to intercept the target content information; Fill the target content information into the search box by simulating a mouse operation according to the position information of the search box, and click the confirmation search button by simulating a mouse operation according to the position information of the confirmation search button to complete the search for the target content information.
2. The content information search method according to claim 1, characterized in that The obtaining of the source process and the corresponding source file includes: After obtaining a click operation on the preset source process determination button, monitor subsequent first open file operations; When the first open file operation is monitored, determine the process corresponding to the first open file operation as the source process and determine the file corresponding to the open file operation as the source file.
3. The content information search method according to claim 2, wherein The obtaining of the target execution process and the corresponding target file includes: After obtaining a click operation on the preset execution process determination button, monitor subsequent second open file operations; When the second open file operation is monitored, determine the process corresponding to the second open file operation as the target execution process and determine the file corresponding to the open file operation as the target file.
4. The content information search method according to any one of claims 1 to 3, characterized in that, The obtaining of the position information of the search box in the search content window of the target file and the obtaining of the position information of the confirmation search button in the search content window include: Obtain the pixel position information of the search box in the search content window of the target file, and obtain the pixel position information of the confirmation search button in the search content window.
5. The content information search method according to claim 4, wherein The obtaining of the pixel position information of the search box in the search content window of the target file includes: After obtaining a click operation on the preset determine search box button, monitor subsequent first click operations; When the first click operation is monitored, determine the pixel position information of the mouse click position corresponding to the first click operation as the pixel position information of the search box in the search content window of the target file.
6. The content information search method according to claim 5, characterized in that, The obtaining of the pixel position information of the confirmation search button in the search content window includes: After obtaining a click operation on the preset determine search button, monitor subsequent second click operations; When the second click operation is monitored, determine the pixel position information of the mouse click position corresponding to the second click operation as the pixel position information of the confirmation search button in the search content window.
7. The content information search method according to claim 4, wherein The filling of the target content information into the search box by simulating a mouse operation according to the position information of the search box and the clicking of the confirmation search button by simulating a mouse operation according to the position information of the confirmation search button to complete the search for the target content information includes: Fill the target content information into the search box by simulating a mouse operation according to the pixel position information of the search box, and click the confirmation search button by simulating a mouse operation according to the pixel position information of the confirmation search button to complete the search for the target content information.
8. A content information search device, characterized in that, Comprising: A process acquisition module, configured to acquire a source process and a corresponding source file and acquire a target execution process and a corresponding target file; A position acquisition module, configured to acquire position information of a search box of a search content window in the target file and acquire position information of a confirmation search button of the search content window; A content information intercepting module, configured to intercept the target content information by using a hook function when it is monitored that an operation of selecting the target content information in the source file is performed; A content information search module, configured to fill the target content information into the search box by simulating a mouse operation according to the position information of the search box, and click the confirmation search button by simulating a mouse operation according to the position information of the confirmation search button, so as to complete the search for the target content information.
9. An electronic device, characterized in that, Comprising: A memory, configured to store a computer program; A processor, configured to execute the computer program to implement the steps of the content information search method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, For storing a computer program; wherein, when the computer program is executed by the processor, the steps of the content information search method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Information search method and device
CN101661498A
Method for performing keyboard search by moving mouse pointer to select search engine
CN102866836A