Verification code input method and device, storage medium and electronic equipment

By automatically identifying the interface and generating simulated input instructions, automatic input of verification codes in the user interface with a built-in keyboard interface is realized, which solves the problems of interface switching and memorizing verification codes, and improves input efficiency and accuracy.

CN118540079APending Publication Date: 2024-08-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310167682.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In a user interface with a built-in keyboard interface, users need to frequently switch interfaces to view and memorize verification codes, which results in inefficient and error-prone input of verification codes, affecting the verification progress.

Method used

By obtaining the interface information of the current interface, identify whether it is an interface to be verified, and generate simulated input instructions to automatically input the verification code into the verification code input box of the interface to avoid manual operations.

Benefits of technology

It improves the convenience and efficiency of entering verification codes, reduces the steps of interface switching and memorizing verification codes, reduces the risk of errors, and improves the accuracy of verification and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540079A
    Figure CN118540079A
Patent Text Reader

Abstract

The invention discloses a verification code input method and device, a storage medium and electronic equipment, and the method comprises the steps: responding to a received verification code, and obtaining the interface information of a current interface; according to the interface information, determining whether the current interface belongs to a to-be-verified interface with a keyboard interface; if yes, generating an analog input instruction according to the verification code; and inputting the verification code into the verification code input box of the current interface through the keyboard interface according to the analog input instruction. By detecting the interface type of the current interface, when the current interface belongs to the to-be-verified interface, the verification code is automatically input into the verification code input box by generating the analog input instruction according to the verification code, manual input after a user checks and memorizes the verification code is avoided, and convenience is brought to use of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a verification code input method, device, storage medium and electronic device. Background Art

[0002] With the rapid development of computer technology, various applications have emerged, such as mobile banking, travel code applets, etc. When users use such applications, they often need to perform identity authentication to log in.

[0003] For a user interface with a built-in keyboard interface, the user needs to exit the user interface to view and memorize the verification code, and then switch back to the user interface to enter the verification code for identity authentication, which brings inconvenience to the user. Summary of the invention

[0004] The embodiments of the present application provide a verification code input method, device, storage medium and electronic device, which can improve the convenience of inputting a verification code on a user interface with a built-in keyboard interface.

[0005] In a first aspect, an embodiment of the present application provides a verification code input method, comprising:

[0006] In response to the received verification code, obtaining interface information of the current interface;

[0007] According to the interface information, determine whether the current interface belongs to the interface to be verified with a built-in keyboard interface;

[0008] If yes, generate simulated input instructions according to the verification code;

[0009] According to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface.

[0010] In a second aspect, an embodiment of the present application further provides a verification code input device, comprising:

[0011] An information acquisition module, used to acquire interface information of the current interface in response to the received verification code;

[0012] The interface identification module is used to determine whether the current interface belongs to the interface to be verified with a built-in keyboard interface according to the interface information;

[0013] An instruction generation module, for generating a simulated input instruction according to the verification code;

[0014] The input control module is used to input the verification code into the verification code input box of the current interface through the keyboard interface according to the simulated input instruction.

[0015] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program runs on a computer, the computer executes a verification code input method as provided in any embodiment of the present application.

[0016] In a fourth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory has a computer program, and the processor executes a verification code input method provided in any embodiment of the present application by calling the computer program.

[0017] The technical solution provided by the embodiment of the present application obtains the interface information of the current interface, and effectively identifies the interface to be verified that needs to be input with a verification code and has a keyboard interface according to the interface information. And when the current interface belongs to the interface to be verified, it can be determined that the verification code needs to be input into the verification code input box of the current interface. Afterwards, a simulation input instruction is generated according to the verification code, and according to the simulation input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface. In this way, the verification code is automatically input into the verification code input box of the current interface belonging to the interface to be verified, which is convenient for users to use. Compared with the prior art, it avoids the need for users to switch interfaces to view and memorize verification codes and to enter verification codes in the verification code input box by themselves, eliminating cumbersome manual operations, and can more conveniently and quickly input verification codes, thereby greatly improving the efficiency of verification by verification codes. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A schematic diagram of an application scenario of the verification code input method provided in an embodiment of the present application.

[0020] Figure 2 A flowchart of a verification code input method provided in an embodiment of the present application.

[0021] Figure 3 A schematic diagram of identifying a user interface in the method provided in an embodiment of the present application.

[0022] Figure 4 A schematic diagram of determining a display area in a method provided in an embodiment of the present application.

[0023] Figure 5 A schematic diagram of a change in the interface state of a current interface in a method provided in an embodiment of the present application.

[0024] Figure 6 A detailed flowchart of the verification code input method provided in an embodiment of the present application.

[0025] Figure 7 A schematic diagram of the process of inputting a verification code according to the interface type to which the current interface belongs in the method provided in an embodiment of the present application.

[0026] Figure 8 A schematic diagram of the structure of a verification code input device provided in an embodiment of the present application.

[0027] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0030] Nowadays, there are many usage scenarios that require verification codes, such as account login, online payment, identity authorization, password modification, account registration, etc. Figure 1 , Figure 1 Schematic diagram of application scenarios of the verification code input method provided in the embodiment of the present application. Taking the usage scenario of account login as an example, in the user interface of account login, by entering the mobile phone number in the input box of the mobile phone number, and then clicking the "Get Verification Code" button, you can request a verification code from the operator through the mobile phone number, wherein the verification code is returned from the operator via SMS. After receiving the SMS from the operator, the user can obtain the verification code carried in the SMS by checking the SMS. When the verification code needs to be entered, the verification code is entered into the verification code input box by switching the interface to the user interface of account login, so as to log in to the account through the verification code.

[0031] When faced with different user interfaces that need to be verified, the user interfaces can be divided into the first category of user interfaces with built-in keyboard interfaces and the second category of user interfaces without built-in keyboard interfaces, according to the usage of the input method. For the first category of user interfaces, the built-in soft keyboard is called through its built-in keyboard interface, and the user can input the verification code by operating the built-in soft keyboard. Among them, the built-in soft keyboard is custom designed by the developer of the application or web page to be used as a custom keyboard (internal keyboard) of the application or web page, and the pop-up and folding of the built-in soft keyboard are not supervised by the system. For the second category of user interfaces, the system's soft keyboard is called by calling the system's built-in input communication interface, and the pop-up and folding of the system's soft keyboard are supervised by the system.

[0032] For the sake of user information protection and user asset protection, most applications or web pages on the market use the first type of user interface to input verification codes. However, since the first type of user interface uses its own keyboard interface to input verification codes, the pop-up and retraction of the built-in soft keyboard are regulated by the application or the web page itself, and are not regulated by the system. Therefore, it is impossible to input the verification code by calling the system's soft keyboard. And because when inputting the verification code in the first type of user interface, the user needs to exit the first type of user interface to the SMS interface to view and memorize the verification code, then exit the SMS interface and return to the first type of user interface, and enter the memorized verification code into the verification code input box of the first type of user interface through the soft keyboard of the application or web page. This method requires the user to frequently switch interfaces, and manually memorize and enter the verification code, which brings many inconveniences to the user, and the manual operation is time-consuming and labor-intensive, which reduces the efficiency of the verification code input, and thus affects the progress of verification through the verification code. And affected by the user's subjective factors, in the case of incorrect memorization of the verification code, there is also the risk of verification error.

[0033] In order to solve the above-mentioned technical problems regarding verification code input in the first type of user interface, the embodiments of the present application provide a verification code input method, device, storage medium and electronic device. The executor of the verification code input method can be the verification code input device provided by the embodiments of the present application, or an electronic device integrating the verification code input device, wherein the verification code input device can be implemented in hardware or software.

[0034] The electronic device may be a smart phone, a foldable screen phone, a tablet computer, a PDA, a laptop computer, a desktop computer, or a smart home device, a smart wearable device, etc. Among them, smart home devices include, for example, smart mirrors, smart TVs, smart screens, etc., and smart wearable devices include, for example, smart watches, smart bracelets, smart glasses, etc.

[0035] See also Figure 2 , Figure 2 The following is a flow chart of the verification code input method provided in the embodiment of the present application. The specific flow of the verification code input method provided in the embodiment of the present application can be as follows:

[0036] 101. In response to the received verification code, obtain interface information of the current interface.

[0037] The verification code can be sent to the operator based on the mobile phone number, email account, etc. to request the verification code, so as to obtain the verification code from the operator. When receiving the verification code returned from the operator, the carrier of receiving the verification code includes but is not limited to: mobile phone text messages, phone notifications, emails, etc. The ways of obtaining the verification code and receiving the verification code can correspond to each other, for example, sending a request for obtaining the verification code through a mobile phone number and receiving the returned verification code through text messages.

[0038] The current interface refers to the user interface of the application or web page currently running in the foreground on the electronic device, where the user interface is also called the UI interface. The interface information is used to describe the properties of the current interface, and the interface information of different user interfaces is different.

[0039] Here, the verification code of a mobile phone text message is used as an example to explain the process of receiving the verification code. After the mobile phone number is entered into the current interface, a verification code is requested from the operator based on the input mobile phone number. After receiving the text message from the operator, the SMS platform detects the received SMS, and after identifying the verification code from the SMS, it broadcasts a notification and transmits the verification code. After receiving the broadcast notification from the SMS platform, the system detects the interface information of the current interface, and analyzes the interface type of the current interface through the interface information, wherein the interface type includes the first type of user interface with built-in keyboard interface mentioned above, and the second type of user interface without built-in keyboard interface mentioned above.

[0040] When the verification code is not recognized in the text message, the text message can be deleted or marked to ensure the validity of the text messages in the text message inbox and avoid being covered by junk text messages. In addition, in some cases, there are multiple similar or identical text messages received. In this embodiment, redundant text messages can be deleted according to the time period when the text messages are received, and the latest and valid text messages can be retained.

[0041] 102. Determine, based on the interface information, whether the current interface is an interface to be verified with a built-in keyboard interface.

[0042] The corresponding relationship between the interface information and the interface type may be preset, and after the interface information of the current interface is acquired, the interface type to which the current interface belongs may be determined according to the corresponding relationship.

[0043] For the first type of user interface with built-in keyboard interface mentioned above, when the current interface belongs to the first type of user interface and a verification code is received, indicating that the verification code needs to be entered in the current interface, the first type of user interface with its own keyboard interface and the verification code needs to be entered can be called the interface to be verified.

[0044] 103. If yes, generate a simulated input instruction according to the verification code.

[0045] When the current interface is an interface to be verified with a built-in keyboard interface, a simulated input instruction is generated according to the verification code, and the simulated input instruction is used to simulate the user's input, and the operation of inputting the verification code is executed through the simulated input instruction.

[0046] The simulation input instruction can be generated by a simulation tool, including but not limited to an adb simulator. After the simulation input instruction is generated by the simulation tool, the verification code can be input into the verification code input box by the simulation input instruction, so that the verification code input on the verification interface is not limited by the interface type, thereby expanding the way of inputting the verification code.

[0047] 104. According to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface.

[0048] The user input is simulated by simulating input instructions, and the verification code is input into the verification code input box of the current interface through the keyboard interface of the current interface. Among them, the keyboard interface of the current interface serves as a medium between the system and the current interface, and transmits the verification code to the current interface. In addition, the keyboard interface of the current interface is also used to control the soft keyboard of the current interface, including controlling the pop-up, retraction and key triggering of the built-in soft keyboard.

[0049] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0050] As can be seen from the above, the verification code input method provided in the embodiment of the present application obtains the interface information of the current interface, and analyzes the interface information to determine the interface type to which the current interface belongs. When the current interface belongs to an interface to be verified with a built-in keyboard interface, a simulated input instruction is generated according to the verification code, and according to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface. In this way, the verification code is automatically input into the verification code input box of the current interface, avoiding the need to manually input the verification code after viewing and memorizing the verification code, and avoiding cumbersome interface switching operations, thereby improving the efficiency and accuracy of verification code input.

[0051] In some embodiments, determining whether the current interface is an interface to be verified with a built-in keyboard interface according to the interface information includes:

[0052] Analyze the interface information and obtain the analysis results;

[0053] If the analysis result indicates that the interface information includes a preset identifier, it is determined that the current interface belongs to an interface to be verified.

[0054] In this embodiment, the first type of user interface with a built-in keyboard interface is pre-identified by a preset identifier to distinguish the first type of user interface from the second type of user interface. Compared with the first type of user interface, the interface information of the second type of user interface does not include the preset identifier, or the preset identifier included in the interface information of the second type of user interface is different from the preset identifier included in the interface information of the first type of user interface.

[0055] Exemplarily, the interface information is used to describe the properties of the current interface. By analyzing the interface information, it can be determined whether the current interface belongs to the interface to be verified with a built-in keyboard interface. In addition, the content covered by the interface information may also include the interface layout and interface elements of the current interface. Among them, the interface elements include content views, controls, bars, etc.

[0056] The preset identifier is used as a mark of the interface to be verified. By analyzing whether the interface information includes the preset identifier, the interface type to which the current interface belongs can be determined. That is, when the interface information includes the preset identifier, the current interface belongs to the interface to be verified, and when the interface information does not include the preset identifier, the current interface does not belong to the interface to be verified.

[0057] Among them, there are many ways to analyze the interface information and determine whether the interface information includes a preset logo based on the analysis results. Two implementation methods are described below, but it should be understood that the following two implementation methods are only used as examples to illustrate the scheme provided in this application and should not be regarded as a limitation on the scheme of this application.

[0058] As an implementation mode, when a preset mark is used as a mark to indicate the first type of user interface, it is possible to determine whether the current interface belongs to the first type of user interface that requires a verification code to be entered, also known as an interface to be verified, by analyzing whether the interface information includes the preset mark. If the analysis result indicates that the interface information includes the preset mark, it is determined that the current interface belongs to the interface to be verified; if the analysis result indicates that the interface information does not include the preset mark, it is determined that the current interface does not belong to the interface to be verified.

[0059] As another implementation, in the case where the preset identifier is represented by the attributes of the interface element, the attributes of the interface element in the interface information can be analyzed to determine whether the current interface belongs to the interface to be verified based on the analysis result of the attributes of the interface element. Wherein, the correspondence between the attributes of a specific interface element and the preset identifier is preconfigured, so that when the analysis result indicates that the attributes of the interface element match the preset identifier, it is determined that the interface information of the current interface includes the preset identifier, and it can be determined that the current interface belongs to the interface to be verified. In the case where the analysis result indicates that the attributes of the interface element do not match the preset identifier, it is determined that the interface information of the current interface does not include the preset identifier, and it can be determined that the current interface does not belong to the interface to be verified.

[0060] As described above, in this embodiment, by obtaining interface information and analyzing the interface information, it is determined whether the current interface includes a preset identifier, wherein the preset identifier serves as a mark of a user interface with a built-in keyboard interface. In the case where the current interface includes a preset identifier, it can be determined that the current interface belongs to an interface to be verified that requires a verification code input and has a built-in keyboard interface. In this way, the interface type to which the current interface belongs can be accurately identified, and in the case where the current interface belongs to an interface to be verified, the solution provided in this embodiment is executed - the verification code is automatically entered into the verification code input box of the current interface.

[0061] It is understandable that there are many ways to pre-identify the first type of user interface with a built-in keyboard interface by a preset identifier. For example, before the application is released, the preset identifier can be added to the user interface with a built-in keyboard interface in the application in advance to indicate that the user interface has a built-in keyboard interface. In the process of using the current interface of the application, if a verification code is received, and the interface information of the current interface is analyzed to include a preset identifier, it can be determined that the current interface belongs to the interface to be verified. For example, in the process of using the application, by identifying the interface elements of the current interface of the application, and by analyzing the interface elements, when specific interface elements are included in the interface elements, a preset identifier is added to the current interface to indicate that the current interface belongs to the interface to be verified. The following provides corresponding embodiments to explain the specific content.

[0062] In some embodiments, before obtaining the interface information of the current interface, the method further includes:

[0063] When an application corresponding to the current interface is started, identifying a user interface included in the application;

[0064] For a target interface in the user interface that meets a preset condition, a preset identifier is added to the interface information of the target interface, wherein the preset condition indicates that the target interface is a user interface with a built-in keyboard interface.

[0065] When starting an application, the user interface included in the application is identified in advance to identify a target interface that meets a preset condition from the user interface, wherein the preset condition indicates a user interface with a built-in keyboard interface, the target interface is a user interface with a built-in keyboard interface, and the target interface can operate a built-in soft keyboard through the built-in keyboard interface. After identifying the target interface, a preset identifier can be added to the interface information of the target interface, so that after receiving the verification code, by analyzing whether the interface information of the current interface includes the preset identifier, it can be determined whether the current interface belongs to the interface to be verified.

[0066] Exemplarily, the preset conditions include: the user interface contains a specified interface element, or the user interface can call a built-in soft keyboard through a built-in keyboard interface, etc. Here is an example, for example, a verification code input box is used as a specified interface element, and when it is recognized that the user interface contains a verification code input box, it can be determined that the user interface belongs to the target interface.

[0067] In this embodiment, when the application is started, the user interface included in the application is identified, and then the target interface is identified from the user interface, and a preset identifier is added to the interface information of the target interface, so that the preset identifier indicates that the target interface belongs to the user interface with a built-in keyboard interface. This method can improve the efficiency of interface type discrimination of the current interface, and can flexibly selectively identify the target interface according to the currently running application. Compared with pre-identifying and identifying the user interfaces of all applications, the workload of identifying the target interface is reduced, and the operating efficiency of the system is improved.

[0068] As a further implementation, before displaying the current interface, it is also possible to identify whether the current interface is a target interface that meets the preset conditions based on the drawing information of the current interface, and if so, add a preset mark to the interface information of the current interface. After the current interface exits display or the application is closed, the preset mark can also be deleted to release the system's operating space and improve the system's operating efficiency.

[0069] In some embodiments, the identification application comprises a user interface including:

[0070] Identify interface elements of user interfaces;

[0071] If the interface elements include keyboard controls, it is determined that the user interface meets the preset conditions.

[0072] In this embodiment, the interface element including the keyboard control is used as a preset condition. When it is identified that the user interface includes the keyboard control, the user interface can be determined as a target interface that meets the preset condition, and then a preset mark is added to its interface information.

[0073] Among them, there are many ways to identify interface elements, for example, by identifying the position and shape of the interface element, and then searching the interface element list for the element name of the preset element that matches the position and shape, the interface element can be identified. For another example, the interface element is identified by a pre-trained neural network model, wherein the neural network model is trained by interface elements with element identifiers so that the neural network model learns the correspondence between the interface elements and the element identifiers. When the interface elements of the user interface are identified by the pre-trained neural network model, the interface elements can be classified according to the learned correspondence. It can be understood that the method of identifying interface elements is not limited to the content mentioned here, and more feasible implementation methods can also be applied to the present embodiment to realize the identification of interface elements, so as to judge whether the user interface meets the preset conditions according to the identification results.

[0074] Exemplarily, the preset condition may further include a verification code input box in addition to the keyboard control. That is, only when it is identified that the user interface includes both the keyboard control and the verification code input box, is it determined that the user interface belongs to the target interface. By using both the keyboard control and the verification code input box as preset conditions, it is possible to avoid misjudgment of the target interface and improve the accuracy of identifying the target interface.

[0075] See also Figure 3 , Figure 3 A schematic diagram of identifying a user interface in the method provided in an embodiment of the present application. Figure 3 In the figure, a user interface A in an application is shown. If the interface elements displayed on the user interface A include a keyboard control, the user interface A is determined to be the target interface, and a preset identifier can be added to the interface information of the user interface A. Figure 3 As shown, the interface elements covered by user interface A include a label of "Communication Itinerary Card", a text view of "Please enter the verification code", a text view of "Mobile phone number", a button of "Get verification code", and a keyboard control with "numeric keys", which are selected by dotted lines in the figure. By analyzing the position and shape of each interface element, it can be determined whether the interface element contains a keyboard control. For example, an interface element that is configured to be at the bottom of the user interface and has a rectangular shape is a keyboard control. If there is an interface element that meets the position and shape in the interface information of user interface A, the interface element can be determined as a keyboard control.

[0076] Furthermore, the size of the interface element can be combined to analyze whether the user interface A contains a keyboard control. For example, an interface element that is configured to be located at the bottom of the user interface and has a size that belongs to one of the size lists is a keyboard control, wherein the size list pre-stores the height and width data corresponding to different keyboard controls. If there is an interface element that meets the position and size in the interface information of the user interface A, the interface element can be determined to be a keyboard control, that is, it is recognized that the interface elements of the user interface A include a keyboard control, and then it is determined that the user interface A belongs to the target interface.

[0077] In this embodiment, the interface elements of the user interface are identified, and the user interface is analyzed based on the interface elements to determine whether it meets the preset conditions. When the user interface meets the preset conditions, the user interface is determined as the target interface, and a preset identifier is added to the target interface, wherein the preset identifier is used to indicate that the target interface is a user interface with a built-in keyboard interface. In this way, the interface type to which the user interface belongs can be effectively identified, and further, when it is determined that the current interface belongs to the interface to be verified, the verification code is automatically input into the verification code input box of the current interface by generating a simulated input instruction, thereby realizing automatic calling and input of the verification code, eliminating tedious manual operations, and greatly improving the efficiency of inputting the verification code.

[0078] In some embodiments, the simulated input instruction is used to instruct the current interface to input the verification code into the verification code input box. According to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface, including:

[0079] Send the simulated input instruction and the verification code to the current interface, instructing the current interface to input the verification code into the verification code input box through the keyboard interface.

[0080] In this embodiment, by generating a simulated input instruction and sending the simulated input instruction and the verification code to the current interface, after the current interface receives the simulated input instruction and the verification code, the current interface inputs the verification code into the verification code input box through the keyboard interface based on the simulated input instruction.

[0081] Specifically, the simulated input instruction supports the "input" behavior, and the verification code is input as text based on "input". When inputting the verification code, first locate the position of the verification code input box on the current interface, and then input the verification code into the code line for the verification code input box through the keyboard interface, specifically input it into the code line in the form of a text string, and the verification code can be displayed in the verification code input box by running the code.

[0082] In this embodiment, by simulating the input instruction so that the current interface inputs the verification code into the verification code input box, the verification code is automatically input in the current interface with a built-in keyboard interface by simulating the user operation, avoiding the disadvantages of the related art that the system's built-in input communication interface cannot be called in the user interface with a built-in keyboard interface, and also avoiding the disadvantage of low efficiency of verification code input caused by the need to call the built-in soft keyboard through the built-in keyboard interface to manually control the soft keyboard to input the verification code. By automatically inputting the verification code in the user interface with a built-in keyboard interface, the efficiency of inputting the verification code is improved, more user interfaces can be compatible, and the needs of users for identity authentication when facing various applications are met, which brings convenience to users.

[0083] In some embodiments, the simulated input instruction is used to input the verification code into the verification code input box. According to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface, including:

[0084] Execute the simulated input instruction to generate a simulated input operation for the keyboard interface, and input the verification code into the verification code input box through the simulated input operation.

[0085] In this embodiment, the simulated input instruction is used to simulate a click event on a keyboard key, and the click event on the corresponding keyboard key included in the simulated input instruction can be determined according to the verification code. Among them, by executing the simulated input instruction, the simulated input operation for the keyboard interface can be triggered. The keyboard interface is associated with the soft keyboard that comes with the current interface. When the simulated input operation is performed on the keyboard interface, it can be regarded as transferring the simulated input operation to the soft keyboard that comes with the current interface through the keyboard interface to trigger clicking the keyboard key on the soft keyboard corresponding to the simulated input operation. When the corresponding keyboard key is clicked, the corresponding verification code is synchronously displayed in the verification code input box of the current interface.

[0086] In this embodiment, by executing the simulated input instruction to generate a simulated input operation for the keyboard interface, the keyboard key corresponding to the verification code is triggered, and the verification code is input into the verification input box. In this way, by automatically inputting the verification code into the verification code input box, the efficiency of inputting the verification code is improved, the process of verification through the verification code is accelerated, and the user experience is improved.

[0087] In some embodiments, according to the simulated input instruction, before inputting the verification code into the verification code input box of the current interface through the keyboard interface, the method further includes:

[0088] Display prompt information, which is used to prompt whether to enter the verification code into the verification code input box;

[0089] According to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface, including:

[0090] In response to a determination operation on the prompt information, a verification code is input into the verification code input box through a keyboard interface according to a simulated input instruction.

[0091] Among them, before entering the verification code into the verification code input box through the keyboard interface, the user can also be prompted, that is, prompt information is output or displayed, and the prompt information is used to prompt the user that the verification code has been obtained and whether the verification code needs to be entered into the verification code input box.

[0092] For example, the prompt information can be displayed in a pop-up box, voice, text, etc. For example, a prompt button is popped up to prompt whether to enter the verification code into the verification code input box. For another example, a prompt sound is emitted to prompt whether to enter the verification code into the verification code input box. The prompt sound can be a vibration, a ringtone, an audio content, etc.

[0093] After the prompt information is displayed, a virtual button for the prompt information is displayed on the current interface. The virtual button may be an "OK" button. When the user clicks the "OK" button to confirm, it is deemed that the user confirms that the verification code needs to be entered into the verification code input box. Then, according to the simulated input instruction, the verification code is entered into the verification code input box through the keyboard interface.

[0094] It is understandable that the display duration of the "OK" button can also be set. After reaching the display duration, the "OK" button is cancelled and the obtained verification code is discarded. Among them, the display duration can be consistent with the effective duration of the verification code indicated by the verification code input box. Of course, the virtual buttons corresponding to the prompt information can also include a "Cancel" button. When the user performs a cancel operation by clicking the "Cancel" button, it is deemed that the user does not need to enter the verification code into the verification code input box, and the obtained verification code can be discarded, or the current interface can be exited, or the current interface can be reset to the state before the mobile phone number is entered.

[0095] In this embodiment, by displaying a prompt message to prompt the user whether to input the verification code into the verification code input box of the current interface, the user can promptly learn the obtained verification code and decide whether to continue to perform the verification operation through the verification code according to actual needs, thereby avoiding the verification code from being triggered by mistake and improving the security of verification through the verification code. On the other hand, it is also convenient for the user to choose whether to input the verification code according to actual needs, thereby improving the flexibility of verification code input.

[0096] In some embodiments, the prompt information includes a verification code. In the case where the prompt information includes a verification code, displaying the prompt information is displaying the verification code, for example, displaying a pop-up box of the verification code, voice broadcasting the verification code, text displaying the verification code, etc.

[0097] By displaying the verification code before entering it into the verification code input box, users can easily understand the specific content of the verification code. In the process where voice verification is required, users can also perform voice verification by reading the displayed verification code aloud or perform voice-to-text operations, making the method of verification through verification codes more flexible.

[0098] In some embodiments, displaying prompt information includes:

[0099] According to the interface position of the verification code input box, the display area is determined from the current interface;

[0100] The verification code is displayed in the display area.

[0101] Among them, before displaying the prompt information, the display area can be determined from the current interface. Specifically, by identifying the interface position of the verification code input box, the display area is determined around the interface position. For example, the display area is selected from the middle position of the verification code input box, and the display area is selected from the blank position on the right side of the verification code input box. It can be understood that the display area can be any blank position around the verification code input box, and the size of the display area can be adaptively adjusted according to the character size of the verification code, or adaptively adjusted according to the character size associated with the verification code input box.

[0102] For example, after determining the size and position of the display area, the position of the display area can be fine-tuned according to the stacking relationship between the interface elements so that the display area does not overlap with other interface elements to fully display the display area. For example, by fine-tuning the position of the display area, the display area does not block the keyboard control on the current interface.

[0103] Furthermore, after determining the display area, the display area can be filled with color according to the interface color of the current interface, so that the display area is highlighted on the current interface, making it easy for the user to find the display area, thereby quickly knowing the specific content of the verification code from the display area. Specifically, the display area can be filled with an inverse color corresponding to the main color of the current interface.

[0104] See also Figure 4 , Figure 4 A schematic diagram of determining a display area in a method provided in an embodiment of the present application. Figure 4 (a) shows the layout of the current interface before the display area is determined. Figure 4(b) shows the layout of the current interface after the display area is determined. Figure 4 In (a), the area near the verification code input box is circled from the blank area, and after determining the size of the display area, the position of the display area is located from the circled area. The display area is selected by a dotted line in the figure. Figure 4 In (b), after determining the position of the display area, the position of the display area is moved so that the display area and the keyboard control do not overlap, so as to fully display the display area and the keyboard control, and then the verification code is displayed in the display area. Figure 4 In (b), the verification code is "123456", and an "OK" button is also included in the display area, represented by an arrow. After the user operates the "OK" button, the verification code can be entered into the verification code input box.

[0105] In this embodiment, a display area is determined in the current interface so that the display area does not block other interface elements of the current interface and can also be highlighted. After the verification code is displayed in the display area, it is convenient for the user to quickly find the verification code and perform further operations.

[0106] In some embodiments, after displaying the prompt information, the method further includes:

[0107] Identify the interface status of the current interface;

[0108] If the interface status changes, stop displaying the prompt information.

[0109] Among them, the method of identifying the interface state includes but is not limited to: identifying whether a specific interface element has changed, and determining that the interface state has changed when the specific interface element has changed. Alternatively, identifying the interface content of the current interface, and determining that the interface state has changed when the interface content changes to interface content including preset content. Alternatively, determining that the interface state has changed when the current interface changes from a display state to a hidden state. The following embodiments are described in detail.

[0110] As an implementation, the specific interface element may be a status bar for obtaining a verification code, wherein the valid time for obtaining the verification code is displayed in the status bar for obtaining the verification code, and a countdown is displayed. When the countdown ends, the status bar for obtaining the verification code changes, and it is determined that the interface state of the current interface has changed.

[0111] As another implementation, the preset content may be "obtain verification code", that is, when the interface content displayed in the status bar for obtaining the verification code includes "obtain verification code", it is determined that the interface state of the current interface has changed.

[0112] As another implementation, the interface state may include a display state and a hidden state, wherein the display state indicates that the current interface is displayed on the display screen of the electronic device, and the hidden state indicates that the current interface is running in the background or closed. When the interface state changes from the display state to the hidden state, it is determined that the interface state of the current interface has changed.

[0113] In this embodiment, when the interface state of the current interface changes, the prompt information is stopped from being displayed and the prompt information and the interface state are switched synchronously, thereby avoiding the inconsistency between the prompt information known to the user and the interface state, thereby effectively controlling the display timing of the prompt information and improving the accuracy and effectiveness of the display of the prompt information.

[0114] In some embodiments, identifying the interface state of the current interface includes:

[0115] Determine whether the interface status broadcast notification of the current interface is received. The interface status broadcast notification is sent when the interface status of the current interface changes;

[0116] If so, it is determined that the interface state of the current interface has changed.

[0117] In this embodiment, a user interface pre-configured with a built-in keyboard interface broadcasts a notification when its interface state changes. The broadcast notification of the interface state change is referred to as an interface state broadcast notification in this embodiment. After the system receives the interface state broadcast notification, it can be informed that the interface state of the current interface has changed.

[0118] Among them, the interface status of the current interface is known by judging whether the interface status broadcast notification of the current interface is received, which can effectively monitor the state changes of the current interface, so that when the interface status of the current interface changes, the display or cancellation of the prompt information is controlled, thereby improving the flexibility of controlling the prompt information.

[0119] For example, the interface status broadcast notification may be issued when the valid time for obtaining the verification code expires. When the system receives the interface status broadcast notification, it is known that the verification code has expired and it is necessary to re-operate the current interface to change the interface status of the current interface. For example, the interface status of the current interface is changed by performing the operation of re-obtaining the verification code.

[0120] See also Figure 5 , Figure 5 A schematic diagram of a change in the interface state of a current interface in a method provided in an embodiment of the present application. Figure 5 (a) The time displayed in the status bar of the verification code acquisition is within the valid time, and the displayed content is "Countdown - 10s", Figure 5(b) It is shown that the effective time displayed in the status bar of obtaining the verification code has expired, and the content displayed in the status bar of obtaining the verification code is "obtaining the verification code". When the effective time expires, it can be determined that the interface state of the current interface has changed.

[0121] In this embodiment, by sending an interface status broadcast notification when the valid time of the verification code expires, when the interface status broadcast notification is received, it is determined that the interface status of the current interface has changed, and the displayed verification code can be cancelled or the verification code that has been obtained can be ignored. By processing the verification code in time, it is avoided to affect the next verification.

[0122] In summary, the above embodiments describe in detail the determination of whether the current interface is an interface to be verified, and when the current interface is an interface to be verified, the verification code is automatically input into the verification code input box of the current interface by generating a simulated input instruction. Figure 6 , Figure 6 A detailed flow chart of the verification code input method provided in the embodiment of the present application. Figure 6 Taking the itinerary code applet as an example, the specific content is as follows:

[0123] 201. Start the Travel Code applet to request a verification code. The user starts the Travel Code applet by operating the mobile phone. The user interface displayed by the Travel Code applet is called the current interface. There is an input field for the mobile phone number in the current interface. After entering the mobile phone number into the input field, the verification code can be requested from the operator through the mobile phone number. The verification code is sent in the form of a text message.

[0124] 202. When starting the Travel Code applet, identify the target interface from the user interface included therein, and add a preset identifier to the target interface. When starting the Travel Code applet, also identify the interface elements of the various user interfaces included in the Travel Code applet, so that when the interface elements include a keyboard control, the user interface including the keyboard control is determined as the target interface, and a preset identifier is added to the target interface, the preset identifier is used to indicate that the user interface has a built-in keyboard interface.

[0125] 203. In response to the received verification code, obtain interface information of the current interface.

[0126] After receiving the SMS sent by the operator, the SMS platform identifies the SMS content, broadcasts a notification after identifying the verification code, and transmits the verification code.

[0127] After receiving the verification code, the system obtains the interface information of the current interface and analyzes the interface information to obtain the analysis result. If the analysis result indicates that the interface information includes a preset identifier, it can be determined that the current interface is a verification interface that requires a verification code and has a keyboard interface.

[0128] 204. When the current interface is an interface to be verified, a display area is determined from the current interface according to the interface position of the verification code input box of the current interface, and prompt information is displayed in the display area.

[0129] The displayed information is used to prompt the user whether to input the obtained verification code into the verification code input box of the current interface.

[0130] 205. Identify the interface state of the current interface, and stop displaying the prompt information when the interface state changes.

[0131] After displaying the display information in the display area, it is also detected whether the interface state of the current interface has changed by determining whether the interface state broadcast notification of the current interface has been received. If the interface state broadcast notification is received, it is determined that the interface state of the current interface has changed, and the prompt information is stopped from being displayed in the display area.

[0132] 206 . In response to a confirmation operation on the prompt information, the verification code is input into the verification code input box through a keyboard interface according to a simulated input instruction generated by the verification code.

[0133] As mentioned in the above embodiments, the user interface can be divided into a first type of user interface with a built-in keyboard interface, and a second type of user interface without a built-in keyboard interface. Among them, the second type of user interface refers to a user interface that can call the input communication interface that comes with the system. In the case where it is determined that the current interface does not belong to the first user interface in the manner mentioned in the above embodiments, the interface type of the current interface can be further determined to determine whether it belongs to the second type of user interface. Of course, it is also possible to first determine whether the current interface belongs to the second type of user interface. If it does not belong to the second user interface, continue to determine whether it belongs to the first type of user interface. In this embodiment, the order of determining the type to which the current interface belongs is not limited. In the following embodiments, a step of entering a verification code when the current interface belongs to the second type of user interface is provided.

[0134] In some embodiments, when it is determined that the current interface does not belong to the interface to be verified with a built-in keyboard interface, the following steps are further performed:

[0135] 105. Determine whether the current interface can call the input communication interface provided by the system;

[0136] If yes, input the verification code into the verification code input box of the current interface by calling the input communication interface provided by the system;

[0137] If not, the verification code is determined to be invalid.

[0138] Among them, when it is determined that the current interface can call the input communication interface provided by the system, it can be determined that the current interface belongs to the second type of user interface that requires verification code input. At this time, the verification code can be transferred to the verification code input box of the current interface by calling the input communication interface provided by the system. Automatic input of verification code in the second type of user interface is realized.

[0139] Of course, before the verification code is passed to the verification code input box by calling the input communication interface provided by the system, the prompt information can be displayed first, wherein the prompt information is provided in the manner mentioned in the above embodiment and will not be repeated here. In addition, after the prompt information is displayed, in response to the confirmation operation on the prompt information, the step of inputting the verification code into the verification code input box by calling the input communication interface provided by the system is executed.

[0140] In addition, how to display the prompt information and whether to stop displaying it can also refer to the above-mentioned content, which will not be repeated here.

[0141] For example, after determining whether the current interface can call the input communication interface of the system, if it still cannot be called, in this case, the verification code is determined to be invalid, and the obtained verification code can be ignored, or the SMS platform can be notified to delete the SMS about the verification code. In this way, the verification code is prevented from occupying too much running space.

[0142] The verification code input method used varies depending on the interface type of the current interface. For details, please refer to Figure 7 , Figure 7 This is a flow chart of inputting a verification code according to the interface type to which the current interface belongs in the method provided in the embodiment of the present application. The specific steps are as follows:

[0143] 301. Respond to the received verification code.

[0144] 302. Determine the interface type to which the current interface belongs. If the interface information of the current interface includes a preset identifier, determine that the current interface belongs to the first type of user interface with a built-in keyboard interface. If the current interface can call the input communication interface of the system, determine that the current interface belongs to the second type of user interface that does not have a built-in keyboard interface and can call the input communication interface of the system.

[0145] If the current interface belongs to the first type of user interface, 303 is executed to generate a simulated input instruction according to the verification code, so as to input the verification code into the verification code input box of the current interface according to the simulated input instruction.

[0146] If the current interface belongs to the second type of user interface, execute 304 to input the verification code into the verification code input box of the current interface by calling the input communication interface provided by the system.

[0147] As can be seen from the above, the verification code input method proposed in the embodiment of the present invention obtains the interface information of the current interface to determine whether the current interface belongs to the interface to be verified with a built-in keyboard interface according to the interface information, thereby realizing effective identification of the current interface. When the current interface belongs to the interface to be verified, a simulation input instruction is generated according to the verification code, and the verification code is input into the verification code input box of the current interface through the keyboard interface according to the simulation input instruction, thereby realizing automatic input of the verification code into the verification code input box belonging to the interface to be verified, which is convenient for users to use. In addition, before the verification code is input into the verification code input box, prompt information is first displayed to prompt the user whether to input the verification code into the verification code input box. The prompt information can timely remind the user that the verification code has been obtained, and it is convenient for the user to decide whether to continue to perform the verification operation through the verification code according to actual needs, avoiding the verification code from being triggered by mistake to perform the verification operation, and improving the security and flexibility of verification through the verification code. Secondly, the display and cancellation of the prompt information are flexibly controlled according to the change of the interface state of the current interface, and the accuracy and effectiveness of displaying the prompt information are improved by effectively controlling the display timing of the prompt information.

[0148] In one embodiment, a verification code input device is also provided. Figure 8 , Figure 8 The structure diagram of the verification code input device 400 provided in the embodiment of the present application is as follows: The verification code input device 400 is applied to an electronic device, and the verification code input device 400 includes an information acquisition module 401, an interface recognition module 402, an instruction generation module 403 and an input control module 404, as follows:

[0149] The information acquisition module 401 is used to acquire the interface information of the current interface in response to the received verification code;

[0150] The interface identification module 402 is used to determine whether the current interface is a to-be-verified interface with a built-in keyboard interface according to the interface information;

[0151] The instruction generation module 403 is used to generate a simulated input instruction according to the verification code;

[0152] The input control module 404 is used to input the verification code into the verification code input box of the current interface through the keyboard interface according to the simulated input instruction.

[0153] In some embodiments, the interface identification module 402 is further used to:

[0154] Analyze the interface information and obtain the analysis results;

[0155] If the analysis result indicates that the interface information includes a preset identifier, it is determined that the current interface belongs to an interface to be verified.

[0156] In some embodiments, the verification code input device 400 further includes an interface identification module. Before acquiring the interface information of the current interface, the interface identification module is used to:

[0157] When an application corresponding to the current interface is started, identifying a user interface included in the application;

[0158] For a target interface in the user interface that meets a preset condition, a preset identifier is added to the interface information of the target interface, wherein the preset condition indicates that the target interface is a user interface with a built-in keyboard interface.

[0159] In some embodiments, the interface identification module is further used to:

[0160] Identify interface elements of user interfaces;

[0161] If the interface elements include keyboard controls, it is determined that the user interface meets the preset conditions.

[0162] In some embodiments, the simulated input instruction is used to instruct the current interface to input the verification code into the verification code input box, and the input control module 404 is further used to:

[0163] Send the simulated input instruction and the verification code to the current interface, instructing the current interface to input the verification code into the verification code input box through the keyboard interface.

[0164] In some embodiments, the simulated input instruction is used to input the verification code into the verification code input box, and the input control module 404 is further used to:

[0165] Execute the simulated input instruction to generate a simulated input operation for the keyboard interface, and input the verification code into the verification code input box through the simulated input operation.

[0166] In some embodiments, the verification code input device 400 further includes an information prompt module. Before the verification code is input into the verification code input box of the current interface through the keyboard interface according to the simulated input instruction, the information prompt module is used to:

[0167] Display prompt information, which is used to prompt whether to enter the verification code into the verification code input box;

[0168] The input control module 404 is also used to:

[0169] In response to a determination operation on the prompt information, a verification code is input into the verification code input box through a keyboard interface according to a simulated input instruction.

[0170] In some embodiments, the prompt information includes a verification code, and the information prompt module is further used to:

[0171] According to the interface position of the verification code input box, the display area is determined from the current interface;

[0172] The verification code is displayed in the display area.

[0173] In some embodiments, after displaying the prompt information, the information prompt module is further used to:

[0174] Identify the interface status of the current interface;

[0175] If the interface status changes, stop displaying the prompt information.

[0176] In some embodiments, the information prompt module is further used to:

[0177] Determine whether the interface status broadcast notification of the current interface is received. The interface status broadcast notification is sent when the interface status of the current interface changes;

[0178] If so, it is determined that the interface state of the current interface has changed.

[0179] It should be noted that the verification code input device 400 provided in the embodiment of the present application belongs to the same concept as the verification code input method in the above embodiment. Any method provided in the verification code input method embodiment can be implemented through the verification code input device 400. The specific implementation process is detailed in the verification code input method embodiment, which will not be repeated here.

[0180] As can be seen from the above, the verification code input device 400 proposed in the embodiment of the present application obtains the interface information of the current interface to determine whether the current interface belongs to the interface to be verified with a built-in keyboard interface according to the interface information, thereby realizing effective identification of the current interface. And when the current interface belongs to the interface to be verified, a simulated input instruction is generated according to the verification code, and according to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface, thereby realizing automatic input of the verification code into the verification code input box belonging to the interface to be verified, which is convenient for users to use. In addition, before the verification code is input into the verification code input box, a prompt message is first displayed to prompt the user whether to input the verification code into the verification code input box. The prompt message can timely remind the user that the verification code has been obtained, and it is convenient for the user to decide whether to continue to perform the verification operation through the verification code according to actual needs, avoiding the false triggering of the verification code for verification operation, and improving the security and flexibility of verification through the verification code. Secondly, the display and cancellation of the prompt information are flexibly controlled according to the change of the interface state of the current interface, and the accuracy and effectiveness of the display of the prompt information are improved by effectively controlling the display timing of the prompt information.

[0181] The present application also provides an electronic device, which may be a smart phone, a folding screen phone, a tablet computer, a PDA, a laptop computer, a desktop computer, or a smart home device, a smart wearable device, etc. Among them, smart home devices include, for example, smart mirrors, smart TVs, smart screens, etc., and smart wearable devices include, for example, smart watches, smart bracelets, smart glasses, etc. Fig. 9 As shown, Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 500 includes a processor 501 having one or more processing cores, a memory 502 having one or more computer-readable storage media, and a computer program stored in the memory 502 and executable on the processor. The processor 501 is electrically connected to the memory 502. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.

[0182] The processor 501 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device 500, executes various functions of the electronic device 500 and processes data by running or loading software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, thereby monitoring the electronic device 500 as a whole.

[0183] In the embodiment of the present application, the processor 501 in the electronic device 500 will load instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 will run the application programs stored in the memory 502 to implement various functions:

[0184] In response to the received verification code, obtaining interface information of the current interface;

[0185] According to the interface information, determine whether the current interface belongs to the interface to be verified with a built-in keyboard interface;

[0186] If yes, generate simulated input instructions according to the verification code;

[0187] According to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface.

[0188] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0189] Optional, such as Fig. 9 As shown, the electronic device 500 further includes: a touch screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. The processor 501 is electrically connected to the touch screen 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507, respectively. Those skilled in the art can understand that Fig. 9 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0190] The touch display screen 503 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 503 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 501, and can receive the command sent by the processor 501 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 501 to determine the type of touch event, and then the processor 501 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 503 to realize the input and output functions. However, in some embodiments, the touch panel and the display panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 503 can also be used as a part of the input unit 506 to realize the input function.

[0191] The radio frequency circuit 504 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals between the network device or other electronic devices.

[0192] The audio circuit 505 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 505 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 505 and converted into audio data, and then the audio data is output to the processor 501 for processing, and then sent to another electronic device through the radio frequency circuit 504, or the audio data is output to the memory 502 for further processing. The audio circuit 505 may also include an earplug jack to provide communication between an external headset and an electronic device.

[0193] The input unit 506 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0194] The power supply 507 is used to supply power to various components of the electronic device 500. Optionally, the power supply 507 can be logically connected to the processor 501 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 507 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0195] although Fig. 9 Not shown, the electronic device 500 may also include a camera, a sensor, a WIFI module, a Bluetooth module, etc., which will not be described in detail here.

[0196] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0197] As can be seen from the above, the electronic device provided by the present embodiment obtains the interface information of the current interface to determine whether the current interface belongs to the interface to be verified with a built-in keyboard interface according to the interface information, thereby realizing effective identification of the current interface. When the current interface belongs to the interface to be verified, a simulated input instruction is generated according to the verification code, and according to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface, thereby realizing automatic input of the verification code into the verification code input box belonging to the interface to be verified, which is convenient for users to use. In addition, before the verification code is input into the verification code input box, a prompt message is first displayed to prompt the user whether to input the verification code into the verification code input box. The prompt message can timely remind the user that the verification code has been obtained, and it is convenient for the user to decide whether to continue to perform the verification operation through the verification code according to actual needs, avoiding the false triggering of the verification code for the verification operation, and improving the security and flexibility of verification through the verification code. Secondly, the display and cancellation of the prompt information are flexibly controlled according to the change of the interface state of the current interface, and the accuracy and effectiveness of the display of the prompt information are improved by effectively controlling the display timing of the prompt information.

[0198] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0199] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any verification code input method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0200] In response to the received verification code, obtaining interface information of the current interface;

[0201] According to the interface information, determine whether the current interface belongs to the interface to be verified with a built-in keyboard interface;

[0202] If yes, generate simulated input instructions according to the verification code;

[0203] According to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface.

[0204] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0205] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. Since the computer program stored in the storage medium can execute the steps in any verification code input method provided in the embodiments of the present application, the beneficial effects that can be achieved by any verification code input method provided in the embodiments of the present application can be achieved, as detailed in the previous embodiments, which will not be repeated here.

[0206] The above is a detailed introduction to a verification code input method, device, medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A verification code input method, characterized in that: include: In response to the received verification code, obtaining interface information of the current interface; Determine, based on the interface information, whether the current interface is an interface to be verified with a built-in keyboard interface; If yes, generating a simulated input instruction according to the verification code; According to the simulated input instruction, the verification code is input into the verification code input box of the current interface through the keyboard interface.

2. The verification code input method according to claim 1, characterized in that: The determining, according to the interface information, whether the current interface belongs to an interface to be verified with a built-in keyboard interface includes: Analyze the interface information to obtain analysis results; If the analysis result indicates that the interface information includes a preset identifier, it is determined that the current interface belongs to the interface to be verified.

3. The verification code input method according to claim 2, characterized in that: Before obtaining the interface information of the current interface, the method further includes: When an application corresponding to the current interface is started, identifying a user interface included in the application; For a target interface in the user interface that meets a preset condition, the preset identifier is added to the interface information of the target interface, wherein the preset condition indicates that the target interface is a user interface with a built-in keyboard interface.

4. The verification code input method according to claim 3, characterized in that: The identifying the user interface included in the application comprises: Identifying interface elements of the user interface; If the interface elements include a keyboard control, it is determined that the user interface meets the preset condition.

5. The verification code input method according to claim 1, wherein: The simulated input instruction is used to instruct the current interface to input the verification code into the verification code input box, and the step of inputting the verification code into the verification code input box of the current interface through the keyboard interface according to the simulated input instruction includes: The simulated input instruction and the verification code are sent to the current interface, instructing the current interface to input the verification code into the verification code input box through the keyboard interface.

6. The verification code input method according to claim 1, wherein: The simulated input instruction is used to input the verification code into the verification code input box, and the step of inputting the verification code into the verification code input box of the current interface through the keyboard interface according to the simulated input instruction includes: The simulated input instruction is executed to generate a simulated input operation for the keyboard interface, and the verification code is input into the verification code input box through the simulated input operation.

7. The verification code input method according to any one of claims 1 to 6, characterized in that: Before inputting the verification code into the verification code input box of the current interface through the keyboard interface according to the simulated input instruction, the method further includes: Displaying prompt information, wherein the prompt information is used to prompt whether to input the verification code into the verification code input box; The step of inputting the verification code into the verification code input box of the current interface through the keyboard interface according to the simulated input instruction includes: In response to a determination operation on the prompt information, the verification code is input into the verification code input box through the keyboard interface according to the simulated input instruction.

8. The verification code input method according to claim 7, characterized in that: The prompt information includes the verification code, and the display prompt information includes: Determining a display area from the current interface according to the interface position of the verification code input box; The verification code is displayed in the display area.

9. The verification code input method according to claim 7, characterized in that: After displaying the prompt information, the method further includes: Identifying the interface state of the current interface; If the interface state changes, the prompt information is stopped from being displayed.

10. The verification code input method according to claim 9, characterized in that: The identifying the interface state of the current interface includes: Determining whether an interface status broadcast notification of the current interface is received, wherein the interface status broadcast notification is issued when the interface status of the current interface changes; If so, it is determined that the interface state of the current interface has changed.

11. A verification code input device, characterized in that: include: An information acquisition module, used to acquire interface information of the current interface in response to the received verification code; An interface identification module, used to determine whether the current interface is an interface to be verified with a built-in keyboard interface according to the interface information; an instruction generating module, for generating a simulated input instruction according to the verification code; The input control module is used to input the verification code into the verification code input box of the current interface through the keyboard interface according to the simulated input instruction.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed on a computer, the computer is enabled to execute the verification code input method according to any one of claims 1 to 10.

13. An electronic device comprising a processor and a memory, wherein the memory stores a computer program, characterized in that: The processor is configured to execute the verification code input method according to any one of claims 1 to 10 by calling the computer program.