CN109783305B - Method and device for monitoring information - Google Patents

Method and device for monitoring information Download PDF

Info

Publication number
CN109783305B
CN109783305B CN201811399752.4A CN201811399752A CN109783305B CN 109783305 B CN109783305 B CN 109783305B CN 201811399752 A CN201811399752 A CN 201811399752A CN 109783305 B CN109783305 B CN 109783305B
Authority
CN
China
Prior art keywords
information
updated
context
drawn
target window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811399752.4A
Other languages
Chinese (zh)
Other versions
CN109783305A (en
Inventor
许全聪
刘钢
黄志炜
吴少华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meiya Pico Information Co Ltd
China Electronics Engineering Design Institute Co Ltd
Original Assignee
Xiamen Meiya Pico Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Meiya Pico Information Co Ltd filed Critical Xiamen Meiya Pico Information Co Ltd
Priority to CN201811399752.4A priority Critical patent/CN109783305B/en
Publication of CN109783305A publication Critical patent/CN109783305A/en
Application granted granted Critical
Publication of CN109783305B publication Critical patent/CN109783305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method and a device for monitoring information. One embodiment of the method comprises: in response to detecting that the context of the calling device is called, establishing a corresponding relation between the context of the calling device and the context of the target window; in response to detecting that information is drawn in a target window based on the context of the device, obtaining pre-stored historical information to be updated; comparing the history information to be updated with the plotted information, and determining and outputting the latest information from the plotted information based on the comparison result. The embodiment improves the universality and flexibility of information monitoring.

Description

Method and device for monitoring information
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for monitoring information.
Background
Recently, as the number of divulgence events caused by using communication software is increasing, the communication content of the communication software needs to be monitored in some occasions. Network protocols of mainstream communication software are generally encrypted and difficult to break, and if communication contents are acquired by decrypting a network layer data packet, an algorithm key is needed, and the acquisition of the algorithm key is very difficult. In some specific communication software, communication monitoring may be performed by a method such as a process flow in a monitoring program or an operation flow of a database. However, these methods are not generally applicable, and therefore, a general new method needs to be found to be suitable for various communication software.
At present, there are many program content monitoring methods, and potential monitoring schemes include a monitoring method based on network protocol analysis, a monitoring method based on specific operation flows inside a program, a monitoring method based on database storage flows, and the like, but these methods are only specific to communication software, are not applicable to some software, and have no universality.
Disclosure of Invention
It is an object of the embodiments of the present application to provide an improved method and apparatus for monitoring information, which solve the technical problems mentioned in the background section above.
In a first aspect, an embodiment of the present application provides a method for monitoring information, where the method includes: in response to detecting that the context of the calling device is called, establishing a corresponding relation between the context of the calling device and the context of the target window; in response to detecting that information is drawn in a target window based on the context of the device, obtaining pre-stored historical information to be updated; comparing the history information to be updated with the plotted information, and determining and outputting the latest information from the plotted information based on the comparison result.
In some embodiments, in response to detecting that information is drawn in the target window based on the device context, obtaining pre-stored historical information to be updated includes: establishing a corresponding relation between the device context and the compatible device context in response to detecting that the compatible device context is called; and in response to detecting that the information is drawn in the target window through the context of the compatible equipment, acquiring pre-stored historical information to be updated.
In some embodiments, after determining and outputting the latest information from the plotted information based on the comparison result, the method further includes: and updating the historical information to be updated into the drawn information.
In some embodiments, obtaining the pre-stored history information to be updated includes:
determining coordinates of the plotted information; determining a region corresponding to the coordinates from the target window; determining the drawn information category based on the pre-established correspondence between the areas and the information categories; from the history information stored in advance, history information corresponding to the category is determined as history information to be updated.
In some embodiments, the rendered information includes at least one type of information: text, images, numbers, symbols, video, audio.
In some embodiments, the history information to be updated is stored in a preset storage area.
In a second aspect, an embodiment of the present application provides an apparatus for monitoring information, where the apparatus includes: the establishing module is configured to respond to the detection of the context of the calling equipment and establish the corresponding relation between the context of the equipment and the target window; the acquisition module is configured to respond to the detection of information drawn in the target window based on the equipment context and acquire pre-stored historical information to be updated; and the output module is configured to compare the historical information to be updated with the drawn information, determine the latest information from the drawn information based on the comparison result and output the latest information.
In some embodiments, the obtaining module comprises: the establishing submodule is configured to respond to the detection that the context of the compatible equipment is called, and establish the corresponding relation between the context of the equipment and the context of the compatible equipment; and the obtaining submodule is configured to obtain pre-stored historical information to be updated in response to the fact that the information is detected to be drawn on the target window through the context of the compatible device.
In some embodiments, the apparatus further comprises: and the updating module is configured to update the historical information to be updated into the drawn information.
In some embodiments, the obtaining module comprises: a rendering sub-module configured to determine coordinates of the rendered information; the first determining submodule is configured to determine an area corresponding to the coordinates from the target window; the second determining submodule is configured to determine the category of the drawn information based on a pre-established correspondence between the region and the category of the information; and the third determining submodule is configured to determine history information corresponding to the category from the pre-stored history information as the history information to be updated.
In some embodiments, the rendered information includes at least one type of information: text, images, numbers, symbols, video, audio.
In some embodiments, the history information to be updated is stored in a preset storage area.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
According to the method and the device for monitoring the information, the drawn information is compared with the acquired historical information to be updated by detecting the information drawn in the target window based on the equipment context, and the latest information is determined and output from the drawn information based on the comparison result, so that the equipment context is effectively utilized to monitor the new information in the target window, and the universality and the flexibility of information monitoring are improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for monitoring information according to the present application;
FIG. 3 is a schematic diagram of an application scenario of a method for monitoring information according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for monitoring information according to the present application;
FIG. 5 is a schematic block diagram of one embodiment of an apparatus for monitoring information according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which the method for monitoring information of the embodiments of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various applications, such as a web browser application, a social software-like application, etc., may be installed on the terminal devices 101, 102, 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as a plurality of software or software modules (e.g., software or software modules used to provide distributed services) or as a single software or software module.
The server 105 may be a server that provides various services, such as a background information support server that provides support for information presented on the terminal devices 101, 102, 103. The background information support server may send information displayed on the terminal device to the terminal device, or forward information from other electronic devices to the terminal device.
It should be noted that the method for monitoring information provided in the embodiment of the present application may be executed by the server 105, or may be executed by the terminal devices 101, 102, and 103, and accordingly, the apparatus for monitoring information may be disposed in the server 105, or may be disposed in the terminal devices 101, 102, and 103.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services), or as a single piece of software or software module.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method applied to monitoring information in accordance with the present application is illustrated. The method comprises the following steps:
step 201, in response to detecting that the device context is called, establishing a corresponding relationship between the device context and the target window.
In this embodiment, an execution subject (e.g., a terminal device or a server shown in fig. 1) of the method for monitoring information may establish a correspondence between a device context and a target window in response to detecting a calling device context.
Wherein a Device Context (DC) is a Windows data structure that contains rendering attributes for a Device. Typically, draw calls are via context objects that encapsulate the Windows API for draw lines, shapes, text, etc. The device context is device independent so it can be used to draw both screens and printers and even metafiles.
In practice, after the target application is started, the device context may be called through Inline Hook. The Inline Hook changes the code of the head of the target function to jump the changed code to other functions, thereby realizing the call of various interfaces. It should be noted that the Inline Hook is a well-known technology widely studied and applied at present, and is not described herein again. The target application may be an application pre-installed in the execution subject, and the application may be various types of applications including, but not limited to: chat-type applications, web browser-type applications, video playback-type applications, and the like. The target window may be a window of a target application displayed on the screen of the execution subject, and the window may be various types of windows including, but not limited to: chat windows, browser windows, video playback windows, and the like.
In this embodiment, the execution subject may establish a correspondence between the device context and the target window in various ways. As an example, the correspondence between the device context and the target window may be established through a preset function. For example, a device context may be created by the function GetDC (hWnd), where hWnd is a handle that characterizes the target window. The handle of the target window is input into the function, and the corresponding relation between the device context and the target window can be established.
Step 202, in response to detecting that information is drawn in the target window based on the device context, pre-stored historical information to be updated is acquired.
In this embodiment, the execution subject may acquire the pre-stored history information to be updated in various ways (for example, remotely or locally) in response to detecting that the information is drawn in the target window based on the device context. Specifically, when the target application receives new information, in order to display the information in the target window, the device context is generally called to draw the information in the target window. The execution subject may acquire pre-stored history information to be updated if it is detected that information is drawn in the target window. The history information to be updated may be pre-stored information drawn before the current time.
In some optional implementations of the present embodiment, the information drawn in the target window may be various types of information, including but not limited to at least one of: text, images, numbers, symbols, video, audio. For example, when the target window is a chat window, the drawn information may be text information input by the user, received text information, a name of the user, an avatar of the user, and the like. When the target window is a web browser window, the rendered information may be text, pictures, videos, etc. displayed on the web browser.
In some optional implementations of this embodiment, the history information to be updated may be stored in a preset storage area. The memory area may be various types of memory areas including, but not limited to: cache, memory, hard disk, etc.
In some optional implementation manners of this embodiment, the executing body may obtain the pre-stored history information to be updated according to the following steps:
first, the coordinates of the rendered information are determined. Specifically, when information is generally drawn, it is necessary to first determine coordinates of the drawn information, and draw the information at a corresponding position of the target window according to the coordinates.
And secondly, determining an area corresponding to the coordinates from the target window. In particular, the target window may comprise at least one region. For example, when the target window is a chat window, the at least one region may include a title region (e.g., a name, an avatar, etc. of a chat object), a chat content presentation region, an information input region, and the like. The execution body determines to which region the drawn information belongs, based on the coordinates of the drawn information.
And thirdly, determining the drawn information category based on the pre-established corresponding relation between the areas and the information categories. Specifically, the correspondence between the areas and the categories may be represented in various manners, for example, the correspondence between the areas and the categories of the information may be represented by a pre-established correspondence table storing the coordinates of the areas and the categories of the information, or by pointers, linked lists, or the like.
And fourthly, determining the history information corresponding to the determined category from the pre-stored history information as the history information to be updated. Specifically, the pre-stored history information may include information of the same category as the drawn information, which is the history information to be updated. It should be noted that the pre-stored history information may only include history information corresponding to the determined category, that is, the pre-stored history information is information to be updated.
Step 203, comparing the history information to be updated with the drawn information, and determining and outputting the latest information from the drawn information based on the comparison result.
In the present embodiment, the execution subject described above may compare the history information to be updated and the plotted information, and based on the comparison result, determine the latest information from the plotted information and output it. As an example, the drawn information may be at least one piece of information, and the history information to be updated may also be at least one piece of information, and the execution main body may compare, item by item, whether the drawn information exists in the history information to be updated, and if some information does not exist in the history information to be updated, determine that the information is the latest information, and output the information.
Alternatively, the execution main body may output the latest information in various ways. For example, the latest information is transmitted to another electronic device (for example, an electronic device for monitoring information) connected to the execution main body in communication, or is stored in a storage area corresponding to another application program (for example, an information monitoring program), or is displayed on a display connected to the execution main body.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for pushing information according to the present embodiment. In the application scenario of fig. 3, a target window 302 is displayed on the terminal device 301, where the target window 302 is a chat window. The terminal device 301 draws chat information including chat information M2, M3, M4 on the target window 302 by calling the device context. Then, the terminal device 301 acquires the history information to be updated 303 including chat information M1, M2, M3, which is stored locally in advance. Then, the terminal device 301 compares the history information 303 to be updated with the drawn chat information, determines that the chat information M4 does not exist in the history information 303 to be updated, determines M4 as the latest information, and outputs M4 in such a manner as to be transmitted to the monitoring device 304.
According to the method provided by the embodiment of the application, the drawn information is compared with the acquired historical information to be updated by detecting the information drawn on the target window based on the context of the device, the latest information is determined from the drawn information and is output based on the comparison result, so that the new information in the target window is effectively monitored by using the context of the device. In addition, the method for monitoring the information provided by the embodiment of the application is more flexible. The embodiment of the application is based on the context of the device and combines the window corresponding to the context of the device to position the position of the drawn information on the program interface. Therefore, in different programs, the information drawn on the interface can be extracted according to the interface layout characteristics of the programs, so that the latest information can be determined.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for monitoring information in accordance with the present application is illustrated. The method comprises the following steps:
step 401, in response to detecting that the device context is called, establishing a corresponding relationship between the device context and the target window.
In this embodiment, step 401 is substantially the same as step 201 in the corresponding embodiment of fig. 2, and is not described here again.
Step 402, in response to detecting that a compatible device context is called, establishing a correspondence between the device context and the compatible device context.
In this embodiment, an execution subject of the method for monitoring information (e.g., a terminal device or a server shown in fig. 1) may establish a correspondence between a device context and a compatible device context in response to detecting that a compatible device context is called.
Wherein the compatible device context may be a device context directly used for drawing information, and the number of compatible device contexts may be at least one. By way of example, for each compatible device context, the compatible device context may correspond to a category (e.g., picture, text, etc. type) of information, or to a region in the target window (e.g., may correspond to a chat region of a chat window when the target window is a chat window; may correspond to a web page display region of a web page browser window when the target window is a web page browser window), and so forth.
In this embodiment, since the device context in step 401 corresponds to the target window, the at least one compatible device context also corresponds to the target window. The execution subject may establish a correspondence between the device context and the compatible device context by a method the same as or similar to the method described in step 401. As an example, the correspondence between the device context and the compatible device context may be established by a preset function. For example, a compatible device context may be created by the function createcomapatibledc (hdc), where hdc is a handle that characterizes the device context. The handle of the device context is input into the function, and the corresponding relation between the device context and the compatible device context can be established.
In response to detecting that the information is drawn in the target window through the context of the compatible device, the pre-stored historical information to be updated is obtained, step 403.
In this embodiment, the executing agent may acquire the pre-stored history information to be updated in response to detecting that the information is drawn in the target window through the compatible device context.
Specifically, since the compatible device context corresponds to a certain information type or a certain area in the target window, when the target application receives new information, in order to display the information in the target window, it is generally necessary to call the compatible device context corresponding to the information to draw the information in the target window. The execution subject may acquire pre-stored history information to be updated if it is detected that information is drawn in the target window. The history information to be updated may be pre-stored information drawn before the current time.
Step 404, comparing the history information to be updated with the drawn information, and determining and outputting the latest information from the drawn information based on the comparison result.
In this embodiment, step 404 is substantially the same as step 203 in the corresponding embodiment of fig. 2, and is not described herein again.
Step 405, updating the historical information to be updated into the drawn information.
In this embodiment, the execution subject may update the history information to be updated to the drawn information. Specifically, the execution subject may delete already stored history information to be updated, and re-determine drawn information as history information to be updated. By repeatedly performing steps 401 to 405, information displayed in the target window can be monitored in real time.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for monitoring information in the present embodiment highlights steps of drawing information by using a compatible device context and updating historical information to be updated. Therefore, the scheme described in the embodiment can utilize the context of the compatible device to monitor the information displayed in the target window in real time and more specifically.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for monitoring information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the apparatus 500 for monitoring information of the present embodiment includes: an establishing module 501 configured to establish a correspondence between a device context and a target window in response to detecting a calling device context; an obtaining module 502 configured to obtain pre-stored history information to be updated in response to detecting that information is drawn in a target window based on a device context; and an output module 503 configured to compare the history information to be updated and the plotted information, determine the latest information from the plotted information based on the comparison result, and output the latest information.
In this embodiment, the establishing module 501 may establish a corresponding relationship between the device context and the target window in response to detecting the calling device context.
Therein, a Device Context (DC) is a Windows data structure that contains rendering attributes for a Device. Typically, draw calls are via context objects that encapsulate the Windows API for draw lines, shapes, text, etc. The device context is device independent so it can be used to draw both screens and printers and even metafiles.
In practice, after the target application is started, the device context may be called through Inline Hook. The Inline Hook changes the code of the head of the target function to jump the changed code to other functions, thereby realizing the call of various interfaces. It should be noted that the Inline Hook is a well-known technology widely studied and applied at present, and is not described herein again. The target application may be an application pre-installed in the apparatus 500, and the application may be various types of applications, including but not limited to: chat-type applications, web browser-type applications, video playback-type applications, and the like. The target window may be a window of a target application displayed on the screen of the apparatus 500, and the window may be various types of windows including, but not limited to: chat windows, browser windows, video playback windows, and the like.
In this embodiment, the establishing module 501 may establish a corresponding relationship between the device context and the target window in various ways. As an example, the correspondence between the device context and the target window may be established through a preset function. For example, a device context may be created by the function GetDC (hWnd), where hWnd is a handle that characterizes the target window. The handle of the target window is input into the function, and the corresponding relation between the device context and the target window can be established.
In this embodiment, the obtaining module 502 may obtain the pre-stored history information to be updated in various ways (e.g., remotely or locally) in response to detecting that the information is drawn in the target window based on the device context. Specifically, when the target application receives new information, in order to display the information in the target window, the device context is generally called to draw the information in the target window. The obtaining module 502 may obtain pre-stored history information to be updated if it is detected that information is drawn in the target window. The historical information to be updated may be pre-stored information that is plotted before the current time.
In this embodiment, the output module 503 may compare the history information to be updated and the plotted information, and based on the comparison result, determine the latest information from the plotted information and output the latest information. As an example, the plotted information may be at least one piece of information, and the history information to be updated may also be at least one piece of information, and the output module 503 may compare, item by item, whether the plotted information exists in the history information to be updated, and if some information does not exist in the history information to be updated, determine that the information is the latest information, and output the information.
Optionally, the output module 503 may output the latest information in various manners. For example, the latest information is transmitted to other electronic devices (e.g., electronic devices for monitoring information) communicatively connected to the apparatus 500, or is stored in a storage area corresponding to other applications (e.g., information monitoring program), or is displayed on a display connected to the apparatus 500.
In some optional implementations of this embodiment, the obtaining module includes: the establishing submodule is configured to respond to the detection that the context of the compatible equipment is called, and establish the corresponding relation between the context of the equipment and the context of the compatible equipment; and the obtaining submodule is configured to obtain pre-stored historical information to be updated in response to the fact that the information is detected to be drawn on the target window through the context of the compatible device.
In some embodiments, the apparatus 500 may further include: and an updating module (not shown in the figure) configured to update the historical information to be updated into the drawn information.
In some embodiments, the obtaining module 502 may include: a rendering submodule (not shown in the figure) configured to determine coordinates of the rendered information; a first determining sub-module (not shown in the figure) configured to determine an area corresponding to the coordinates from the target window; a second determination submodule (not shown in the figure) configured to determine a category of the drawn information based on a correspondence relationship between the area and the category of the information, which is established in advance; and a third determining sub-module (not shown in the figure) configured to determine history information corresponding to the category as history information to be updated from among the history information stored in advance.
In some embodiments, the rendered information includes at least one type of information: text, images, numbers, symbols, video, audio.
In some embodiments, the history information to be updated is stored in a preset storage area.
According to the device provided by the embodiment of the application, the initial personnel entity information of the personnel indicated by each organization information is established by acquiring the preset organization information set, then, each hierarchy information set aiming at the initial personnel entity information is determined based on the superior personnel identification and the direct subordinate personnel identification which are included by each initial personnel entity information, and finally, the hierarchy information set is added into the initial personnel entity information to obtain the personnel organization construction information, so that the personnel information and the relation information which are included by the organization information in the organization information set are effectively utilized to establish the personnel organization architecture information, the personnel organization architecture information can reflect the relation between the personnel more comprehensively, and the personnel organization architecture information can be looked up more specifically by a user.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing the electronic device of an embodiment of the present application. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Liquid Crystal Display (LCD) and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable storage medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes an establishing module, an obtaining module, and an outputting module. The names of these modules do not constitute a definition of the module itself in some cases, for example, the establishing module may also be described as a "module that establishes a correspondence between a device context and a target window in response to detecting a calling device context".
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer-readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to detecting that the context of the calling device is called, establishing a corresponding relation between the context of the calling device and the context of the target window; in response to detecting that information is drawn in a target window based on the context of the device, obtaining pre-stored historical information to be updated; and comparing the historical information to be updated with the drawn information, and determining and outputting the latest information from the drawn information based on the comparison result.
The foregoing description is only exemplary of the preferred embodiments of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements in which any combination of the features described above or their equivalents does not depart from the spirit of the invention disclosed above. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (11)

1. A method for monitoring information, the method comprising:
in response to detecting that the context of the calling device is called, establishing a corresponding relation between the context of the calling device and a target window;
in response to the fact that information is drawn in the target window based on the device context is detected, pre-stored historical information to be updated is obtained;
the acquiring of the pre-stored history information to be updated includes:
determining coordinates of the plotted information;
determining an area corresponding to the coordinates from the target window;
determining the drawn information category based on the pre-established correspondence between the areas and the information categories;
determining historical information corresponding to the category from pre-stored historical information as historical information to be updated;
comparing the historical information to be updated with the drawn information, determining the latest information from the drawn information based on the comparison result, and outputting the latest information, wherein the method specifically comprises the following steps:
comparing the drawn information item by item whether existing in the historical information to be updated, if some information does not exist in the historical information to be updated, determining the information as the latest information, and outputting the latest information;
the outputting the latest information specifically comprises:
and sending the latest information to the electronic equipment for monitoring the information, or storing the latest information into a storage area corresponding to the information monitoring program, or displaying the latest information on a connected display.
2. The method of claim 1,
the obtaining of pre-stored history information to be updated in response to the detection of the drawing information in the target window based on the device context includes:
in response to detecting that a compatible device context is called, establishing a correspondence between the device context and the compatible device context;
and acquiring pre-stored historical information to be updated in response to the detection of information drawn in the target window through the context of the compatible device.
3. The method according to claim 1, wherein after the determining and outputting the latest information from the plotted information based on the comparison result, the method further comprises:
and updating the historical information to be updated into the drawn information.
4. A method according to one of claims 1-3, characterized in that the information drawn comprises at least one of the following types of information: text, images, numbers, symbols, video, audio.
5. The method according to one of claims 1 to 3, characterized in that the history information to be updated is stored in a preset storage area.
6. An apparatus for monitoring information, the apparatus comprising:
the establishing module is configured to respond to the detection of the context of the calling equipment and establish the corresponding relation between the context of the equipment and the target window;
the acquisition module is configured to respond to the detection of information drawn in the target window based on the equipment context and acquire pre-stored historical information to be updated;
the acquiring of the pre-stored history information to be updated includes:
determining coordinates of the plotted information;
determining a region corresponding to the coordinates from the target window;
determining the drawn information category based on the pre-established correspondence between the areas and the information categories;
determining historical information corresponding to the category from pre-stored historical information as historical information to be updated;
the output module is configured to compare the historical information to be updated with the drawn information, and determine and output the latest information from the drawn information based on the comparison result; the method specifically comprises the following steps:
comparing the drawn information item by item whether existing in the historical information to be updated, if some information does not exist in the historical information to be updated, determining the information as the latest information, and outputting the latest information;
the outputting the latest information specifically comprises:
and sending the latest information to the electronic equipment for monitoring the information, or storing the latest information into a corresponding storage area of the information monitoring program, or displaying the latest information on a connected display.
7. The apparatus of claim 6, wherein the obtaining module comprises:
the establishing submodule is configured to respond to the detection that the context of the compatible equipment is called, and establish the corresponding relation between the context of the equipment and the context of the compatible equipment;
and the obtaining submodule is configured to obtain pre-stored historical information to be updated in response to the fact that the information is detected to be drawn on the target window through the context of the compatible device.
8. The apparatus of claim 6, further comprising:
and the updating module is configured to update the historical information to be updated into the drawn information.
9. The apparatus according to one of claims 6-8, wherein the rendered information comprises at least one of the following types of information: text, images, numbers, symbols, video, audio.
10. The apparatus according to any one of claims 6 to 8, wherein the history information to be updated is stored in a preset storage area.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201811399752.4A 2018-11-22 2018-11-22 Method and device for monitoring information Active CN109783305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811399752.4A CN109783305B (en) 2018-11-22 2018-11-22 Method and device for monitoring information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811399752.4A CN109783305B (en) 2018-11-22 2018-11-22 Method and device for monitoring information

Publications (2)

Publication Number Publication Date
CN109783305A CN109783305A (en) 2019-05-21
CN109783305B true CN109783305B (en) 2022-08-19

Family

ID=66496469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811399752.4A Active CN109783305B (en) 2018-11-22 2018-11-22 Method and device for monitoring information

Country Status (1)

Country Link
CN (1) CN109783305B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354449A (en) * 2015-07-15 2017-01-25 腾讯科技(深圳)有限公司 Document online demonstration method and client
CN106570098A (en) * 2016-10-31 2017-04-19 华为技术有限公司 Page refreshing method and device
CN107870947A (en) * 2016-09-28 2018-04-03 北京京东尚科信息技术有限公司 Method and apparatus for updating web page contents

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10594835B2 (en) * 2015-06-05 2020-03-17 Apple Inc. Efficient context monitoring

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354449A (en) * 2015-07-15 2017-01-25 腾讯科技(深圳)有限公司 Document online demonstration method and client
CN107870947A (en) * 2016-09-28 2018-04-03 北京京东尚科信息技术有限公司 Method and apparatus for updating web page contents
CN106570098A (en) * 2016-10-31 2017-04-19 华为技术有限公司 Page refreshing method and device

Also Published As

Publication number Publication date
CN109783305A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN110046021B (en) Page display method, device, system, equipment and storage medium
CN109725975B (en) Method and device for prompting read state of message and electronic equipment
AU2013352236B2 (en) System and method for displaying multiple applications
US11711441B2 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
WO2020207085A1 (en) Method and device for information sharing, electronic device, and storage medium
CN109684589B (en) Client comment data processing method and device and computer storage medium
US11991262B2 (en) Methods, systems, and media for retrieving content associated with links
CN109271557B (en) Method and apparatus for outputting information
CN110139118B (en) Function running method and device of application program, electronic equipment and storage medium
CN109168012B (en) Information processing method and device for terminal equipment
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN112269959A (en) Display content control method and device, readable medium and electronic equipment
CN114528517A (en) View processing method and device, electronic equipment and computer readable medium
US20120297399A1 (en) Automatically updating the display state of the user interface of a client device in a publish/subscribe system
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
WO2022262517A1 (en) Watermark information display method and apparatus, electronic device, and computer-readable medium
CN110148024B (en) Method and device for providing comment input mode
CN111694629A (en) Information display method and device and electronic equipment
CN108768823B (en) Method and equipment for processing message and displaying message
CN110673886B (en) Method and device for generating thermodynamic diagrams
CN114840379A (en) Log generation method, device, server and storage medium
CN112947918A (en) Data display method and device
CN110134905B (en) Page update display method, device, equipment and storage medium
CN110147283B (en) Display content switching display method, device, equipment and medium
CN110069186B (en) Method and equipment for displaying operation interface of application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230111

Address after: Unit 102-402, No. 12, guanri Road, phase II, Xiamen Software Park, Fujian Province, 361000

Patentee after: XIAMEN MEIYA PICO INFORMATION Co.,Ltd.

Patentee after: CHINA ELECTRONICS ENGINEERING DESIGN INSTITUTE Co.,Ltd.

Address before: Unit 102-402, No. 12, guanri Road, phase II, Xiamen Software Park, Fujian Province, 361000

Patentee before: XIAMEN MEIYA PICO INFORMATION Co.,Ltd.