Event processing method and device, electronic equipment and computer readable storage medium

By detecting click events in the WEB page and monitoring the status of external input devices, the problem of misclick operations is solved, and more accurate and efficient event processing is achieved, improving the user experience.

CN119512429APending Publication Date: 2025-02-25BOE TECHNOLOGY GROUP CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411683036.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

How to effectively prevent WEB pages from clicking accidentally, and prevent unnecessary page refresh, form submission, jump, deletion and other operations.

Method used

By detecting the click event of the target object in the front-end page and monitoring the status of the external input device within a predetermined period of time, the click event is intercepted or executed to determine whether it is an error click.

Benefits of technology

Improve the accuracy and efficiency of event processing, prevent misclicking or misoperation, improve user experience, and reduce the risk of malicious script utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512429A_ABST
    Figure CN119512429A_ABST
Patent Text Reader

Abstract

The invention provides an event processing method and device, electronic equipment and a computer readable storage medium, which can be applied to the technical fields of Internet technology, software technology and network development. The event processing method comprises the following steps: in response to the detection that a target object in a front-end page is clicked, intercepting a click event for the target object; and in response to monitoring that the at least one external input device used for displaying the front-end page is not triggered in the preset time period, executing a click event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of Internet technology, software technology and network development technology, and more specifically, to an event processing method and device, an electronic device and a computer-readable storage medium. Background Art

[0002] WEB (World Wide Web) page misclicks refer to users accidentally clicking on the wrong link or button when browsing a WEB page, resulting in unnecessary page refreshes, form submissions, jumps, deletions, etc. Therefore, how to more effectively prevent misclicks is an urgent problem to be solved. Summary of the invention

[0003] In view of this, the present disclosure provides an event processing method and device, an electronic device, and a computer-readable storage medium.

[0004] According to one aspect of the present disclosure, an event processing method is provided, including: in response to detecting that a target object in a front-end page is clicked, intercepting a click event for the target object; and in response to monitoring that at least one external input device for displaying the front-end page is not triggered within a predetermined time period, executing the click event.

[0005] According to another aspect of the present disclosure, an event processing device is provided, including: an interception module, for intercepting a click event for a target object in a front-end page in response to detecting that the target object in the front-end page is clicked; and an execution module, for executing the click event in response to monitoring that at least one external input device for displaying the front-end page is not triggered within a predetermined time period.

[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the method described in the present disclosure.

[0007] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which executable instructions are stored. When the executable instructions are executed by a processor, the processor implements the method described in the present disclosure.

[0008] According to another aspect of the present disclosure, a computer program product is provided. The computer program product includes computer executable instructions. When the computer executable instructions are executed, they are used to implement the method described in the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0010] Figure 1 The system architecture to which the event processing method according to the embodiment of the present disclosure can be applied is schematically shown;

[0011] Figure 2 A flowchart of an event processing method according to an embodiment of the present disclosure is schematically shown;

[0012] Figure 3A An example schematic diagram of a point tracking process according to an embodiment of the present disclosure is schematically shown;

[0013] Figure 3B An example schematic diagram of a point tracking process according to another embodiment of the present disclosure is schematically shown;

[0014] Figure 4 An example schematic diagram schematically shows a monitoring process of an external input device according to an embodiment of the present disclosure;

[0015] Figure 5 An example schematic diagram schematically shows a monitoring process of an external input device according to another embodiment of the present disclosure;

[0016] Figure 6 An example schematic diagram schematically shows an event processing process according to an embodiment of the present disclosure;

[0017] Figure 7 A block diagram schematically shows an event processing device according to an embodiment of the present disclosure; and

[0018] Figure 8 A block diagram of an electronic device suitable for implementing an event processing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0019] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0020] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0021] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0022] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0023] In the technical solution of the present invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0024] In one example, accidental clicks can be prevented based on pop-up window prompts. For example, a pop-up window is created using the confirm function in JavaScript to require the user to confirm before performing an operation.

[0025] However, taking the data list including multiple data as an example, when the user wants to delete the data one by one, if a pop-up window method based on the confirm function is used to prevent accidental clicks, a confirmation prompt window will pop up every time the user clicks delete.

[0026] It can be seen that frequent pop-up prompts will interrupt the user's operation process until the user responds, thus affecting the user experience; and in this process, since the pop-up window requires the user to confirm twice, if the user is not careful or makes an error in operation, it may still lead to wrong operation. In addition, since there are users who click to confirm immediately after seeing the pop-up confirmation button, it is impossible to completely avoid wrong clicks; and since the pop-up window may be used by malicious scripts to conduct phishing attacks or steal user information.

[0027] To this end, the present disclosure provides an event processing method and device, an electronic device, and a computer-readable storage medium, which can be applied to the fields of Internet technology, software technology, and network development technology. The event processing method includes: in response to detecting that a target object in a front-end page is clicked, intercepting a click event for the target object; and in response to monitoring that at least one external input device for displaying the front-end page is not triggered in a predetermined period of time, executing a click event.

[0028] Figure 1 The system architecture to which the event processing method can be applied according to the embodiment of the present disclosure is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0029] like Figure 1 As shown, the system architecture 100 according to this embodiment may include a terminal device 110, a server 120, an external input device 130 and a network 140. The network 104 is a medium for providing a communication link between different devices.

[0030] The terminal device 110 may include, for example, a first terminal device 111, a second terminal device 112, and a third terminal device 113. The external input device 130 may include, for example, a mouse 131 and a keyboard 132.

[0031] It should be noted that the event processing method provided in the embodiment of the present disclosure can generally be executed by the server 120. Accordingly, the event processing device provided in the embodiment of the present disclosure can generally be set in the server 120.

[0032] Alternatively, the event processing method provided in the embodiment of the present disclosure may also be executed by the first terminal device 111, the second terminal device 112, and the third terminal device 113. Accordingly, the event processing apparatus provided in the embodiment of the present disclosure may also be arranged in the first terminal device 111, the second terminal device 112, and the third terminal device 113.

[0033] It should be understood that Figure 1 The number of terminal devices, networks, servers and external input devices in the embodiment is only for illustration. Any number of terminal devices, networks, servers and external input devices may be provided according to the implementation requirements.

[0034] It should be noted that the sequence numbers of the operations in the following method are only used as representations of the operations for the purpose of description, and should not be regarded as representing the execution order of the operations. Unless explicitly stated, the method does not need to be executed completely in the order shown.

[0035] The above describes the system architecture to which the event processing method provided by the present disclosure can be applied. Figure 2 For example, the event processing process of the present disclosure is further explained.

[0036] Figure 2 The flowchart of the event processing method according to the embodiment of the present disclosure is schematically shown.

[0037] like Figure 2 As shown, the event processing method 200 includes operations S210 to S220.

[0038] In operation S210, in response to detecting that a target object in a front-end page is clicked, a click event for the target object is intercepted.

[0039] In operation S220, in response to monitoring that at least one external input device for displaying the front page is not triggered within a predetermined period of time, a click event is executed.

[0040] The event processing method can be applied to a server, and the server can be connected to a display device and at least one external input device. The display device can be used to display a front-end page, and the front-end page can be deployed with at least one target object. The display device can also be used to obtain a click operation on the target object.

[0041] The front-end page may refer to a web page. The target object refers to an element or component in a web page that can interact with a user. The target object may include at least one of the following: an HTML (HyperText Markup Language) element, a form control, a JavaScript object, and a multimedia element. For example, an HTML element refers to a button, a link, an input box, a text area, a selection box, a check box, or a radio button. A form control refers to a form or a form element. Alternatively, a JavaScript object refers to a DOM (Document Object Model) object or an event object. Alternatively, a multimedia element refers to an image, a video, or an audio.

[0042] When developing a front-end page, you can embed a point on the target object based on a preset method, so that when the target object is clicked, the click event for the target object is intercepted to prevent it from being executed immediately, so as to provide sufficient time to determine whether the click is an accidental click. The preset method can be configured according to actual business needs and is not limited here. For example, the preset method can include at least one of the following: event listener, event delegation, and event bubbling.

[0043] After intercepting the click event for the target object, it is possible to monitor whether at least one external input device is triggered within a predetermined period of time. An external input device refers to an input device that is not built into a computer or mobile device and can be connected to a server through various interfaces to input content to the server. The external input device may include at least one of the following: a keyboard, a mouse, a touchpad, a graphics input device, a game controller, a voice input device, and a biometric device.

[0044] The monitoring method and the configuration method of the scheduled time period for the external input device can be configured according to the actual business needs, and are not limited here. For example, for the mouse or keyboard, a JavaScript event listener can be used to monitor whether it is triggered. For another example, a scheduled time period can be set in a task management application, or a scheduled task can be set in the operating system.

[0045] Determine whether to execute the click event for the target object according to the triggering condition of at least one external input device within a predetermined period of time. For example, if at least one external input device is not triggered within the predetermined period of time, the click event for the target object can be executed. Alternatively, if at least one external input device is triggered within the predetermined period of time, the click event can be terminated.

[0046] According to the embodiments of the present disclosure, by globally intercepting the click event for the target object in the front-end page, the user's click behavior can be accurately identified and responded to. While intercepting the click event, by intelligently judging whether to execute the click event according to the predetermined time period and the state of the external input device, it is possible to prevent accidental clicks or misoperations, thereby improving the accuracy and efficiency of event processing.

[0047] Before executing the above interception of the click event for the target object, it is also necessary to perform a tracking operation on the target object. In the embodiment of the present disclosure, the tracking operation can be performed based on a preset script. Figure 3A The process of embedding points is further explained.

[0048] Figure 3AAn example schematic diagram of a point tracking process according to an embodiment of the present disclosure is schematically shown.

[0049] like Figure 3A As shown, in 300A, a preset script 301 can be developed in advance so that the front-end developer can reference the preset script 301 to the page to be developed in the project. Thus, the front-end page 302 can be developed based on the preset script 301. The preset script 301 can be used to perform a point-embedding operation on each candidate object in the front-end page 302, so that when the candidate object is clicked, the click event for the candidate object is intercepted and at least one external input device is monitored. For example, the front-end page 302 includes a candidate object 3011 and a candidate object 3022, and the preset script can be used to perform a point-embedding operation on the candidate object 3011 and the candidate object 3022 respectively. This integration through independent JavaScript direct reference can be free of unpacking and configuration, thereby achieving simple, convenient and efficient docking.

[0050] In the embodiment of the present disclosure, the tracking operation can also be performed based on a preset plug-in. Figure 3B The process of embedding points is further explained.

[0051] Figure 3B An example schematic diagram of a point tracking process according to another embodiment of the present disclosure is schematically shown.

[0052] like Figure 3B As shown, in 300B, a preset plug-in 303 can be developed in advance, so that it can be automatically injected into the front-end page 302 browsed by the user, without the need for manual integration by the developer. Thus, based on the preset plug-in 303, a browser 304 for displaying the front-end page 302 is developed. The preset plug-in 303 is used to perform a point-burying operation on each front-end page 302 using the browser 304, so that when the candidate object is clicked, the click event for the candidate object is intercepted and at least one external input device is monitored. In this case, any page opened by the browser 304 can use this function. For example, the preset plug-in 303 can be used to perform a point-burying operation on the candidate object 3011 and the candidate object 3022 in the front-end page 302. The scope of this method can be all browsed web pages, so that a strong anti-misclick effect can be achieved.

[0053] According to the embodiments of the present disclosure, by developing a front-end page through a preset script, or developing a browser through a preset plug-in to monitor an external input device, the user's click behavior can be accurately captured. The selection of different development methods improves the flexibility of configuration and facilitates user front-end integration and use.

[0054] It can be understood that the above describes how to implement the tracking point. Figure 4The present invention further describes how to monitor an external input device.

[0055] Figure 4 An example schematic diagram of a monitoring process of an external input device according to an embodiment of the present disclosure is schematically shown.

[0056] like Figure 4 As shown, in 400, the monitoring process for the external input device may include operations S401 to S404.

[0057] In operation S401 , at time t1 , it is detected that a target object in a front-end page is triggered.

[0058] In operation S402, at time t1, a click event on a target object is intercepted and a timer is started at the same time. The timer is used to configure a predetermined period of time for executing a monitoring task.

[0059] According to the embodiments of the present disclosure, by using a timer to configure a predetermined time period for executing a monitoring task, accurate time management can be achieved, thereby optimizing resource allocation.

[0060] The predetermined period can be configured according to actual business needs and is not limited here. For example, the predetermined period can be determined based on historical operation information of the external input device. Alternatively, the predetermined period can be customized based on preference information of the user using the external input device. For example, the predetermined period can be set to 500 milliseconds. During the predetermined period configured by the timer, it is possible to monitor in real time whether the external input device is triggered.

[0061] In one example, the predetermined period may also be configured in at least one of the following ways: based on the usage of system resources, based on the hardware capabilities of the system, and based on the power state of the device. Based on the usage of system resources means setting a shorter predetermined period when the system load is low. Based on the hardware capabilities of the system means setting a longer predetermined period when the hardware capabilities of the system are strong. Based on the power state of the device means setting a longer predetermined period when the device has sufficient power.

[0062] In operation S403, from time t1 to time t2, ie, a predetermined period of time, an external input device is monitored.

[0063] In operation S404, at time t2, ie, after the predetermined period of time has ended, the timer is turned off.

[0064] According to the embodiments of the present disclosure, by determining the predetermined time period according to the historical operation information of the external input device or the preference information of the user, the monitoring task is made more personalized and accurate, thereby improving the monitoring efficiency and user satisfaction.

[0065] In the embodiment of the present disclosure, the monitoring method can also be based on the sub-period for each external input device. Figure 5 The process of monitoring external input devices is further described.

[0066] Figure 5 An example schematic diagram of a monitoring process of an external input device according to another embodiment of the present disclosure is schematically shown.

[0067] like Figure 5 As shown, in 500, the monitoring process for the external input device may include operations S501 to S504.

[0068] In operation S501 , at time t1 , it is detected that a target object in a front-end page is triggered.

[0069] In operation S502, at time t1, a click event on a target object is intercepted and a timer is started at the same time. The timer is used to configure a predetermined period of time for executing a monitoring task.

[0070] The predetermined time period may include a sub-time period for each external input device, and a timer may be used to set a sub-time period for each external input device. For each external input device, input information of the external input device may be monitored in the sub-time period corresponding to the external input device.

[0071] According to the embodiments of the present disclosure, by setting a respective sub-period for each external input device, the monitoring period can be customized according to historical operation information of the external input device or user preference information, thereby improving the pertinence and efficiency of monitoring.

[0072] In one example, taking the external input device as a mouse, the timer can be used to set the sub-period 1 of the mouse, that is, time t1 to time t2. In operation S5031, from time t1 to time t2, that is, in sub-period 1, the input information of the mouse can be monitored. The input information of the mouse may include at least one of the following: cursor position, button state, and movement speed. The cursor position refers to the position of the cursor presented by the mouse on the front page. The button state refers to the state of the left button, right button and scroll wheel of the mouse. The movement speed refers to the speed at which the mouse cursor moves and drags.

[0073] For example, in the sub-period, the position of the mouse cursor changes, indicating that the user may be moving the mouse, thereby indicating that the click is an erroneous operation.

[0074] In another example, taking the external input device as a keyboard, a timer can be used to set a sub-period 2 of the keyboard, i.e., time t1 to time t3. In operation S5032, during time t1 to time t3, i.e., sub-period 2, input information of the keyboard can be monitored. The input information of the keyboard may include key status.

[0075] For example, in the sub-period, the key state of the keyboard changes, indicating that the user may be performing other operations, thereby indicating that the current click is an erroneous operation.

[0076] In operation S504, at time t3, that is, after both sub-period 1 and sub-period 2 are finished, the timer is turned off.

[0077] According to the embodiments of the present disclosure, by monitoring the cursor position, button status, movement speed of the mouse, and key status of the keyboard, the user's input behavior can be accurately captured.

[0078] It can be understood that the above describes how to monitor external input devices. Figure 6 The overall event processing flow of the present disclosure is further explained.

[0079] Figure 6 An example schematic diagram of an event processing process according to an embodiment of the present disclosure is schematically shown.

[0080] like Figure 6 As shown, in 600, the event processing process is described by taking a system for applying an event processing method including a monitoring module 610, an interception module 620 and a judgment module 630 as an example.

[0081] In response to the target object 6011 in the front-end page 601 being clicked, the monitoring module 610 can be used to monitor at least one external input device 602. At the same time, the interception module 620 can be used to intercept the click event 603 for the target object 6011. The click event 603 can include the object identifier of the target object 6011 and the position information representing the position of the target object 6011 in the front-end page 601. On this basis, the judgment module 630 can be used to determine whether to submit the click event 603 or terminate the click event 603 according to the monitoring situation of the monitoring module 610.

[0082] For example, when at least one external input device 602 is not triggered during the predetermined period of time, the judgment module 630 believes that the click event 603 is intentional, and can submit the click event 603. According to the object identifier and the location information, the predetermined action for executing the click event 603 is determined, and the target page 604 is obtained by executing the predetermined action. The predetermined action may include at least one of the following: link jump and button click response. On this basis, the display device used to display the front-end page 601 can be used to display the target page 604.

[0083] According to the embodiments of the present disclosure, by accurately capturing the target object identification and location information of the click event, intelligent monitoring and response to the external input device is achieved. On this basis, by automatically executing the predetermined action of the click event when no external input device activity is detected within a predetermined period of time, it is ensured that the user's intentional click operation can be smoothly executed, thereby improving the automation of user interaction and user experience.

[0084] Alternatively, when it is monitored that at least one external input device 602 has a triggered external input device in a predetermined time period, the judgment module 630 believes that the current click event 603 is an erroneous operation, and the click event 603 can be terminated, and the display device used to display the front-end page 601 can be used to display the event termination information 604, so as to clearly indicate the cancellation of the click event 603 through a friendly bubble prompt text.

[0085] According to the embodiments of the present disclosure, by terminating the click event when it is detected that the external input device is triggered within a predetermined period of time, unnecessary operations or false touches can be avoided, thereby ensuring the accuracy and efficiency of the operation.

[0086] The above are merely exemplary embodiments, but are not limited thereto, and may also include other event processing methods known in the art, as long as they can improve the accuracy and efficiency of event processing.

[0087] It should be noted that in the embodiments of the present invention, certain software, components, models and other existing solutions in the industry may be mentioned, which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present invention, but it does not mean that the present invention has or must use this solution.

[0088] Based on the above event processing method, the present invention also provides an event processing device. Figure 7 The device is described in detail.

[0089] Figure 7 A block diagram of an event processing device according to an embodiment of the present disclosure is schematically shown.

[0090] like Figure 7As shown, the event processing device 700 may include an interception module 710 and an execution module 720 .

[0091] The interception module 710 is used to intercept a click event on the target object in response to detecting that the target object in the front-end page is clicked.

[0092] The execution module 720 is used to execute a click event in response to monitoring that at least one external input device for displaying the front page is not triggered within a predetermined period of time.

[0093] According to any one or more of the modules of the embodiments of the present disclosure, at least part of the functions of any one of them can be implemented in one module. According to any one or more of the modules of the embodiments of the present disclosure, it can be split into multiple modules for implementation. According to any one or more of the modules of the embodiments of the present disclosure, it can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware of any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, according to one or more of the modules of the embodiments of the present disclosure, it can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.

[0094] It should be noted that the event processing device part in the embodiment of the present disclosure corresponds to the event processing method part in the embodiment of the present disclosure. The description of the event processing device part specifically refers to the event processing method part, which will not be repeated here.

[0095] Figure 8 A block diagram of an electronic device suitable for implementing an event processing method according to an embodiment of the present disclosure is schematically shown. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0096] like Figure 8As shown, the computer electronic device 800 according to the embodiment of the present disclosure includes a processor 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 809 to the random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include an onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.

[0097] In the RAM 803, various programs and data necessary for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804.

[0098] According to an embodiment of the present disclosure, the electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the input / output (I / O) interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 808 including a hard disk, etc.; and a communication portion 809 including a network interface card such as a LAN card, a modem, etc. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage portion 808 as needed.

[0099] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the event processing method according to the embodiment of the present disclosure is implemented.

[0100] In the present disclosure, 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.

[0101] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the object detection method provided by the embodiment of the present disclosure.

[0102] When the computer program is executed by the processor 801, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0103] According to the embodiments of the present disclosure, program codes for executing the computer programs provided by the embodiments of the present disclosure may be written in any combination of one or more programming languages.

[0104] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. It should also be noted that in some alternative implementations, the functions marked in the blocks may also occur in an order different from that marked in the accompanying drawings.

[0105] The embodiments of the present disclosure are described above. However, these embodiments are only for the purpose of illustration and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. An event processing method, comprising: In response to detecting that a target object in a front-end page is clicked, intercepting a click event for the target object; as well as In response to monitoring that at least one external input device for displaying the front page is not triggered within a predetermined period of time, the click event is executed.

2. The method according to claim 1, wherein: The predetermined time period includes a respective sub-time period for each of the external input devices; The method further includes, after intercepting a click event for the target object in the front-end page in response to detecting that the target object in the front-end page is clicked: For each of the external input devices, in a sub-period corresponding to the external input device, the input information of the external input device is monitored.

3. The method according to claim 2, wherein: The at least one external input device includes a mouse and a keyboard; The input information of the mouse includes at least one of the following: cursor position, button status and movement speed, and the input information of the keyboard includes key status.

4. The method according to claim 1, wherein: The predetermined time period is set by one of the following methods: determining the predetermined time period according to historical operation information of the external input device; or The predetermined time period is determined according to preference information of a user using the external input device.

5. The method according to any one of claims 1 to 4, wherein: The click event includes the object identifier of the target object and the position information representing the position of the target object in the front-end page; In response to monitoring that at least one external input device for displaying the front page is not triggered within a predetermined period of time, executing the click event includes: In response to monitoring that the at least one external input device is not triggered during the predetermined time period, determining a predetermined action for executing the click event according to the object identifier and the position information; as well as The target page obtained by executing the predetermined action is displayed using a display device used to display the front-end page.

6. The method according to any one of claims 1 to 4, further comprising: In response to monitoring that there is a triggered external input device in the at least one external input device during the predetermined time period, terminating the click event; as well as The event termination information is displayed using a display device for displaying the front-end page.

7. The method according to any one of claims 1 to 4, further comprising, before intercepting the click event for the target object in response to detecting that the target object in the front-end page is clicked: Based on the preset script, the front-end page is developed, wherein: The preset script is used to perform a tracking operation on each candidate object in the front-end page, so as to intercept a click event on the candidate object and monitor the at least one external input device when the candidate object is clicked; or Based on a preset plug-in, a browser for displaying the front-end page is developed, wherein the preset plug-in is used to perform a tracking operation on each front-end page using the browser, so as to intercept the click event on the candidate object and monitor the at least one external input device when the candidate object is clicked.

8. The method according to claim 1, further comprising: Start a timer, wherein the timer is used to configure the predetermined time period for performing the monitoring task.

9. An event processing device, comprising: An interception module, configured to intercept a click event on a target object in a front-end page in response to detecting that the target object in the front-end page is clicked; as well as The execution module is used to execute the click event in response to monitoring that at least one external input device used to display the front-end page is not triggered within a predetermined time period.

10. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, The method is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Method and device for preventing wrong operations of keys

    CN106527799A

  • Exit misoperation prevention method and device and electronic device

    CN110795185A

  • Misoperation prompting method and electronic equipment

    CN111475080A

  • Operation response method and device, equipment and storage medium

    CN112230779A

  • Method and a device for providing additional functionality to a separate application

    US20040145601A1