Operation behavior detection method and device, storage medium and electronic equipment
By detecting the status and operating behavior of sub-interface windows, the problem of data loss caused by operating errors in multi-window interactive application software is solved, and the user experience and data integrity are improved.
Patent Information
- Application Number
- CN202411161154.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-08-22
AI Technical Summary
In multi-window interactive application software, users may cause the data in sub-files to be incompletely saved or lost due to operational errors, resulting in data not being queried during subsequent data processing.
By determining the operation identifier of the user's operation behavior, matching the corresponding detection rules, detecting the status of the sub-interface window, and judging whether the operation behavior is allowed to be performed based on the verification logic of the rules, avoiding incorrect operations.
It effectively avoids data storage abnormalities caused by operational errors, improves user experience, and ensures the integrity of data during operation.
Smart Images

Figure CN118672876A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for detecting an operation behavior. Background Art
[0002] With the continuous development of Internet technology, application software that supports multi-window interaction has been applied in many fields. For example, in the field of industrial design, multi-window interactive application software can be used for industrial product design. For another example, in the field of programming and development, multi-window interactive application software can be used for software development, such as Figure 1 shown.
[0003] Figure 1 A schematic diagram of an application interface of a multi-window interactive application software provided in an embodiment of this specification.
[0004] Among them, the application interface (main interface window) includes functions such as creating files, saving, opening files, format, view and help, as well as arrow icons corresponding to undo operations and redo operations. The left interface window of the application interface (main interface window) can display files created by the user, such as project 1 contains sub-file 1 and sub-file 2, and project 2 contains sub-file 3 and sub-file 4. The right interface window of the application interface (main interface window) displays at least one editable window corresponding to each sub-file clicked by the user in the left interface window, that is, the sub-interface window, such as the editable window corresponding to sub-file 1 displayed in the right interface window of the application interface (main interface window).
[0005] Users in Figure 1 When drawing the industrial product design drawing part in the sub-interface window shown, the functions contained in the main interface window can be used to operate the content written in the sub-interface window, such as the user clicks the undo operation or restore operation in the main interface window to undo or restore the content written in the sub-interface window, or uses the various alignment tools contained in the drop-down menu of the format function to align or rotate the drawing drawn in the sub-interface window. However, the user may make an operational error during use, such as deleting sub-file 2 by mistake while deleting sub-file 1 being edited. After deleting sub-file 1, the sub-interface window corresponding to sub-file 1 will not be closed, and the user can still edit in the sub-interface window, but when saving the sub-interface window, only part of the data may be saved or no data may be saved, causing the user to fail to find the data when using the data in sub-file 1 for data processing later, such as using the data in sub-file 1 for subsequent operation. Summary of the invention
[0006] The embodiments of this specification provide a method, device, storage medium and electronic device for detecting an operation behavior to partially solve the problems existing in the above-mentioned prior art.
[0007] The embodiments of this specification adopt the following technical solutions: This manual provides a method for detecting an operation behavior, including: Determine an operation identifier corresponding to the user operation behavior, where different operation identifiers are used to indicate different types of operation behaviors performed by the user in the main interface window of the preset application interface on at least one sub-interface window of the preset application interface; According to the operation identifier, determine, from the preset detection rules, a detection rule that matches the operation behavior corresponding to the operation identifier as a target rule; triggering execution of a program corresponding to the target rule to detect the window state of the sub-interface window corresponding to the operation behavior when the user performs the operation behavior in the main interface window of the preset application interface, wherein the window state is used to indicate whether the sub-interface window corresponding to the operation behavior is in an open state or in a closed state; The detection result is determined according to the window state and the verification logic contained in the target rule corresponding program.
[0008] Optionally, according to the operation identifier, a detection rule matching the operation behavior corresponding to the operation identifier is determined from preset detection rules as a target rule, specifically including: Determine a window identifier corresponding to the sub-interface window; A verification rule matching the window identifier and the operation identifier is determined from the preset detection rules as a target rule.
[0009] Optionally, for each detection rule, the detection rule includes a judgment rule for indicating whether the main interface window in the preset application interface allows the user to perform operations on each sub-interface window when each sub-interface window in the preset application interface is in different window states.
[0010] Optionally, determining the detection result according to the window state and the verification logic contained in the target rule corresponding program specifically includes: If the window state is that the sub-interface window is in an open state, the detection result is determined according to the judgment rule contained in the verification logic as to whether the main interface window of the user in the preset application interface is allowed to perform the operation behavior when the sub-interface window is in an open state.
[0011] Optionally, determining the detection result according to the window state and the verification logic contained in the target rule corresponding program specifically includes: If the window state is that the sub-interface window is in a closed state, the detection result is determined according to the judgment rule contained in the verification logic as to whether the user is allowed to perform the operation in the main interface window of the preset application interface when the sub-interface window is in a closed state.
[0012] Optionally, the method further comprises: If it is determined based on the detection result that the user cannot perform the operation behavior in the main interface window of the preset application interface, a prompt message for the sub-interface window is displayed to the user and set to a preset prompt state. The preset prompt state is used to indicate that the user cannot perform the operation behavior in the main interface window of the preset application interface.
[0013] Optionally, before determining the detection result according to the window state and the verification logic included in the target rule corresponding program, the method further includes: Determine the file operated by the user in the sub-interface window as the file corresponding to the sub-interface window; According to the association relationship between the file corresponding to the sub-interface window and other files corresponding to other sub-interface windows, determine other sub-interface windows associated with the sub-interface window as associated windows corresponding to the sub-interface window; Determining a window state of the associated window; Determine the detection result according to the window state and the verification logic contained in the target rule corresponding program, specifically including: The detection result is determined according to the window state of the sub-interface window, the window state of the associated window, and the verification logic contained in the target rule corresponding program.
[0014] This specification provides an operation behavior detection device, including: A determination module, used to determine an operation identifier corresponding to a user operation behavior, where different operation identifiers are used to indicate different types of operation behaviors performed by the user in the main interface window of the preset application interface on at least one sub-interface window of the preset application interface; A matching module, configured to determine, according to the operation identifier, from among various preset detection rules, a detection rule that matches the operation behavior corresponding to the operation identifier as a target rule; a trigger module, used to trigger the execution of the program corresponding to the target rule, so as to detect the window state of the sub-interface window corresponding to the operation behavior when the user performs the operation behavior in the main interface window of the preset application interface, wherein the window state is used to indicate whether the sub-interface window corresponding to the operation behavior is in an open state or in a closed state; The detection module is used to determine the detection result according to the window state and the verification logic contained in the target rule corresponding program.
[0015] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned method for detecting an operation behavior is implemented.
[0016] The present specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for detecting an operation behavior when executing the program.
[0017] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: In the embodiments of the present specification, the operation identifier corresponding to the user operation behavior is first determined, and based on the operation identifier corresponding to the operation behavior, a detection rule that matches the operation behavior corresponding to the operation identifier is determined from the preset detection rules as the target rule, and the program corresponding to the target rule is triggered to detect the window state of the sub-interface window corresponding to the operation behavior when the user performs the operation behavior in the main interface window of the preset application interface. Then, the detection result is determined based on the window state of the sub-interface window and the verification logic contained in the program corresponding to the target rule, wherein the window state is used to indicate whether the sub-interface window corresponding to the operation behavior is in an open state or a closed state, and different operation identifiers are used to indicate different types of operation behaviors performed by the user in the main interface window of the preset application interface on at least one sub-interface window in the preset application interface.
[0018] In this method, a target rule is determined by an operation identifier corresponding to a user's operation behavior, and different types of operation behaviors performed by the user in a main interface window in a preset application interface on at least one sub-interface window in a preset application interface are detected based on the window state of the sub-interface window corresponding to the operation behavior and the verification logic contained in the program corresponding to the target rule, thereby improving the user experience and avoiding abnormal situations such as data storage caused by erroneous operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings: Figure 1 A schematic diagram of an application interface of a multi-window interactive application software provided in an embodiment of this specification; Figure 2 A flowchart of a method for detecting an operation behavior provided in an embodiment of this specification; Figure 3 A schematic diagram of a verification process of a method for detecting an operation behavior provided in an embodiment of this specification; Figure 4 A schematic diagram of the structure of an operation behavior detection device provided in an embodiment of this specification; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0021] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0022] Figure 2 A flow chart of a detection method of an operation method provided in an embodiment of this specification includes: S200: Determine an operation identifier corresponding to a user operation behavior, where different operation identifiers are used to indicate different types of operation behaviors performed by the user in a main interface window in a preset application interface on at least one sub-interface window in the preset application interface.
[0023] For the detection method of an operation method provided in this specification, a terminal device such as a desktop computer, a laptop computer, etc. can be used as the execution subject, or a server can be used as the execution subject. For the convenience of description, the following only takes the terminal device as the execution subject to describe the detection method of an operation method provided in this specification.
[0024] In an embodiment of the present specification, a terminal device determines an operation identifier corresponding to a user operation behavior, wherein different operation identifiers are used to indicate different types of operation behaviors performed by a user in a main interface window in a preset application interface on at least one sub-interface window in the preset application interface.
[0025] For example, user operation behavior can be Figure 1 In the interface shown, each sub-file contained in the left interface window of the main interface window is subjected to operations such as deletion, copying, moving, and renaming, and the operations such as deletion, copying, moving, and renaming correspond to different operation identifiers.
[0026] It should be noted that the operation identifier mentioned here can be set according to actual needs. For example, if the operation behavior is deletion, the operation identifier is delete; if the operation behavior is copying, the operation identifier is copy, and so on.
[0027] In addition, the operation behaviors mentioned here do not include all operation behaviors performed by the user in the main interface window of the preset application interface, but rather the operation behaviors performed by the user in the main interface window of the preset application interface on the sub-interface window, which may have adverse effects on the user's subsequent data processing using the data saved in the sub-interface window.
[0028] By detecting the user's operational behaviors that may have adverse effects on the data saved in the sub-interface window, abnormal situations such as data storage caused by user's erroneous operations can be avoided.
[0029] S202: According to the operation identifier, determine a detection rule that matches the operation behavior corresponding to the operation identifier from various preset detection rules as a target rule.
[0030] In the embodiments of the present specification, after determining the operation identifier corresponding to the user operation behavior, in order to determine the detection rule that matches the user operation behavior, the terminal device will determine the detection rule that matches the operation behavior corresponding to the operation identifier from the preset detection rules based on the operation identifier corresponding to the operation behavior, as the target rule, and then use the target rule to detect the user operation behavior.
[0031] Specifically, in the present specification, before the terminal device determines the target rule based on the operation identifier corresponding to the operation behavior, it is also necessary to determine the window identifier corresponding to the sub-interface window corresponding to the operation behavior when the user performs the operation behavior in the main interface window of the preset application interface, and then, determine the verification rule that matches the window identifier corresponding to the sub-interface window and the operation identifier corresponding to the operation behavior from the preset detection rules as the target rule.
[0032] There are many ways to express the relationship between the operation identifier and each detection rule. For example, there is a correspondence between the operation identifier and each detection rule, that is, it can be understood that the operation identifier and each detection rule can be expressed in the form of operation identifier 1 corresponding to detection rule 2, detection rule 3, and detection rule 4, and operation identifier 2 corresponding to detection rule 7. Alternatively, there is no correspondence between the operation identifier and each detection rule. Each time the target rule needs to be determined, a query is directly performed from each detection rule to determine the detection rule containing the operation identifier. For an operation identifier, an operation identifier can establish a correspondence with one detection rule or with multiple detection rules.
[0033] That is to say, the terminal device can determine the target rule based on the corresponding relationship between the operation identifier and the detection rule, that is, the operation identifier corresponding to each user operation behavior corresponds to part of the detection rules in each detection rule, or, if there is no corresponding relationship between the operation identifier and the detection rules, the terminal device can directly match the verification rule that matches the window identifier and the operation identifier from each detection rule as the target rule based on the operation identifier corresponding to the determined user operation behavior.
[0034] It should be noted that for each detection rule, the detection rule includes a judgment rule for indicating whether the user is allowed to perform operations on each sub-interface window in the main interface window of the preset application interface when each sub-interface window in the preset application interface is in different window states.
[0035] For example, each detection rule can be in the form of [operation identifier] [window identifier corresponding to the sub-interface window] [judgment rule], that is, detection rule A: window identifier Editor1 corresponding to sub-interface window a, judgment rule of whether the main interface window of the user in the preset application interface is allowed to execute the operation behavior corresponding to the operation identifier of sub-interface window a, operation identifier a; detection rule B: window identifier Editor2 corresponding to sub-interface window b, judgment rule of whether the main interface window of the user in the preset application interface is allowed to execute the operation behavior corresponding to the operation identifier of sub-interface window b.
[0036] Each detection rule contains at least one operation identifier. For example, the operation identifier contained in detection rule a may have only one operation identifier, copy, or may contain multiple operation identifiers, such as copy, delete, and Rename.
[0037] After the target rules are determined in the above manner, the target rules are used to detect user operation behaviors so as to promptly remind users when they make erroneous operations, thereby further improving the user experience.
[0038] S204: Trigger execution of the program corresponding to the target rule to detect the window state of the sub-interface window corresponding to the operation behavior when the user performs the operation behavior in the main interface window of the preset application interface, and the window state is used to indicate whether the sub-interface window corresponding to the operation behavior is in an open state or a closed state.
[0039] In this specification, after the terminal device determines the target rule, it will trigger the execution of the program corresponding to the target rule to detect when the user performs an operation in the main interface window in the preset application interface, the window status of the sub-interface window corresponding to the operation behavior, so as to further determine whether the user can perform the operation in the main interface window in the preset application interface based on the window status of the sub-interface window.
[0040] The window state is used to indicate whether the sub-interface window corresponding to the user operation behavior is in an open state or in a closed state.
[0041] The reason why it is necessary to detect the window state of the sub-interface window is that some of the operations performed by the user in the main interface window in the preset application interface can be performed when the sub-interface window is open, while some operations cannot be performed when the sub-interface window is open.
[0042] For example, when sub-interface window a is open, the user cannot perform operations such as copying and renaming on sub-interface window a in the main interface window of the preset application interface. However, when sub-interface window b is open, the user can perform operations such as undoing or restoring the content edited by the user in sub-interface window b in the main interface window of the preset application interface.
[0043] S206: Determine a detection result according to the window state and the verification logic included in the target rule corresponding program.
[0044] After determining the window state of the sub-interface window corresponding to the operation behavior when the user performs the operation behavior in the main interface window of the preset application interface in the above manner, the terminal device can determine the detection results of the operation behavior performed by the user in the main interface window of the preset application interface for each sub-interface window based on the verification logic contained in the target rule corresponding program.
[0045] Specifically, in the present specification, if the window state of the sub-interface window is that the sub-interface window is in an open state, the detection result is determined according to the judgment rule contained in the verification logic contained in the target rule corresponding program, which determines whether the user is allowed to perform operation behaviors in the main interface window in the preset application interface when the sub-interface window is in an open state.
[0046] Furthermore, if the window state of the sub-interface window is that the sub-interface window is in a closed state, the detection result is determined according to the judgment rule contained in the verification logic contained in the target rule corresponding program, which determines whether the user is allowed to perform operation behaviors in the main interface window in the preset application interface when the sub-interface window is in a closed state.
[0047] Furthermore, if it is determined according to the detection result that the user cannot perform an operation in the main interface window in the preset application interface, prompt information for the sub-interface window is displayed to the user and is set to a preset prompt state.
[0048] Among them, the preset prompt state is used to indicate that the user cannot perform operations in the main interface window of the preset application interface. For example, the preset prompt state can be to set the sub-interface window to a highlighted state and generate jitter, or a pop-up window appears, and the pop-up window contains prompt information such as the user cannot perform renaming operations when the sub-window is open.
[0049] In addition, if the content contained in the sub-interface window corresponding to the operation behavior in the main interface window of the preset application interface is associated with other files corresponding to other sub-interface windows, then when using the target rule to detect the user's operation behavior, it is also necessary to determine the window status of other sub-interface windows, and determine the detection result based on the window status of other sub-interface windows, the window status of the sub-interface windows, and the verification logic contained in the program corresponding to the target rule.
[0050] To elaborate, first, the terminal device needs to determine the file operated by the user in the sub-interface window, as the file corresponding to the sub-interface window, and then, based on the association relationship between the file corresponding to the sub-interface window and other files corresponding to other sub-interface windows, determine other sub-interface windows associated with the sub-interface window, as the associated windows corresponding to the sub-interface window, and then determine the window state of the associated window, and determine the detection result based on the window state of the sub-interface window, the window state of the associated window and the verification logic contained in the target rule corresponding program.
[0051] The association relationship mentioned here means that the content written in the sub-interface window is written based on the content in the files corresponding to other sub-interface windows.
[0052] For example, sub-file 2 is edited based on the content in sub-file 1. When deleting sub-file 1, the target detection rule also needs to determine the window status of the sub-window interface corresponding to sub-file 2. Thus, based on the window status of the sub-window interface corresponding to sub-file 1 and the window status of the sub-window interface corresponding to sub-file 2, the user's operation behavior on the sub-interface window in the main interface window of the preset application interface is detected.
[0053] That is, if the window state of the sub-window interface corresponding to sub-file 1 is closed, and the window state of the sub-window interface corresponding to sub-file 2 is open, the user cannot delete sub-file 1 in the main interface window in the preset application interface.
[0054] To summarize, the operation identifier of the user's operation behavior is used to determine the target rule that matches the operation behavior from each detection rule, and then the target rule is used to detect the different types of operation behaviors performed by the user in the main interface window of the preset application interface on at least one sub-interface window in the preset application interface. Thus, the detection of user operation behavior is implemented so that the user can be prompted in time when an erroneous operation occurs, thereby avoiding data processing problems caused by erroneous operations and further improving the user experience.
[0055] Figure 3 A schematic diagram of a verification process of a method for detecting an operation behavior provided in an embodiment of this specification.
[0056] In order to further explain how to detect the operation behavior performed by the user in the main interface window of the preset application interface in the terminal device, Figure 1 and Figure 3 Take this as an example for description.
[0057] Assume that the user is Figure 1 In the application interface of the multi-window interactive application software shown in FIG. 1 , the sub-file 1 in the left interface window of the application interface (main interface window) is renamed. The operation behavior triggers the detection program. Figure 3 In the verification process diagram shown, the terminal device determines the operation identifier corresponding to the user operation behavior, that is, renames the operation identifier Rename of this operation behavior, and then the terminal device queries the preset detection rules according to the operation identifier, that is, determines the detection rule that matches the operation behavior corresponding to the operation identifier from the preset detection rules, and uses the detection rule as the target rule. If the target rule does not exist, the detection is terminated. If the target rule exists, the program corresponding to the target rule is triggered to execute, so as to perform the operation according to the user in the following manner. Figure 1When the application interface (main interface window) of the multi-window interactive application software shown performs an operation, the window state of the sub-interface window corresponding to the operation and the verification logic contained in the target rule corresponding program are used to determine whether the user can execute the operation, that is, whether the user can perform the renaming operation on sub-file 1 in the main interface window. If it can be executed, the detection is terminated. If it cannot be executed, the terminal device will send a notification to the sub-interface window, that is, send a notification to the sub-interface window corresponding to sub-file 1. After receiving the notification, the sub-interface window will display a prompt message to the user, such as the user cannot rename sub-file 1 when the sub-interface window corresponding to sub-file 1 is open, and the sub-interface window corresponding to sub-file 1 will be rendered with a dither effect, thereby reminding the user that there is a contradiction between the current renaming operation and the window state of the sub-interface window corresponding to sub-file 1, and then the detection is terminated.
[0058] By detecting the user's operation behavior as described above, the user's erroneous operation can be detected, thereby ensuring that the content written by the user in the sub-interface window can be effectively saved, so as to facilitate subsequent users to perform tasks such as data processing.
[0059] The above is a method for detecting an operation behavior provided in an embodiment of this specification. Based on the same idea, this specification also provides corresponding devices, storage media and electronic devices.
[0060] Figure 4 A schematic diagram of a detection device for an operation behavior provided in an embodiment of this specification, the device comprising: Determining module 401, used to determine the operation identifier corresponding to the user operation behavior, where different operation identifiers are used to indicate different types of operation behaviors performed by the user in the main interface window of the preset application interface on at least one sub-interface window of the preset application interface; A matching module 402 is used to determine, according to the operation identifier, from various preset detection rules, a detection rule that matches the operation behavior corresponding to the operation identifier as a target rule; A trigger module 403 is used to trigger the execution of the program corresponding to the target rule, so as to detect the window state of the sub-interface window corresponding to the operation behavior when the user performs the operation behavior in the main interface window of the preset application interface, and the window state is used to indicate whether the sub-interface window corresponding to the operation behavior is in an open state or in a closed state; The detection module 404 is used to determine the detection result according to the window state and the verification logic contained in the target rule corresponding program.
[0061] Optionally, the matching module 402 is specifically used to: determine a window identifier corresponding to the sub-interface window; and determine a verification rule that matches the window identifier and the operation identifier from preset detection rules as a target rule.
[0062] Optionally, for each detection rule, the detection rule includes a judgment rule for indicating whether the main interface window in the preset application interface allows the user to perform operations on each sub-interface window when each sub-interface window in the preset application interface is in different window states.
[0063] Optionally, the detection module 404 is specifically used to determine the detection result according to the judgment rule contained in the verification logic as to whether the main interface window of the user in the preset application interface is allowed to perform the operation behavior when the sub-interface window is in the open state if the window state is that the sub-interface window is in the open state.
[0064] Optionally, the detection module 404 is specifically used to determine the detection result if the window state is that the sub-interface window is in a closed state, based on the judgment rule contained in the verification logic as to whether the main interface window of the user in the preset application interface is allowed to perform the operation behavior when the sub-interface window is in a closed state.
[0065] Optionally, the device further comprises: The prompt module 405 is used to display prompt information for the sub-interface window to the user if it is determined according to the detection result that the user cannot perform the operation behavior in the main interface window in the preset application interface, and is set to a preset prompt state. The preset prompt state is used to indicate that the user cannot perform the operation behavior in the main interface window in the preset application interface.
[0066] Optionally, before determining the detection result according to the window state and the verification logic contained in the target rule corresponding program, the detection module 404 is further used to determine the file operated by the user in the sub-interface window as the file corresponding to the sub-interface window; determine other sub-interface windows associated with the sub-interface window as the associated windows corresponding to the sub-interface window according to the association relationship between the file corresponding to the sub-interface window and other files corresponding to other sub-interface windows; and determine the window state of the associated window; The detection module 404 is specifically used to determine the detection result according to the window state of the sub-interface window, the window state of the associated window and the verification logic contained in the target rule corresponding program.
[0067] This specification also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, it can be used to perform the above Figure 2 A method for detecting an operation behavior is provided.
[0068] based on Figure 2 The present invention also provides a method for detecting an operation behavior. Figure 5 The structural diagram of the electronic device shown in FIG. Figure 5 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 2 A method for detecting an operation behavior.
[0069] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0070] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0071] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0072] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0073] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0074] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0075] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0076] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0077] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0078] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0079] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0080] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0081] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0082] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0083] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media including storage devices.
[0084] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0085] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A method for detecting an operation behavior, characterized in that: include: Determine an operation identifier corresponding to the user operation behavior, where different operation identifiers are used to indicate different types of operation behaviors performed by the user in the main interface window of the preset application interface on at least one sub-interface window of the preset application interface; According to the operation identifier, determine, from the preset detection rules, a detection rule that matches the operation behavior corresponding to the operation identifier as a target rule; triggering execution of a program corresponding to the target rule to detect the window state of the sub-interface window corresponding to the operation behavior when the user performs the operation behavior in the main interface window of the preset application interface, wherein the window state is used to indicate whether the sub-interface window corresponding to the operation behavior is in an open state or in a closed state; The detection result is determined according to the window state and the verification logic contained in the target rule corresponding program.
2. The method according to claim 1, characterized in that According to the operation identifier, a detection rule matching the operation behavior corresponding to the operation identifier is determined from preset detection rules as a target rule, specifically including: Determine a window identifier corresponding to the sub-interface window; A verification rule matching the window identifier and the operation identifier is determined from the preset detection rules as a target rule.
3. The method according to claim 1 or 2, characterized in that For each detection rule, the detection rule includes a judgment rule for indicating whether the main interface window in the preset application interface allows the user to perform operation behaviors on each sub-interface window in the preset application interface when each sub-interface window in the preset application interface is in different window states.
4. The method according to claim 3, characterized in that Determine the detection result according to the window state and the verification logic contained in the target rule corresponding program, specifically including: If the window state is that the sub-interface window is in an open state, the detection result is determined according to the judgment rule contained in the verification logic as to whether the main interface window of the user in the preset application interface is allowed to perform the operation behavior when the sub-interface window is in an open state.
5. The method according to claim 3, characterized in that Determine the detection result according to the window state and the verification logic contained in the target rule corresponding program, specifically including: If the window state is that the sub-interface window is in a closed state, the detection result is determined according to the judgment rule contained in the verification logic as to whether the user is allowed to perform the operation in the main interface window of the preset application interface when the sub-interface window is in a closed state.
6. The method according to claim 1, characterized in that The method further comprises: If it is determined based on the detection result that the user cannot perform the operation behavior in the main interface window of the preset application interface, a prompt message for the sub-interface window is displayed to the user and set to a preset prompt state. The preset prompt state is used to indicate that the user cannot perform the operation behavior in the main interface window of the preset application interface.
7. The method according to claim 1, characterized in that Before determining the detection result according to the window state and the verification logic included in the target rule corresponding program, the method further includes: Determine the file operated by the user in the sub-interface window as the file corresponding to the sub-interface window; According to the association relationship between the file corresponding to the sub-interface window and other files corresponding to other sub-interface windows, determine other sub-interface windows associated with the sub-interface window as associated windows corresponding to the sub-interface window; Determining a window state of the associated window; Determine the detection result according to the window state and the verification logic contained in the target rule corresponding program, specifically including: The detection result is determined according to the window state of the sub-interface window, the window state of the associated window, and the verification logic contained in the target rule corresponding program.
8. A device for detecting operation behavior, characterized in that: include: A determination module, used to determine an operation identifier corresponding to a user operation behavior, where different operation identifiers are used to indicate different types of operation behaviors performed by the user in the main interface window of the preset application interface on at least one sub-interface window of the preset application interface; A matching module, configured to determine, according to the operation identifier, from among various preset detection rules, a detection rule that matches the operation behavior corresponding to the operation identifier as a target rule; a trigger module, used to trigger the execution of the program corresponding to the target rule, so as to detect the window state of the sub-interface window corresponding to the operation behavior when the user performs the operation behavior in the main interface window of the preset application interface, wherein the window state is used to indicate whether the sub-interface window corresponding to the operation behavior is in an open state or in a closed state; The detection module is used to determine the detection result according to the window state and the verification logic contained in the target rule corresponding program.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Data visualization realization system and method
CN107844297A
Interface logic execution method and device, electronic equipment and medium
CN113918067A
Window processing method and device, computer equipment and storage medium
CN116484138A
Interface configuration method and device for editing application and storage medium
CN117369885A
Focus window capturing method and device, electronic equipment and readable storage medium
CN117950883A
