Program processing method and apparatus, and electronic device

By automatically executing the processing of the second program when an event occurs on the interface of the first program, the problem of cumbersome program switching operations in the prior art is solved, and a more efficient program usage experience is achieved.

WO2024193371A1PCT designated stage expired Publication Date: 2024-09-26VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080888
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2024-03-11
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

When users need to switch between different programs, existing electronic devices are cumbersome and time-consuming to operate, and cannot be automated, resulting in poor user experience.

Method used

When an event occurs on the interface of the first program, the target processing of the second program is automatically performed without the need for manual switching by the user. The display module is used to display the interface of the first program, and the processing module performs the target processing when an event occurs.

Benefits of technology

It simplifies the operation process of program processing, improves the efficiency of program use, and reduces the user's switching time between different programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080888_26092024_PF_FP
    Figure CN2024080888_26092024_PF_FP
Patent Text Reader

Abstract

The present application relates to the technical field of electronics, and discloses a program processing method and apparatus, and an electronic device. The method comprises: displaying a first interface of a first program; and when a first program event occurs on the first interface, performing target processing on a second program, wherein the target processing is determined on the basis of the first program event.
Need to check novelty before this filing date? Find Prior Art

Description

Program processing method, device and electronic equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application No. 202310259422.X filed in China on March 17, 2023, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application belongs to the field of electronic technology, and specifically relates to a program processing method, device and electronic equipment. Background Art

[0004] With the rapid development of electronic technology, electronic devices have been widely used. Electronic devices usually have various programs installed, and users often use various different programs when using electronic devices.

[0005] Currently, when a user is using a program and needs to use another program, the user needs to perform a program switching operation to trigger the electronic device to switch the program interface of the other program to the foreground for display and operation. For example, when a user is watching a video using a video playback program, the network status of the electronic device is relatively poor, making it impossible to load the video. At this time, the user can only give up watching the current video and use other programs. For example, when a user ends a chat on an instant messaging program, the user needs to perform a program switching operation to switch the electronic device to the video playback program for the user to watch the video, or switch to the audio playback program for the user to activate the audio playback control.

[0006] Currently, when using a program, if a user needs to use other programs, the user is usually required to manually switch back and forth between multiple programs, which is cumbersome and time-consuming.

[0007] Summary of the Invention

[0008] The purpose of the embodiments of the present application is to provide a program processing method, device and electronic device, which, when a first program event occurs on a first interface of a first program, performs target processing on a second program without manually switching between programs to process the second program, thereby simplifying the program processing operation and improving the efficiency of program use.

[0009] In a first aspect, an embodiment of the present application provides a program processing method, the method comprising:

[0010] displaying a first interface of a first program;

[0011] When a first program event occurs on the first interface, executing a target process on the second program;

[0012] The target processing is determined according to the first program event.

[0013] In a second aspect, an embodiment of the present application provides a program processing device, the device comprising:

[0014] A display module, configured to display a first interface of a first program;

[0015] a processing module, configured to execute target processing on a second program when a first program event occurs on the first interface;

[0016] The target processing is determined according to the first program event.

[0017] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the program processing method described in the first aspect.

[0018] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the program processing method described in the first aspect are implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the program processing method described in the first aspect.

[0020] In an embodiment of the present application, a first interface of a first program is displayed; when a first program event occurs on the first interface, a target process is executed on a second program. Thus, when a first program event occurs on the first interface of the first program during use of the first program, the target process is executed on the second program, eliminating the need to manually switch between programs to process the second program. This simplifies program processing operations and improves program usage efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] FIG1 is a flowchart of a program processing method provided by some embodiments of the present application;

[0022] FIG2( a ) is a schematic diagram of an interface in which a first program event occurs in a conversation interface provided by some embodiments of the present application;

[0023] FIG2( b ) is a schematic diagram of an interface switched to be displayed when a first program event occurs in a conversation interface provided by some embodiments of the present application;

[0024] FIG2( c ) is a schematic diagram of a process interface for user-defined program events provided by some embodiments of the present application;

[0025] FIG3 is a schematic diagram of an interface in which a first program event occurs in a novel reading interface provided by some embodiments of the present application;

[0026] FIG4( a ) is a schematic diagram of an interface in which a first program event occurs in a settings interface provided by some embodiments of the present application;

[0027] FIG4( b ) is a schematic diagram of an interface switched to be displayed when a first program event occurs in a setting interface provided by some embodiments of the present application;

[0028] FIG5 is a schematic diagram of a display interface in which data loading of a playback interface is in a target loading state provided by some embodiments of the present application;

[0029] FIG6 is a schematic diagram of an application scenario interface of a video viewing process provided by some embodiments of the present application;

[0030] FIG7 is a schematic diagram of a trigger display interface for program event options provided in some embodiments of the present application;

[0031] FIG8 is a schematic diagram of an interface for associating program events and program processing provided by some embodiments of the present application;

[0032] FIG9 is a schematic diagram of an interface for associating program events and program processing provided by some embodiments of the present application;

[0033] FIG10 is a schematic diagram of a trigger display interface for program event options provided in some embodiments of the present application;

[0034] FIG11 is a schematic diagram of an interface for associating program events and program processing provided by some embodiments of the present application;

[0035] FIG12 is a schematic diagram of a process interface for setting a one-to-many event subscription distribution mode provided by some embodiments of the present application;

[0036] FIG13 is a schematic diagram of a process interface of program processing in a one-to-many event subscription distribution mode provided by some embodiments of the present application;

[0037] FIG14 is a structural diagram of a program processing device provided by some embodiments of the present application;

[0038] FIG15 is a structural diagram of an electronic device provided by some embodiments of the present application;

[0039] FIG16 is a schematic diagram of the hardware structure of an electronic device provided to implement some embodiments of the present application. DETAILED DESCRIPTION

[0040] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0041] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0042] Below, in combination with the accompanying drawings, the program processing method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios, wherein the application scenario of the program processing method can be a multi-program usage scenario, that is, the electronic device can be installed with multiple programs, and the user needs to use between multiple programs.

[0043] The electronic device in the embodiment of the present application has an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0044] FIG1 is a flowchart of a program processing method provided in an embodiment of the present application, as shown in FIG1 , including the following steps:

[0045] Step 101: Display a first interface of a first program.

[0046] In this step, the display interface may be an interface of the electronic device, which may typically display the main interface of the operating system of the electronic device, and the main interface may display program icons of various programs installed on the electronic device. For example, the main interface may display program icons of an instant messaging program, a multimedia player program, and a settings program.

[0047] When a program is running, such as a first program, the display interface may display a first interface of the first program. The first program may be any program installed on the electronic device, such as an instant messaging program, a multimedia player, or a settings program. The first interface may be any program interface of the first program, such as the main interface of the first program, or a specific running interface of the first program, such as a conversation interface with a target contact in an instant messaging program or a playback interface of a target multimedia in a multimedia player.

[0048] In some embodiments of the present application, a user can click on a program icon of a first program in the main interface of an operating system of an electronic device, and accordingly, a first interface of the first program can be displayed on a display interface of the electronic device. In other embodiments of the present application, if the first program is running in the background, the user can switch between different programs by inputting into the first program, such as swiping upward to call up the interface of the program running in the background, and accordingly, the first interface of the first program can be displayed on the display interface of the electronic device.

[0049] Step 102, when the first program event occurs on the first interface, target processing is performed on the second program; in this way, when the first program event is detected to occur on the first interface of the first program, target processing is automatically performed on the second program without manual triggering by the user.

[0050] The target processing is determined according to the first program event.

[0051] In this step, program events refer to events that occur in the interface of the program when the program is running. For example, information is displayed in the program control of the program interface when the program is running, a program control in the program interface is triggered, the control state of the program control changes, the data loading state of the interface changes, etc. Any type of event that occurs in the interface of the program when the program is running can be called a program event.

[0052] In the embodiment of the present application, the first program event is an event that occurs in the first interface when the first program is running. The event may be preset by the user or preset by the system. Optionally, the first program event preset by the user or preset by the system includes at least one of the following:

[0053] Displaying target information in the program control in the first interface;

[0054] The program control in the first interface receives a control input;

[0055] The control state of the program control in the first interface is updated to the target control state;

[0056] The data loading state of the target data in the first interface is a target loading state, wherein in the target loading state, the loading speed of the target data is less than a speed threshold.

[0057] It should be noted that before executing the target processing on the second program and in the process of displaying the first interface, the program events occurring on the first interface can be monitored to determine whether the first program event has occurred on the first interface. In some embodiments of the present application, the program processing device in the embodiment of the present application can store relevant data of the first program event, for example, it can store program controls related to the first program event in the interface, display information related to the first program event in the program controls, control states of program controls related to the first program event, or data in the interface related to the first program event. Data loading status. Accordingly, by monitoring the program events occurring on the first interface, it can be determined based on the relevant data whether the program event occurring on the first interface is the first program event. If the program event occurring on the first interface is the first program event, it is detected that the first program event has occurred on the first interface. The program processing device can monitor the program events occurring on the interface in real time or at preset intervals, for example, monitor the program events occurring on the interface every 1 minute.

[0058] In some embodiments of the present application, the first program event can be the display of target information in a program control in the first interface. For example, the first interface is a conversation interface with contact 1 in an instant messaging program. The conversation interface can include a message input box. The first program event can be the display of target information in the input box, such as displaying "message input", the numeric characters "888888", etc. As shown in Figure 2(a), when the user enters the number "888888" in the input box 201, the program processing device can detect that the first program event has occurred in the conversation interface, and then automatically switches the conversation interface to the playback interface of the video playback program as shown in Figure 2(b). For example, the first interface is a conversation interface with contact 2 in an instant messaging program. The conversation interface can include a control for displaying conversation messages, such as a control including a conversation message sent by contact 2. The first program event can be the display of target information in the control.

[0059] The target information may be system preset information or user-set information. In some embodiments of the present application, the user may set a program event, and the target information may be customized by the user during the program event setting process. Optionally, the method further includes:

[0060] receiving a sixth input from the user to a second target program control in the first interface of the first program;

[0061] In response to the sixth input, determining the target information including the first target keyword displayed in the second target program control as a second program event, wherein the first target keyword is the keyword input by the sixth input;

[0062] Adding a program event option corresponding to the second program event to the at least two program event options.

[0063] If the program event provided by the system or the information preset for the program event does not meet the user's needs, the program processing device may also provide the user with the ability to set the program event. The user may set the program event by inputting a sixth input into the second target program control in the first interface of the first program. Accordingly, the program processing device may, in response to the sixth input, determine the target information including the first target keyword displayed in the second target program control as the second program event, and add the program event option of the second program event to the at least two program event options.

[0064] The sixth input is used to allow the user to customize the target information displayed in the program control to set a program event. The sixth input can be a sixth operation. The sixth input can be text input by the user into the input control. The second target program control can be a control for inputting information, a control for displaying information, or other program control, which is not specifically limited here.

[0065] In some application scenarios of the present application, as shown in FIG2( c ), the program processing device currently displays a conversation interface with contact 1 in an instant messaging program. The user can call up a program event option list 202 through an operation. Within the program event option list 202 , a second program event can be set based on a control 203 of a “custom state”. The sixth input can include touching the “custom state” control and entering key information into an input box 204 displayed after touching the control. Accordingly, the program processing device can, in response to the sixth input, obtain the first target keyword indicated by the sixth input and determine the program event with the target information displayed in the second target program control as the second program event. The target information can include the first target keyword. The user can also customize the program event option of the second program event and add it to the program event option list 202. Afterwards, if the second program event in the program event option list 202 is set as a program event that needs to be monitored, the program processing device can store the target information related to the second program event. Accordingly, when the session interface of the instant messaging program is displayed, the program processing device can monitor the program events occurring in the session interface in real time or at preset intervals. For example, the program events occurring in the session interface are monitored every 1 minute, and based on the stored target information related to the second program event, it is determined whether the program event occurring in the session interface is the first program event. When the information displayed by the program control in the session interface includes the target information, it is determined that the first program event has been detected in the session interface, and the target processing can be automatically performed on the second program.

[0066] In some application scenarios of the present application, when the program processing device displays the reading interface of a novel reading program, the user can set the program event by setting the target information displayed by the text control in the reading interface. The text control is used to display the novel text information. The target information can be the second target keyword. For example, the user can set the second target keyword to "complete". In this way, if the program event displaying the second target keyword in the text control is set as the first program event, the program processing device can automatically perform target processing on the second program when it detects that the program control in the reading interface of the novel reading program displays the second target keyword, without the need for manual triggering by the user.

[0067] In this way, the user enters the target keyword in the second target program control in the interface of the first program, and the electronic device can determine the target information including the target keyword entered by the user as a program event, thereby enabling the user to customize the program event and improving the flexibility of setting the program event.

[0068] In some embodiments of the present application, the first program includes an instant messaging program; the first interface includes a conversation interface with a target contact; optionally, when a first program event occurs on the first interface, executing a target process on the second program includes:

[0069] When first information is displayed in a first control in the conversation interface, executing target processing on the second program, wherein the first control is a control for inputting information;

[0070] Alternatively, when the second information is displayed in a second control in the conversation interface, target processing is performed on the second program, wherein the second control is a control for displaying a conversation message sent by the target contact.

[0071] In this embodiment, the first information and the second information may be system default information or user-set information. For example, the first information and the second information may be system default information or user-set target information including the first target keyword.

[0072] In the embodiment of the present application, the target processing can be to display the interface of the second program, that is, to perform a jump process between programs. Specifically, the interface switching between the two programs can be performed. The target processing can also be the background triggering of the input of the control in the interface of the second program, or other processing, which is not specifically limited here. Among them, the second program can be any program, the first program and the second program are two different programs, the second program can be set by the user, or the system can be set according to the user's usage habits. For example, the first program can be an instant messaging program, the second program can be a multimedia player program, the first program can also be a video player program, and the second program can also be an audio player program or a novel reading program.

[0073] Taking the target processing as jumping between programs and the second program as a video playback program as an example to illustrate this application scenario, the display interface of the program processing device currently displays the conversation interface of the instant messaging program with the target contact, and the user is entering information in the input box of the current conversation interface, and has entered the first information. For example, the first information entered is a string of digital characters "888888". Accordingly, the program processing device can detect that the first information is displayed in the input box of the current conversation interface. At this time, the conversation interface currently displayed on the display interface can be switched to the playback interface of video A running in the background in the video playback program.

[0074] Alternatively, the display interface of the program processing device currently displays the conversation interface of the instant messaging program with the target contact, the current user is chatting with the target contact, and the program processing device currently receives a message sent by the target contact and displays it in the second control. The message includes second information such as a string of digital characters "888888". Accordingly, the program processing device can monitor that the second information is displayed in the second control of the current conversation interface. At this time, the conversation interface currently displayed on the display interface can be switched to the playback interface of video A running in the background in the video playback program.

[0075] In this way, when the target information is entered in the input control displayed in the conversation interface of the instant messaging program, or when the target information is displayed in the display control, the target processing can be automatically performed on the second program without manually switching to the interface of the second program to perform program processing, thereby simplifying the program processing operation and improving the efficiency of program use.

[0076] For example, the first interface is a reading interface of a novel reading program. The reading interface may include a text control for displaying novel content. The first program event may be the display of target information in the text control in the reading interface. The target information may include system default or user-set keywords. For example, if the target information includes the user-set keyword "complete", as shown in Figure 3, when the display control 301 of the novel text information displays the word "complete", it is determined that the first program event has occurred in the reading interface.

[0077] In some embodiments of the present application, the first program includes a multimedia playback program; the first interface includes a playback interface of target multimedia, and the target multimedia includes text, audio, or video; optionally, when a first program event occurs on the first interface, performing target processing on the second program includes:

[0078] When the second target keyword is displayed in the fifth control in the playback interface, target processing is performed on the second program, wherein the fifth control is a control for displaying text information of the target multimedia.

[0079] In this embodiment, when the target multimedia is an e-book, the fifth control is a control for displaying the book content of the e-book; when the target multimedia is news information, the fifth control is a control for displaying the information content; when the target multimedia is audio, the fifth control is a control for displaying the text information of the audio; when the target multimedia is a video, the fifth control is a control for displaying the subtitles or barrage of the video.

[0080] The second target keyword may be a system default keyword or a user-set keyword. For example, the second target keyword may be a keyword such as “finished” or “ahhh…”.

[0081] The target processing may be to display the interface of the second program, i.e., to perform a jump process between programs, or the target processing may be to trigger input to a control in the interface of the second program in the background, or other processing, which is not specifically limited here. The second program may be an instant messaging program, a settings program, etc.

[0082] The target multimedia may be video, audio, or novel text, and the text information of the target multimedia may be subtitle information of the video, lyrics information of the audio, text information of the novel text, text information of news information, etc.

[0083] Taking the target processing as the jump processing between programs as an example to illustrate the application scenario, in some application scenarios of the present application, the second program is an instant messaging program, the second target keyword can be "ah ah ah...", the display interface of the program processing device currently displays the audio playback interface of the audio playback program, the user is using the audio playback program to listen to songs, and the fifth control of the current audio playback interface displays the lyrics information of the song. The program processing device can monitor the lyrics information displayed in the fifth control of the audio playback interface in real time or at preset intervals. For example, the lyrics information displayed in the fifth control of the audio playback interface is monitored every 5 seconds, and based on the target information related to the program event pre-stored by the program processing device, it is determined whether the program event occurring on the audio playback interface is the first program event, wherein the target information includes the second target keyword. When it is detected that the information displayed in the fifth control of the audio playback interface includes the second target keyword, it is determined that the first program event has occurred on the audio playback interface. That is, when listening to an audio track containing lyrics such as "Ahhh...", the program processing device can detect that the second target keyword is displayed in the fifth control. At this point, the program processing device can determine that the first program event has occurred on the audio playback interface and that the user has ended listening to the audio track. Accordingly, the program processing device can perform target processing on the second program. Specifically, the display interface can switch the currently displayed audio playback interface to the conversation interface of the instant messaging program running in the background. In this way, when the program processing device determines that the user has ended listening to the audio track, it can automatically switch to the instant messaging program interface for display, eliminating the need for manual switching and simplifying program processing operations.

[0084] In some application scenarios of the present application, the first program is a novel reading program, the second program is a video playback program, the second target keyword is "finished", and the display interface of the program processing device currently displays the reading interface of the novel reading program. The user is browsing the novel in the reading interface, and the fifth control of the current reading interface displays the novel text information. The program processing device can monitor the novel text information displayed in the fifth control of the reading interface in real time or at preset intervals. For example, the novel text information displayed in the fifth control of the reading interface is monitored every 1 minute, and based on the target information related to the program event pre-stored by the program processing device, determine whether the program event occurring in the novel text information is a first program event, wherein the target information includes the second target keyword. When it is detected that the information displayed in the fifth control of the novel text information includes the second target keyword, it is determined that the first program event has occurred in the reading interface. That is, when the text information displayed on the reading interface includes "finished", the program processing device can detect that the second target keyword is displayed in the fifth control. At this time, the program processing device can determine that the first program event has occurred on the reading interface, and determine that the user has finished reading the novel. Accordingly, the target processing can be performed on the second program, and specifically, the reading interface currently displayed on the display interface can be switched to the interface of the video playback program. As shown in Figure 3, when the text information "finished" is displayed in the display control 301 of the reading interface, the electronic device will automatically switch the conversation interface to the video playback interface shown in Figure 2 (b). In this way, when the user finishes reading the novel, the electronic device can automatically switch the reading interface of the novel reading program to the interface of the video playback program for display. In this way, there is no need for manual switching, thereby simplifying the operation of program processing.

[0085] In some application scenarios of the present application, the first program is a multimedia player program, the second program is a web browser program, and the second target keyword can be a system-default or user-set rare Chinese character with many strokes. When the second target keyword is displayed in the fifth control of the first interface of the multimedia player program, the electronic device can automatically switch the first interface of the multimedia player program to the web browser program interface for the user to browse and search. This eliminates the need for manual switching, thereby simplifying program processing operations.

[0086] In some embodiments of the present application, the first program event may be a program control in the first interface receiving a control input, which may be voice input, gesture input, or touch input, which is not specifically limited here.

[0087] For example, a voice input control in an instant messaging program's session interface receives a control input indicating that voice input is complete. For example, a send control in an instant messaging program's session interface receives a control input. For example, a video capture control in an image capture program receives a control input indicating that video capture is complete.

[0088] Optionally, when a first program event occurs on the first interface, executing target processing on the second program includes:

[0089] When the third control in the first interface receives a control input from the user, executing target processing on the second program;

[0090] The third control is a control for processing messages or files.

[0091] In this embodiment, the third control includes but is not limited to controls for sending messages, copying messages, deleting messages, forwarding messages, saving files, and copying files. Control input can be gesture input, voice input, or touch input, etc., which is not specifically limited here.

[0092] In some application scenarios of the present application, the first program is an instant messaging program, the second program is a video playback program, and the third control is a control for sending messages in the conversation interface of the instant messaging program. The conversation interface of the instant messaging program is currently displayed on the display interface of the program processing device. The user can send the conversation message entered in the input box by inputting into the message sending control in the conversation interface. Accordingly, when the program processing device detects the user's control input into the message sending control, it can switch the conversation interface currently displayed on the display interface to the playback interface of Video B running in the background of the video playback program. This eliminates the need for manual switching, thereby simplifying program processing operations.

[0093] In some application scenarios of the present application, the first program is an image shooting program, the second program is a short video program, and the third control is a control for saving image files. When the shooting interface of the image shooting program is displayed on the display interface of the program processing device, the user can shoot images based on the shooting interface. When the shooting is completed, the user can save the image file by inputting the third control. Accordingly, when the program processing device monitors the user's control input to the third control, it can switch the shooting interface currently displayed on the display interface to the interface for making short videos in the short video program for display. Specifically, it can cancel the display of the shooting interface or close the shooting interface, open the interface for making short videos in the short video program, or display the interface for making short videos in the short video program. In this way, the user can make short videos based on the captured images. In this way, there is no need for manual switching, thereby simplifying the program processing operation.

[0094] In some application scenarios of the present application, the first program is a setting program, the second program is an audio playback program, and the third control can be a Bluetooth connection control. When the user inputs the Bluetooth connection control, the Bluetooth connection control can receive the control control input. At this time, the program processing device can establish a connection with the Bluetooth headset indicated by the Bluetooth connection control and switch the setting interface currently displayed on the display interface to the playback interface of the audio playback program. In this way, the user can listen to music through the Bluetooth headset in the playback interface of the audio playback program. As shown in Figure 4 (a), when the Bluetooth connection control 401 of the setting interface receives the control control input 402, the electronic device will automatically switch the setting interface to the audio playback interface shown in Figure 4 (b). In this way, there is no need for manual switching, thereby simplifying the operation of program processing.

[0095] In some embodiments of the present application, the first program event may be that the program control in the first interface is updated to the target control state. For example, the progress indicator on the playback control in the multimedia playback program is updated to a state indicating the target progress. The progress indicator may be a progress bar. The target progress may be 90%, 100% or other progress, which is not specifically limited here. For example, the target progress may be 98%. The program processing device may monitor the progress bar in real time or periodically and determine the progress indicated by the progress bar. When the progress indicated by the video playback progress bar is updated to a progress state of 98%, it is determined that the first program event has occurred in the playback interface. For example, the input box in the conversation interface of the instant messaging program is updated to a state being used. The state being used may be a state in which the input box is in the process of inputting information. For example, the function setting control in the setting interface of the setting program is updated to a control disabled state, that is, updated to a grayed-out state.

[0096] Optionally, when a first program event occurs on the first interface, executing target processing on the second program includes:

[0097] When the fourth control in the first interface is updated to the target control state, executing target processing on the second program;

[0098] The target control state includes at least one of the following: the state where the progress indicator on the control indicates the target progress; the control is disabled; the control is in use; the control is completely or partially hidden; the control is in target display mode.

[0099] In some application scenarios of the present application, the first program is a video playback program, the second program is an instant messaging program, the first interface is a video playback interface, and the fourth control can be a playback control. When the progress bar on the playback control indicates a state greater than 90% progress, it indicates that the video has been played. Accordingly, when it is monitored that the playback control in the video playback interface is updated to a state where the progress bar indicates the target progress, it can automatically switch to the instant messaging program. In this way, there is no need for manual switching, thereby simplifying the program processing operation.

[0100] In some application scenarios of the present application, the target control state can be a state in which the control is in use. The state in which the control is in use includes, but is not limited to, a state in which the control is in the process of inputting information, a state in which the control is selected, etc. For example, the first program is an instant messaging program, the second program is a video playback program, and the first interface is a conversation interface. The conversation interface may include an input control. When the user inputs into the input control, the input control is in the process of being used, i.e., in the process of inputting information. At this time, when the program processing device detects that the input control in the conversation interface is in the process of inputting information, it can automatically jump to the video playback program to watch the video. In this way, there is no need for manual switching, thereby simplifying the program processing operation.

[0101] In some application scenarios of the present application, the first program is an instant messaging program, the second program is a video playback program, the first interface is a conversation interface, and the fourth control may be an input control. When the user completes information input in the input control of the conversation interface, the control state of the input control may change. For example, the input control will not display a message, that is, it is updated to a state where no information is displayed. For example, the input control will be updated to a completely or partially hidden state. At this time, when the program processing device detects that the input control in the conversation interface is updated to a state where no information is displayed, or a completely hidden state, or a partially hidden state, it can automatically jump to the video playback program to watch the video. In this way, the user does not need to manually switch, thereby simplifying the user's program processing control operations.

[0102] In some application scenarios of the present application, the first program is a setting program, the second program is a game program, and the fourth control can be a function setting control. When the user completes the function setting based on the function setting control in the setting interface of the currently displayed setting program, the control state of the function setting control can change, for example, updated to a control disabled state. At this time, when the program processing device detects that the function setting control is updated to a control disabled state, it can automatically jump to the game program to perform game operations based on the set function. In this way, there is no need for manual switching, thereby simplifying the program processing operation.

[0103] Among them, the common control states are as follows:

[0104] 1. Normal: Indicates that the control is active but not currently in use.

[0105] 2. Highlighted: indicates that the control is being pressed or used.

[0106] 3. Disabled: means the button is not enabled and cannot be used.

[0107] 4. Selected (selected), only specific controls have this state, indicating that the control is currently selected.

[0108] The control state of the control is updated to the control disabled state, indicating that the control is updated from the normal, highlighted or selected state to the disabled state.

[0109] In some application scenarios of the present application, the first program is a setting program, the second program is a game program, and the fourth control can be a function setting control. When the user inputs into the setting interface of the setting program to call out the floating ball of the function setting control, or expands the floating ball to display the controls inside the floating ball, the display mode of the function setting control can be updated to the target display mode, which indicates that the function setting control is displayed in the form of a floating ball. At this time, when the program processing device detects that the display mode of the function setting control is updated to the target display mode, it can automatically jump to the game program to facilitate the user to perform game operations. In this way, there is no need for manual switching, thereby simplifying the program processing operation.

[0110] In some embodiments of the present application, the first program event may be that the data loading state of the target data in the first interface is a target loading state, wherein in the target loading state, the loading speed of the target data is less than a speed threshold. For example, the loading speed of the screen data in the playback interface of a multimedia playback program is less than a speed threshold. As shown in FIG5 , the user is watching a video on the playback interface of a video playback program. There should actually be three characters displayed on the screen of the playback interface, but due to the poor network status of the electronic device, its data loading speed is relatively slow, resulting in the inability to display all the characters in the screen of the playback interface, and only loading the screens of two characters. At this time, it can be determined that the first program event has occurred in the playback interface. For example, the loading speed of the game screen data in a game program is less than the speed threshold.

[0111] The speed threshold can be set based on actual conditions. When the data loading speed is lower than the speed threshold, it indicates that the data loading speed in the interface of the first program is relatively slow, making it impossible for the interface to fully display the screen information. For example, the speed threshold can range from 10 kilobytes (kB) to 200 kB.

[0112] Moreover, the speed thresholds can be set differently for different programs. For example, a video player requires a faster data loading speed for user fluency than an audio player. For a video player, the speed threshold can be set to 200Kb, and for an audio player, the speed threshold can be set to 50kB. Therefore, the speed threshold for the loading speed of screen data in the interface of the video player can be set higher than the speed threshold for the loading speed of audio data in the interface of the audio player.

[0113] In the embodiment of the present application, by limiting the specific content of the first program event, the program processing device can easily monitor the first program event according to the loading speed of the program controls or data in the first interface.

[0114] The target processing of the embodiment of the present application can be program processing, which refers to the processing of the second program. In some embodiments of the present application, when a first program event occurs on the first interface, the target processing can be automatically performed on the second program. In this way, during the use of the first program, if a first program event is detected on the first interface, the electronic device can automatically perform target processing on the second program without the user manually switching between programs to process the second program, thereby simplifying the operation of program processing and improving the efficiency of program use.

[0115] In some embodiments of the present application, the program processing device may store an association relationship between program events and program processes, and based on the association relationship, may determine a second program and a target process associated with the first program event. Optionally, before executing the target process on the second program, the method may further include: determining the target process associated with the first program event based on the association relationship between the program event and the program process.

[0116] In this embodiment, the program processing device can store the association between program events and program processing. For example, the association between the program event of a program control in the interface of the first program receiving a control control input and the program processing of displaying the interface of the second program can be stored. For example, the association between the program event of the data loading state of the target data in the interface of the first program being the target loading state and the program processing of displaying the interface of the second program can be stored. For example, the association between the program event of the program control in the interface of the first program being updated to the target control state and the program processing of triggering the input to the control of the second program can be stored.

[0117] The association relationship between program events and program processing may be stored in the form of a table, such as a mapping relationship table as shown in Table 1 below.

[0118] Table 1 Mapping relationship between program events and program processing

[0119] Accordingly, the target process associated with the first program event can be obtained by querying the stored association relationship. In this way, the target process can be determined and the program processing method can be enriched.

[0120] It should be noted that the association relationship between a program event and a program process can be determined by user settings. Optionally, the method further includes: displaying at least two program icons and at least two program event options; receiving a first input from a user for a target program icon among the at least two program icons and a target program event option among the at least two program event options; and in response to the first input, establishing an association relationship between the program event indicated by the target program event option and a target program process. The target program icon is the program icon of the second program; and the target program process is determined based on the running state of the second program or is set by the user.

[0121] In this embodiment, the program event option corresponds to the program event, which may be a one-to-one correspondence. The program event option may indicate the program event.

[0122] The program icons in the embodiment of the present application may be application icons, which may be application icons of various applications installed by the program processing device, or application icons frequently used by the user. The at least two program icons may include a program icon of a second program.

[0123] In some embodiments of the present application, an input to an interface of a first program may be received, and in response to the input, at least two program icons and at least two program event options may be displayed simultaneously. Subsequently, a first input from a user may be received for a target program icon among the at least two program icons and a target program event option among the at least two program event options, and in response to the first input, an association relationship between a program event indicated by the target program event option and a target program process may be established. The first input may be input for the target program event option and the target program process simultaneously or separately.

[0124] In an embodiment of the present application, the above-mentioned first input is used to establish an association relationship between a program event and a program process, and the first input may be a first operation. Exemplarily, the above-mentioned first input includes but is not limited to: a user's touch input of a program icon and a program event through a touch device such as a finger or a stylus, or a voice instruction input by the user, or a specific gesture input by the user, or other feasible inputs, which may be determined according to actual use requirements and are not limited in the embodiment of the present application. The specific gesture in the embodiment of the present application may be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application may be a single-click input, a double-click input, or any number of click inputs, etc., and may also be a long press input or a short press input. For example, the above-mentioned first input may be: a user's click input of a target program icon among at least two program icons displayed on the interface of the first program and a target program event option among at least two program event options.

[0125] In some embodiments of the present application, an input to an interface of a first program may be received, and in response to the input, at least two program event options are first displayed, and in the case of receiving a first sub-input of a target program event option among the at least two program event options, at least two program icons are displayed, and a second sub-input of a target program icon among the at least two program icons is received from the user, and in response to the second sub-input, an association relationship between the program event indicated by the target program event option and the target program processing is established. The first input may include a first sub-input and a second sub-input, and the first sub-input may be a first sub-operation, such as a click input, a voice input, or a gesture input, and the first sub-input is used to select the target program icon among the at least two program icons displayed on the interface of the first program, and the second sub-input may be a second sub-operation, such as a click input, a voice input, or a gesture input, and the second sub-input is used to select the target program event option among the at least two program event options.

[0126] In some application scenarios, users need to switch between two or more different programs. There are two programs, Program A and Program B. The electronic device needs to perform corresponding processing in Program B based on program events occurring in the interface of Program A. For example, to switch the display from Program A to Program B, for example, by triggering a program control in the interface of Program B, an association relationship can be established between the first program event in the interface of Program A, indicated by the target program event option, and the target program processing of Program B.

[0127] For example, a user is currently chatting full-screen with a friend in an instant messaging program. After sending a chat message, the user needs to perform a program switching operation to cause the program processing device to switch the instant messaging program interface to the video playback program interface for display, so that the user can watch the video on the video playback program interface. In this application scenario, it is possible to set an association between program events occurring in the instant messaging program interface and program processing in the video playback program. Considering that the input information of the control may be a high-frequency behavior, for example, as shown in Figure 6, the user is watching a video in the video playback program. At this time, contact 1 sends a new message. The playback interface can display the message keywords sent by contact 1, or it can display that contact 1 has sent a new message, and the user needs to chat with contact 1. After the chat ends, the user needs to perform a program switching operation again to cause the program processing device to switch the conversation interface to the video playback program interface for display. This switching back and forth is cumbersome. If the program events occurring in the instant messaging program interface can be associated with the video playback program, the program processing device will automatically switch the display between the instant messaging program interface and the video playback program interface when it detects the occurrence of the first program event in the instant messaging program interface.

[0128] For example, program A may be an instant messaging program. The program processing device currently displays the instant messaging program's conversation interface, and the user can invoke program event options based on this conversation interface. As shown in Figure 7, the user can use gesture operation 700 to access program A's conversation interface, generating a shortcut icon 701 from the currently displayed conversation interface, and then drag this shortcut icon 701 to the send control area 702 of the input control. Gesture operation 700 may be a double-click operation, and the specific gesture operation is not limited here, as long as it avoids conflicts with system-defined gestures.

[0129] Accordingly, program event options may be displayed above the send control. These program event options may be displayed in a list format within the conversation interface, i.e., a program event option list 202 may be displayed within the conversation interface. As shown in FIG7 , program event option list 202 may include program event options such as "Start Input," "Inputting Information," and "Input Completed."

[0130] The user can select the target program event option of "Information input completed" based on the program event option list 202. After the user selects the target program event option, at least two program icons are displayed in the interface of program A. As shown in Figure 8, multiple program icons can be displayed in area 801 of the session interface of the instant messaging program. The user can select the program icon of program B, such as clicking the program icon 802 of the video playback program. In this way, an association relationship can be established between the program event occurring in the interface of program A indicated by the target program event option and the target program processing of program B, and the association relationship is stored in the association relationship table between program events and program processing, where the target program processing can be a jump between the instant messaging program and the video playback program.

[0131] Afterwards, if the user inputs the send control in the conversation interface, the program processing device can receive the input and, in response to the input, determine that a program event of the program event option "information input completed" has occurred in the conversation interface. It can then determine whether there is a program event of the program event option "information input completed" in the association table. If so, it is determined that the first program event has occurred in the conversation interface, and accordingly the conversation interface of the instant messaging program can be switched to the playback interface of the video playback program for display.

[0132] It should be noted that, in this application scenario, the setting method for calling out the program event option list 202 can also be the following methods, but is not limited to these: the user can long press the user's own avatar and drag the user's avatar to the send control, or the program event option list 202 can be called out in the target interface; the user gesture can long press the input control 703, or the program event option list 202 can be called out in the session interface.

[0133] In this application scenario, the program event options may also include displaying target information in an input box, displaying target information with keywords in a control for displaying conversation messages sent by a contact, that is, the contact sends target information including keywords, etc., which are not specifically limited here.

[0134] In some application scenarios of the present application, program A may be a setting program, and the program processing device currently displays the Bluetooth setting interface of the setting program. The Bluetooth setting interface may include a Bluetooth setting control 901. The user can long press the Bluetooth setting control to call up the program event options and program icons. As shown in FIG9 , area 902 of the Bluetooth setting interface displays two program event options, namely Bluetooth connection and Bluetooth disconnection, and area 903 displays two Bluetooth-related program icons, namely a communication audio program and a media audio program. The user can select the program event option of the Bluetooth connection and the program icon of the media audio program, and accordingly establish an association relationship between the program event of the Bluetooth connection and the program processing that automatically jumps to the interface of the media audio program for display, and store the association relationship in the association relationship table between program events and program processing.

[0135] Afterwards, if the user inputs the Bluetooth connection control in the Bluetooth setting interface, the program processing device can receive the input and, in response to the input, determine that a program event of the program event option "Bluetooth connection" has occurred on the Bluetooth setting interface. It can then determine whether there is a program event of the program event option "Bluetooth connection" in the association table. If so, it is determined that the first program event has occurred on the Bluetooth setting interface, and accordingly the Bluetooth setting interface of the setting program can be switched to the playback interface of the media audio program for display.

[0136] In some application scenarios of the present application, users need to switch between two or more different programs. There are two programs, namely program C and program D. Program D needs to perform corresponding processing based on the data loading status of the data in the interface of program C, for example, jumping from program C to program D to switch the display interface.

[0137] For example, program C is a video playback program. The user watches the video in the playback interface of program C. The user can input the playback interface. The program processing device can respond to the input and display at least two program icons and at least two program event options. The at least two program event options may include a target loading status.

[0138] As shown in FIG10 , the display interface currently displays the playback interface of a video playback program, which is currently playing video A. The user can call out a global "jump setting" entry icon 1001 by inputting into the playback interface. The user can then click on the entry icon 1001. Accordingly, the program processing device can respond to the user's click input by displaying setting options. The setting options can include a program event option 1002 such as "Network is bad, cannot load out" and a program icon 1003. Upon receiving user input for a novel reading program in at least two program icons and a target program event option 1002 in at least two program event options, the program event indicated by the target program event option can be determined to be the program event to be associated, and the target program icon corresponding to the novel reading program can be determined to be the target program processing program. Accordingly, an association relationship between the program event indicated by the target program event option and the target program processing is established. The program event indicated by the program event option "Network is bad, cannot load out" can be the target loading state of the target data in the first interface.

[0139] Afterwards, if the program processing device detects that the data loading status of the playback interface of the video playback program playing video A is the target loading status, the program processing device can determine that a program event of the program event option "bad network, cannot be loaded" has occurred on the playback interface, and can determine whether there is a program event of the program event option "bad network, cannot be loaded" in the association table. If so, it is determined that the first program event has occurred on the playback interface, and accordingly the playback interface of the video playback program can be switched to the reading interface of the novel reading program.

[0140] In this way, multiple program icons and multiple program event options can be displayed for the user to select the program and program event that need to be associated with the program process, thereby facilitating the establishment of an association relationship between the program event and the program process.

[0141] When the user selects the program to be associated with the program processing, the specific content of the program processing needs to be determined to achieve the target processing of the second program. Optionally, the target processing of the second program includes at least one of the following:

[0142] Displaying a target interface of the second program, where the target interface is an interface determined according to the running state of the second program or an interface set by the user;

[0143] triggering an input to a first target program control of a second program, where the first target program control is a preset control or a user-set control;

[0144] A target process is executed on the second program, the target process being a preset process or a process set by a user.

[0145] In some embodiments of the present application, when a first program event occurs on a first interface, the target interface of a second program can be automatically displayed. For example, when a first program event occurs on a conversation interface of an instant messaging program, the playback interface of a video player running in the background can be displayed, or a user-configured interface in the video player program can be displayed, such as a video playback interface that displays historical playback records in the video player program. For example, when a first program event occurs on the playback interface of a video player program, the reading interface of a novel reading program can be displayed, or a conversation interface with a specific contact configured by the user in the instant messaging program can be displayed.

[0146] In some embodiments of the present application, the target interface may be determined based on the running status of the program selected from at least two program icons during the process of establishing the association relationship between the program event and the program process. Optionally, before establishing the association relationship between the program event indicated by the target program event option and the target program process, the method further includes:

[0147] When the second program is not running, determining a second interface displaying the second program as a target program for processing, wherein the second interface is a main interface of the second program; performing the target processing on the second program includes: displaying the second interface of the second program;

[0148] When the second program is running in the background, the third interface of the second program is determined to be the target program for processing, wherein the third interface is the interface displayed when the second program is running in the background; executing the target processing on the second program includes: displaying the third interface of the second program.

[0149] In some application scenarios, the first program may be an instant messaging program, and the second program may be a video playback program. The current interface displays the conversation interface with contact 1 in the instant messaging program. In the process of establishing the association relationship between the program event in the interface of the first program and the program processing of the second program, when the video playback program is not running, the main interface of the displayed video playback program can be determined as the target program processing, and the association relationship between the program event and the target program processing can be established. Accordingly, when the first program event occurs in the interface of the instant messaging program, such as when the send control in the interface receives the program control input, the main interface of the video playback program can be displayed.

[0150] When the video playback program is running in the background, the playback interface of video A running in the background of the video playback program can be determined as the target program processing, and an association relationship between the program event and the target program processing can be established. Accordingly, when the first program event occurs in the interface of the instant messaging program, such as when the sending control in the interface receives the program control input, the playback interface of video A in the video playback program can be displayed.

[0151] The first program may be a video playback program, and the second program may be a novel reading program. The current interface displays the playback interface of video A. In the process of establishing the association relationship between program events in the interface of the first program and program processing of the second program, when the novel reading program is not running, the main interface of the displayed novel reading program can be determined as the target program processing, and an association relationship between program events and target program processing can be established. Accordingly, when the first program event occurs in the interface of the video playback program, such as when the data loading status in the interface is the target loading status, the main interface of the novel reading program can be displayed.

[0152] When the novel reading program is running in the background, the reading interface of novel B running in the background of the novel reading program can be determined as the target program processing, and an association relationship between the program event and the target program processing can be established. Accordingly, when the first program event occurs in the interface of the video playback program, such as when the data loading status in the interface is the target loading status, the reading interface of novel B in the novel reading program can be displayed.

[0153] In this way, the interface of the second program to be displayed during target program processing can be determined according to the running status of the second program, thereby flexibly establishing an association relationship between program events and program processing, and simplifying the association relationship setting process.

[0154] In some embodiments of the present application, the target interface may be an interface set by a user, and the user may set the target program processing to switch the display of the set fourth interface. Optionally, before establishing the association between the program event indicated by the target program event option and the target program processing, the method further includes:

[0155] receiving a second input from a user regarding the target program icon;

[0156] In response to the second input, determining a fourth interface of the second program;

[0157] Determining the fourth interface displayed as a target program process;

[0158] The performing target processing on the second program includes:

[0159] The fourth interface of the second program is displayed.

[0160] In this embodiment, the second input and the first input can be two different inputs. The second input is used to determine the fourth interface that needs to be jumped to display, so as to determine the target program processing. The second input can be a second operation. Exemplarily, the second input includes but is not limited to: the user's touch input of the target program icon through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs. The specific ones can be determined according to actual use requirements and are not limited in the embodiments of this application. The specific gesture in the embodiment of this application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of this application can be a single-click input, a double-click input, or any number of click inputs, etc. It can also be a long press input or a short press input. For example, the second input can be: the user's click input on the target program icon.

[0161] The user may perform a second input on the target program icon, and the program processing device may receive the second input and display a fourth interface of the second program in response to the second input.

[0162] As shown in Figure 11, in an application scenario where an instant messaging program is currently running and the user is chatting with contact 1, the program processing device currently displays a conversation interface with contact 1. A video player program is running in the background, currently playing video A, which is in a paused state. The user can use gestures to call up program event options including "Start Input," "Inputting Information," and "Input Completed," along with a program icon for the video player program. When the user selects the "Input Completed" program event option and the video player program icon, and then clicks on the video player program icon 802, the program processing device, upon receiving a second input, can display the video player program's playback interface 1101. This playback interface 1101 is the playback interface of video A. If the user continues to click on playback interface 1101, the program processing device can determine that playback interface 1101 is the target program processing and store the association between the program event for the "Input Completed" program event option and the program processing for displaying the video player program's playback interface for video A in the association table.

[0163] Afterwards, if the user inputs the send control of the conversation interface, the program processing device can receive the program control input, determine that a first program event has occurred in the conversation interface, and accordingly switch the conversation interface with contact 1 to the playback interface of video A for display.

[0164] In this embodiment, when setting a program processing program, by displaying the fourth interface in the program and determining the fourth interface as the target program processing, an association relationship between the program event of the first program and the target program processing is established. Therefore, when a program event occurs in the first program, the fourth interface in the second program can be automatically displayed, thereby saving the user's operation time.

[0165] In some embodiments of the present application, when a first program event occurs on a first interface, input to a first target program control of a second program can be automatically triggered. For example, when a first program event occurs on a conversation interface of an instant messaging program, an audio playback control of an audio playback program running in the background can be triggered, and the audio playback control can be a preset control.

[0166] For example, when a first program event occurs on the playback interface of a video playback program, a wireless connection function setting control of a setup program may be triggered, and the wireless connection function setting control may be a preset control. In some application scenarios, if a user clicks a video playback control on the playback interface of the video playback program, the wireless connection function setting control of the setup program may be automatically triggered to enable the wireless connection function to connect to a nearby wireless hotspot for video playback.

[0167] The first target program control in the embodiment of the present application may also be a control set by the user. In some embodiments of the present application, the user may set the target program processing to automatically trigger input to the first target program control. Optionally, before establishing the association between the program event indicated by the target program event option and the target program processing, the process further includes:

[0168] receiving a fourth input from the user regarding the target program icon;

[0169] In response to the fourth input, displaying a fifth interface of the second program, the fifth interface including a first target program control;

[0170] receiving a fifth input from the user to the first target program control;

[0171] In response to the fifth input, determining the input triggering the first target program control as a target program process, and storing the control path of the first target program control;

[0172] The performing target processing on the second program includes:

[0173] Based on the control path of the first target program control, an input to the first target program control is triggered.

[0174] The fourth input and the fifth input in the embodiment of the present application can be gesture input, voice input, or touch input, etc., which are not specifically limited here. The first input and the fourth input can be two different inputs. The fourth input is used to call up the fifth interface of the second program to determine the target program processing, and the first input is used to establish an association relationship between the program event indicated by the target program event option and the target program processing.

[0175] The above-mentioned fourth input is two different inputs from the first input, and the fifth input is also two different inputs from the first input. The fourth input is used to call out the fifth interface of the second program, and the fifth input is used to determine the target program processing based on the controls in the fifth interface. The fourth input can be a fourth operation, and the fifth input can be a fifth operation. Exemplarily, the above-mentioned fourth input includes but is not limited to: the user's touch input of the target program icon through a touch device such as a finger or a stylus, and the fifth input includes but is not limited to: the user's touch input of the controls in the fifth interface through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs. The specific ones can be determined according to actual use requirements and are not limited in the embodiments of this application. The specific gesture in the embodiments of this application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiments of this application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the fourth input may be: a double-click input of the target program icon by the user, and the fifth input may be: a short-press input of the control in the fifth interface by the user.

[0176] The user can double-click the target program icon to enter the selected second program and call out the fifth interface including the first target program control. Accordingly, the program processing device can display the fifth interface in the form of a window in the interface of the first program. The user can make a fifth input to the first target program control in the fifth interface, such as clicking the first target program control. The program processing device can respond to the fifth input and determine the input to the first target program control as the target program processing, and store the control path of the first target program control, wherein the control path can indicate the position of the first target program control in the program interface. In this way, when the first program event occurs on the first interface, the input to the first target program control can be automatically triggered based on the control path of the first target program control to realize the processing of the second program.

[0177] In some application scenarios of the present application, the program processing device currently displays a conversation interface with contact 1 in an instant messaging program. The program processing device also has an audio playback program running in the background. The audio playback program is currently playing audio A and is in a paused state. In this application scenario, the user can set the program event to "Information input completed" and select the audio playback program as the target program to be processed.

[0178] Afterwards, the user can make a fourth input on the program icon of the audio playback program. In response to the fourth input, the program processing device can display the playback interface of Audio A in the audio playback program. The user can click the audio playback control in the playback interface. Accordingly, in response to the click input, the program processing device can establish an association relationship between the program event of the program event option "Information Input Completed" in the conversation interface and the program processing of triggering the input of the audio playback control in the playback interface of Audio A. At the same time, the program processing device can record the trigger path of the audio playback control during the user setting process. For example, the trigger path of the audio playback control can be audio playback program -> audio A playback interface -> audio playback control. Based on this trigger path, the program processing device can determine and store the control path of the first target program control. For example, the control path can be audio playback program -> audio A playback interface -> the location of the audio playback control in the playback interface of Audio A. Afterwards, when a first program event occurs in the session interface, the program processing device can automatically trigger the input of the audio playback control in the playback interface of audio A of the audio playback program based on the control path, such as automatically triggering the click input of the audio playback control to put audio A into the playback state. In this way, there is no need to manually switch between program interfaces to trigger the input of controls in other programs.

[0179] In some application scenarios of the present application, the program processing device currently displays the playback interface of video A in the video playback program, which is in a playback pause state. The setting for wireless data in the current setting program is "wireless LAN", and the current network data of the program processing device is cellular data. In this application scenario, the user can select the program event of the program event option of "play start status" through corresponding settings, and select the program to be processed by the target program as the setting program. Afterwards, the user can make a fourth input to the program icon of the setting program, and the program processing device can respond to the fourth input to display the setting interface for wireless data in the setting program. The user can click on the "wireless LAN and cellular data" control in the setting interface. Accordingly, the program processing device can respond to the click input to establish an association relationship between the program event of the program event option of "play start status" in the video playback interface and the program processing of the input of the "wireless LAN and cellular data" control in the setting interface of the triggering setting program. At the same time, the program processing device can record the trigger path of the "Wireless LAN and Cellular Data" control during the user setting process. For example, the trigger path of the "Wireless LAN and Cellular Data" control can be the setting program -> the setting interface of the wireless data of the video playback program -> the "Wireless LAN and Cellular Data" control. The program processing device can determine and store the control path of the first target program control based on the trigger path. For example, the control path can be the setting program -> the setting interface of the wireless data of the video playback program -> the position of the "Wireless LAN and Cellular Data" control in the setting interface. Afterwards, when a first program event occurs in the playback interface of the video playback program, the program processing device can automatically trigger the input of the "Wireless LAN and Cellular Data" control in the setting interface based on the control path, such as automatically triggering the click input of the "Wireless LAN and Cellular Data" control, so that the wireless data of the video playback program can be set to wireless LAN and cellular data. In this way, the input of controls in other programs can be triggered without the user manually switching between program interfaces.

[0180] When the program for program processing is set up, the fifth interface in the program is displayed and the user's input to the first target program control in the fifth interface is received. In this way, the user can set the controls he needs to use to achieve the setting of target program processing. In this way, when the first program event occurs in the first interface of the first program, the program processing device can automatically trigger the input of the first target program control in the fifth interface, thereby improving the flexibility of program processing and saving the user's operation time.

[0181] In some embodiments of the present application, when a first program event occurs on a first interface, a preset process or a user-set process may be executed on a second program, wherein the preset process may be a process preset by the electronic device system, and the preset process may be a jump from program A to program B, that is, the interface of program A is switched to the interface of program B. For example, when a first program event occurs on a conversation interface of an instant messaging program, the conversation interface is switched to the playback interface of a video playback program. The preset process may also be to start a second program. For example, when a first program event occurs on the playback interface of a video playback program, a traffic monitoring program may be started to automatically monitor the traffic generated by the playback interface.

[0182] The user-set processing can be a user-defined processing. The user-set processing can be a jump from program A to program C. For example, when a first program event occurs in the session interface of the instant messaging program, the session interface is switched to the playback interface of the novel reading program. The user-set processing can also be a triggering of input to the control in the interface of program D running in the background. For example, when a first program event occurs in the session interface of the instant messaging program, the input to the audio playback control in the interface of the audio playback program running in the background is triggered.

[0183] In some embodiments of the present application, a user may set a target program process to perform the user-set process. Optionally, before establishing an association between the program event indicated by the target program event option and the target program process, the process further includes:

[0184] receiving a third input from the user regarding the target program icon;

[0185] determining processing content of program processing in response to the third input;

[0186] determining the program processing corresponding to the processing content as the target program processing;

[0187] The performing target processing on the second program includes:

[0188] Program processing corresponding to the processing content is executed on the second program.

[0189] The above-mentioned third input and the first input can be two different inputs. The third input is used to determine the processing content of the program processing required to determine the target program processing. The third input can be a third operation. Exemplarily, the above-mentioned third input includes but is not limited to: the user's touch input of the target program icon through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs. The specific ones can be determined according to actual use requirements and are not limited in the embodiments of the present application. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned third input can be: the user's long press input of the target program icon.

[0190] The user can make a third input to the target program icon, and the program processing device can determine the processing content of the program processing in response to the third input, and determine the program processing corresponding to the determined processing content as the target program processing to establish an association relationship between the program event indicated by the program event option and the target program processing.

[0191] In some application scenarios of the present application, when the program processing device displays the playback interface of video A, the user can use gestures on the playback interface to call out program icons, such as program icons of a traffic monitoring program and a virus scanning program. The user can make a third input to the program icon of the traffic monitoring program, and the program processing device can receive the third input and, in response to the third input, display options for processing content, such as starting the traffic monitoring program and turning off the traffic monitoring program. The user can choose the option to start the traffic monitoring program, and the program processing device can determine the background startup of the traffic monitoring program as the processing content of the program processing, and determine the processing of starting the traffic monitoring program in the background as the target program processing, and accordingly establish an association relationship between the program event of displaying the playback interface of video A and the processing of starting the traffic monitoring program in the background. Afterwards, when the playback interface of video A of the video playback program is displayed, the traffic monitoring program can be automatically started in the background.

[0192] In some application scenarios of the present application, when the program processing device displays the conversation interface of the instant messaging program, the user can select the program event option of "information input completed" and the program processed by the program is a novel reading program through corresponding settings. The user can make a third input to the program icon of the novel reading program, and the program processing device can receive the third input and, in response to the third input, display options for processing content, for example, displaying an offline downloaded novel reading interface and displaying an online novel reading interface. The user can select the option to display the offline downloaded novel reading interface, and the program processing device can determine the offline downloaded novel reading interface as the processing content of the program processing, and accordingly establish an association relationship between the program event of the program event option of "information input completed" and the program processing of displaying the offline downloaded novel reading interface. Afterwards, when the first program event indicating "information input completed" occurs on the conversation interface, the offline downloaded novel reading interface can be automatically displayed.

[0193] In this embodiment, when setting a program processing program, by determining the processing content of the program processing and determining the program processing corresponding to the processing content as the target program processing, an association relationship between the program event of the first program and the target program processing is established, making the setting of the program processing more flexible.

[0194] In this embodiment, by limiting the specific content of the target processing, the program processing device can process the second program when detecting the occurrence of the first program event on the first interface.

[0195] In some embodiments of the present application, when a user sets an association relationship between a program event and a program process, at least two programs may be selected for association, forming a "one-to-many" event subscription distribution model. Accordingly, a first program event may be associated with multiple program processes, each program process corresponding to a program. The user may select a second program to perform program processing. Optionally, before executing the target process on the second program, the process further includes:

[0196] Displaying program identifiers of at least two programs, wherein the program identifiers include program icons or interface identifiers, and the interface identifier is used to indicate any program interface of the program;

[0197] receiving a seventh input of a target program identifier among the program identifiers of the at least two programs from a user;

[0198] In response to the seventh input, the program corresponding to the target program identifier is determined as a second program.

[0199] In this implementation, the seventh input may be gesture input, voice input, touch input, etc., which is not specifically limited here.

[0200] When a first program event occurs on the first interface, a notification message of the occurrence of the first program event can be distributed to the associated programs, and program identifiers of at least two programs are displayed at the same time. If the program is already open in the background, the program interface is displayed in window form, and if the program is not open in the background, the program icons are displayed in list form. As shown in Figure 12, when the session interface displays a program event option list 202, the user can select program event options and program icons by inputting program event options and program icons. The user can select multiple program icons to establish associations between the program event indicated by the program event option and multiple programs. The selected multiple program icons are respectively program icons 1201, program icon 1202, and program icon 802. In this way, after the first program event indicated by the program event option occurs, interface windows of multiple programs can be opened.

[0201] As shown in FIG13 , interface windows 1301 for program A and 1302 for program B respectively allow the user to select a second program for processing. Upon receiving a seventh user input regarding a target program identifier among the program identifiers of at least two programs, as shown in FIG13 , the user selects program A as the target second program through input 1303 in program A's interface window 1301.

[0202] That is to say, when a first program event occurs on the first interface, the notification message of the event can be distributed to multiple programs. When the user selects the program that needs to be processed, such as program A, the program processing device can automatically switch the first interface to the interface of program A for display, or process the internal logical behavior of program A, such as automatically triggering the input of the control in the interface of program A.

[0203] In addition, if you want to cancel the programs involved in these event subscriptions, you can cancel the association between program events and program processing in the same way as the association settings.

[0204] In this way, when a program event is associated with multiple program processes, by displaying program identifiers involved in multiple program processes, such as multiple jumpable program identifiers, the user can freely select the second program to jump to, thereby improving the flexibility of program processing.

[0205] It should be noted that the program processing method provided in the embodiments of the present application can be executed by a program processing device or a control module in the program processing device for executing the program processing method. In the embodiments of the present application, the program processing device provided in the embodiments of the present application is described by taking the program processing device executing the program processing method as an example.

[0206] Referring to FIG. 14 , FIG. 14 is a structural diagram of a program processing device provided in an embodiment of the present application. As shown in FIG. 14 , the program processing device 1400 includes:

[0207] Display module 1401, configured to display a first interface of a first program;

[0208] A processing module 1402 is configured to execute a target process on a second program when a first program event occurs on the first interface;

[0209] The target processing is determined according to the first program event.

[0210] Optionally, the first program event includes at least one of the following:

[0211] Displaying target information in the program control in the first interface;

[0212] The program control in the first interface receives a control input;

[0213] The control state of the program control in the first interface is updated to the target control state;

[0214] The data loading state of the target data in the first interface is a target loading state, wherein in the target loading state, the loading speed of the target data is less than a speed threshold.

[0215] Optionally, the processing module 1402 is further configured to perform at least one of the following:

[0216] Displaying a target interface of the second program, where the target interface is an interface determined according to the running state of the second program or an interface set by the user;

[0217] triggering an input to a first target program control of a second program, where the first target program control is a preset control or a user-set control;

[0218] A target process is executed on the second program, the target process being a preset process or a process set by a user.

[0219] Optionally, the processing module 1402 is further configured to determine a target process associated with the first program event according to an association relationship between the program event and the program process.

[0220] Optionally, the display module 1401 is further configured to display at least two program icons and at least two program event options;

[0221] The apparatus further includes: a user input module 1403 for receiving a first input from a user regarding a target program icon among the at least two program icons and a target program event option among the at least two program event options;

[0222] The processing module 1402 is further configured to establish, in response to the first input, an association relationship between the program event indicated by the target program event option and the target program processing;

[0223] The target program icon is the program icon of the second program; and the target program processing is determined according to the running state of the second program or is set by the user.

[0224] Optionally, when the second program is not running, the processing module 1402 is further configured to: determine the second interface displaying the second program as a target program for processing, wherein the second interface is the main interface of the second program; the processing module 1402 is specifically configured to: display the second interface of the second program;

[0225] When the second program is running in the background, the processing module 1402 is also used to: determine the third interface displaying the second program as the target program for processing, wherein the third interface is the interface displayed when the second program is running in the background; the processing module 1402 is specifically used to: display the third interface of the second program.

[0226] Optionally, the user input module 1403 is further configured to receive a second input from the user on the target program icon;

[0227] The processing module 1402 is further configured to, in response to the second input, determine a fourth interface of the second program; and determine the fourth interface to be displayed as a target program for processing;

[0228] The processing module 1402 is specifically configured to display a fourth interface of the second program.

[0229] Optionally, the user input module 1403 is further configured to receive a third input from the user on the target program icon;

[0230] The processing module 1402 is further configured to determine the processing content of the program processing in response to the third input; and determine the program processing corresponding to the processing content as the target program processing;

[0231] The processing module 1402 is specifically configured to execute program processing corresponding to the processing content on the second program.

[0232] Optionally, the user input module 1403 is further configured to receive a fourth input from the user on the target program icon;

[0233] The display module 1401 is further configured to display a fifth interface of the second program in response to the fourth input, wherein the fifth interface includes a first target program control;

[0234] The user input module 1403 is further configured to receive a fifth input from the user to the first target program control;

[0235] The processing module 1402 is further configured to, in response to the fifth input, determine the input triggering the first target program control as target program processing, and store the control path of the first target program control;

[0236] The processing module 1402 is further configured to trigger input to the first target program control based on the control path of the first target program control.

[0237] Optionally, the user input module 1403 is further configured to receive a sixth input from the user to a second target program control in the first interface of the first program;

[0238] The processing module 1402 is further configured to, in response to the sixth input, determine the target information including the first target keyword displayed in the second target program control as a second program event, wherein the first target keyword is the keyword input by the sixth input;

[0239] The processing module 1402 is further configured to add the program event option corresponding to the second program event to the at least two program event options.

[0240] Optionally, the display module 1401 is further configured to display program identifiers of at least two programs, wherein the program identifiers include program icons or interface identifiers, and the interface identifiers are used to indicate any program interface of the programs;

[0241] The user input module 1403 is configured to receive a seventh input from the user regarding a target program identifier among the program identifiers of the at least two programs;

[0242] The processing module 1402 is further configured to, in response to the seventh input, determine the program corresponding to the target program identifier as a second program.

[0243] Optionally, the first program includes an instant messaging program; the first interface includes a conversation interface with the target contact;

[0244] The display module 1401 is further configured to display first information in a first control in the conversation interface;

[0245] The processing module 1402 is further configured to execute target processing on the second program when first information is displayed in a first control in the conversation interface, wherein the first control is a control for inputting information;

[0246] The display module 1401 is further configured to display second information in a second control in the conversation interface;

[0247] The processing module 1402 is further configured to execute target processing on the second program when second information is displayed in a second control in the conversation interface, wherein the second control is a control for displaying a conversation message sent by a target contact.

[0248] Optionally, the user input module 1403 is configured to receive a control input from a user via a third control in the first interface;

[0249] The processing module 1402 is further configured to execute target processing on the second program when the third control in the first interface receives a control input from the user;

[0250] The third control is a control for processing messages or files.

[0251] Optionally, the processing module 1402 is further configured to:

[0252] When the fourth control in the first interface is updated to the target control state, executing target processing on the second program;

[0253] The target control state includes at least one of the following:

[0254] The progress indicator on the control indicates the status of the target progress;

[0255] Control disabled state;

[0256] The state of the control being used;

[0257] The control is fully or partially hidden;

[0258] The state of the control in target display mode.

[0259] Optionally, the first program includes a multimedia player program; the first interface includes a player interface of target multimedia, and the target multimedia includes text, audio or video;

[0260] The display module 1401 is further configured to display the second target keyword in the fifth control in the playback interface;

[0261] The processing module 1402 is further configured to perform target processing on the second program when a second target keyword is displayed in a fifth control in the playback interface; wherein the fifth control is a control for displaying text information of the target multimedia.

[0262] In this embodiment, the first interface of the first program is displayed; when a first program event occurs on the first interface, the target processing is executed on the second program. In this way, when the first program event occurs on the first interface of the first program during the use of the first program, the target processing is executed on the second program, eliminating the need to manually switch between programs to process the second program. This simplifies program processing operations and improves program usage efficiency.

[0263] The program processing device in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in an electronic device. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.

[0264] The program processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0265] The program processing device provided in the embodiment of the present application can implement each process implemented in the method embodiment of Figure 1. To avoid repetition, they will not be described here.

[0266] Optionally, as shown in Figure 15, an embodiment of the present application also provides an electronic device 1500, including a processor 1501, a memory 1502, and a program or instruction stored in the memory 1502 and executable on the processor 1501. When the program or instruction is executed by the processor 1501, the various processes of the above-mentioned program processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0267] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0268] FIG16 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0269] The electronic device 1600 includes but is not limited to components such as a radio frequency unit 1601 , a network module 1602 , an audio output unit 1603 , an input unit 1604 , a sensor 1605 , a display unit 1606 , a user input unit 1607 , an interface unit 1608 , a memory 1609 , and a processor 1610 .

[0270] Those skilled in the art will appreciate that the electronic device 1600 may further include a power source (e.g., a battery) for powering various components. The power source may be logically connected to the processor 1610 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG16 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.

[0271] Display unit 1606, configured to display a first interface of a first program;

[0272] Processor 1610, configured to execute target processing on a second program when a first program event occurs on the first interface;

[0273] The target processing is determined according to the first program event.

[0274] In this embodiment, the first interface of the first program is displayed; when a first program event occurs on the first interface, the target processing is executed on the second program. In this way, when the first program event occurs on the first interface of the first program during the use of the first program, the target processing is executed on the second program, eliminating the need to manually switch between programs to process the second program. This simplifies program processing operations and improves program usage efficiency.

[0275] Optionally, the first program event includes at least one of the following:

[0276] Displaying target information in the program control in the first interface;

[0277] The program control in the first interface receives a control input;

[0278] The control state of the program control in the first interface is updated to the target control state;

[0279] The data loading state of the target data in the first interface is a target loading state, wherein in the target loading state, the loading speed of the target data is less than a speed threshold.

[0280] Optionally, the processor 1610 is further configured to perform at least one of the following:

[0281] Displaying a target interface of the second program, where the target interface is an interface determined according to the running state of the second program or an interface set by the user;

[0282] triggering an input to a first target program control of a second program, where the first target program control is a preset control or a user-set control;

[0283] A target process is executed on the second program, the target process being a preset process or a process set by a user.

[0284] Optionally, the processor 1610 is further configured to determine a target process associated with the first program event according to an association relationship between the program event and the program process.

[0285] Optionally, the display unit 1606 is further configured to display at least two program icons and at least two program event options;

[0286] The user input unit 1607 is configured to receive a first input from a user regarding a target program icon among the at least two program icons and a target program event option among the at least two program event options;

[0287] The processor 1610 is further configured to establish, in response to the first input, an association relationship between the program event indicated by the target program event option and the target program processing;

[0288] The target program icon is the program icon of the second program; and the target program processing is determined according to the running state of the second program or is set by the user.

[0289] Optionally, when the second program is not running, the processor 1610 is further configured to: determine a second interface displaying the second program as a target program for processing, wherein the second interface is a main interface of the second program; the processor 1610 is specifically configured to: display the second interface of the second program;

[0290] When the second program is running in the background, the processor 1610 is also used to: determine the third interface displaying the second program as the target program processing, wherein the third interface is the interface displayed when the second program is running in the background; the processor 1610 is specifically used to: display the third interface of the second program.

[0291] Optionally, the user input unit 1607 is further configured to receive a second input from the user on the target program icon;

[0292] The processor 1610 is further configured to, in response to the second input, determine a fourth interface of the second program; and determine the fourth interface displayed as a target program for processing;

[0293] The processor 1610 is specifically configured to display a fourth interface of the second program.

[0294] Optionally, the user input unit 1607 is further configured to receive a third input from the user on the target program icon;

[0295] The processor 1610 is further configured to determine, in response to the third input, a processing content of a program process; and determine the program process corresponding to the processing content as a target program process;

[0296] The processor 1610 is specifically configured to execute program processing corresponding to the processing content on the second program.

[0297] Optionally, the user input unit 1607 is further configured to receive a fourth input from the user on the target program icon;

[0298] The display unit 1606 is further configured to display a fifth interface of the second program in response to the fourth input, wherein the fifth interface includes a first target program control;

[0299] The user input unit 1607 is further configured to receive a fifth input from the user to the first target program control;

[0300] The processor 1610 is further configured to, in response to the fifth input, determine the input triggering the first target program control as target program processing, and store the control path of the first target program control;

[0301] The processor 1610 is further configured to trigger an input to the first target program control based on the control path of the first target program control.

[0302] Optionally, the user input unit 1607 is further configured to receive a sixth input from the user to a second target program control in the first interface of the first program;

[0303] The processor 1610 is further configured to, in response to the sixth input, determine target information including a first target keyword displayed in the second target program control as a second program event, wherein the first target keyword is the keyword input by the sixth input;

[0304] Processor 1610 is further configured to add a program event option corresponding to the second program event to the at least two program event options.

[0305] Optionally, the display unit 1606 is further configured to display program identifiers of at least two programs, wherein the program identifiers include program icons or interface identifiers, and the interface identifiers are used to indicate any program interface of the programs;

[0306] The user input unit 1607 is further configured to receive a seventh input from the user regarding a target program identifier among the program identifiers of the at least two programs;

[0307] The processor 1610 is further configured to, in response to the seventh input, determine the program corresponding to the target program identifier as a second program.

[0308] Optionally, the first program includes an instant messaging program; the first interface includes a conversation interface with the target contact;

[0309] The display unit 1606 is further configured to display the first information in the first control in the conversation interface;

[0310] Processor 1610 is further configured to, when first information is displayed in a first control in the conversation interface, execute target processing on the second program, wherein the first control is a control for inputting information;

[0311] The display unit 1606 is further configured to display second information in a second control in the conversation interface;

[0312] The processor 1610 is further configured to execute target processing on the second program when second information is displayed in a second control in the conversation interface, where the second control is a control for displaying a conversation message sent by a target contact.

[0313] Optionally, the user input unit 1607 is further configured to receive a user's control input for a third control in the first interface;

[0314] The processor 1610 is further configured to execute target processing on the second program when the third control in the first interface receives a control input from the user;

[0315] The third control is a control for processing messages or files.

[0316] Optionally, the processor 1610 is further configured to:

[0317] When the fourth control in the first interface is updated to the target control state, executing target processing on the second program;

[0318] The target control state includes at least one of the following:

[0319] The progress indicator on the control indicates the status of the target progress;

[0320] Control disabled state;

[0321] The state of the control being used;

[0322] The control is fully or partially hidden;

[0323] The state of the control in target display mode.

[0324] Optionally, the first program includes a multimedia player program; the first interface includes a player interface of target multimedia, and the target multimedia includes text, audio or video;

[0325] The display unit 1606 is further configured to display the second target keyword in a fifth control in the playback interface;

[0326] The processor 1610 is further configured to execute target processing on the second program when a second target keyword is displayed in a fifth control in the playback interface; wherein the fifth control is a control for displaying text information of the target multimedia.

[0327] It should be understood that in an embodiment of the present application, the input unit 1604 may include a graphics processing unit (GPU) 16041 and a microphone 16042, and the graphics processor 16041 processes image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1606 may include a display panel 16061, and the display panel 16061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1607 includes a touch panel 16071 and other input devices 16072. The touch panel 16071 is also called a touch screen. The touch panel 16071 may include two parts: a touch detection device and a touch controller. Other input devices 16072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here. The memory 1609 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understood that the modem processor may not be integrated into the processor 1610.

[0328] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned program processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0329] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.

[0330] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned program processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0331] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0332] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0333] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling an electronic device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0334] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A program processing method, the method comprising: Displaying a first interface of a first program; When a first program event occurs on the first interface, executing a target process on the second program; Wherein, the target processing is determined according to the first program event.

2. The method according to claim 1, wherein: The first program event includes at least one of the following: The target information is displayed in the program control in the first interface; The program control in the first interface receives a control input; The control state of the program control in the first interface is updated to the target control state; The data loading state of the target data in the first interface is a target loading state, wherein in the target loading state, the loading speed of the target data is less than a speed threshold.

3. The method according to claim 1, wherein: The performing target processing on the second program includes at least one of the following: Displaying a target interface of the second program, wherein the target interface is an interface determined according to the running state of the second program or an interface set by the user; triggering an input to a first target program control of a second program, wherein the first target program control is a preset control or a control set by a user; A target process is executed on the second program, the target process being a preset process or a process set by a user.

4. The method according to claim 1, wherein: Before executing the target processing on the second program, the method further includes: According to the association relationship between the program event and the program process, a target process associated with the first program event is determined.

5. The method according to claim 1, wherein: The method further comprises: Display at least two program icons and at least two program event options; receiving a first input from a user regarding a target program icon among the at least two program icons and a target program event option among the at least two program event options; In response to the first input, establishing an association relationship between the program event indicated by the target program event option and the target program process; The target program icon is a program icon of the second program; and the target program processing is determined according to a running state of the second program or is set by a user.

6. The method according to claim 5, wherein: Before establishing the association relationship between the program event indicated by the target program event option and the target program processing, the method further includes: When the second program is not running, determining a second interface displaying the second program as a target program process, wherein the second interface is a main program interface of the second program; performing the target process on the second program includes: displaying the second interface of the second program; When the second program is running in the background, the third interface displaying the second program is determined as the target program. Program processing, wherein the third interface is the interface displayed by the second program when it is running in the background; executing target processing on the second program includes: displaying the third interface of the second program.

7. The method according to claim 5, wherein: Before establishing the association relationship between the program event indicated by the target program event option and the target program processing, the method further includes: receiving a second input from a user regarding the target program icon; In response to the second input, determining a fourth interface of the second program; Determine the fourth interface displayed as a target program process; The performing target processing on the second program includes: The fourth interface of the second program is displayed.

8. The method according to claim 5, wherein: Before establishing the association relationship between the program event indicated by the target program event option and the target program processing, the method further includes: receiving a third input from a user on the target program icon; In response to the third input, determining the processing content of the program processing; Determining the program processing corresponding to the processing content as the target program processing; The performing target processing on the second program includes: A program process corresponding to the process content is executed on the second program.

9. The method according to claim 5, wherein: Before establishing the association relationship between the program event indicated by the target program event option and the target program processing, the method further includes: receiving a fourth input from a user on the target program icon; In response to the fourth input, displaying a fifth interface of the second program, the fifth interface including a first target program control; receiving a fifth input from a user to the first target program control; In response to the fifth input, determining the input triggering the first target program control as a target program process, and storing the control path of the first target program control; The performing target processing on the second program includes: Based on the control path of the first target program control, an input to the first target program control is triggered.

10. The method according to claim 5, wherein: The method further comprises: receiving a sixth input from a user to a second target program control in the first interface of the first program; In response to the sixth input, determining the target information including the first target keyword displayed in the second target program control as a second program event, wherein the first target keyword is the keyword input by the sixth input; Adding a program event option corresponding to the second program event to the at least two program event options.

11. The method according to claim 1, wherein: Before executing the target processing on the second program, the method further includes: Displaying program identifiers of at least two programs, wherein the program identifiers include program icons or interface identifiers, and the interface identifiers are used to indicate any program interface of a program; receiving a seventh input of a target program identifier among the program identifiers of the at least two programs by a user; In response to the seventh input, the program corresponding to the target program identifier is determined as a second program.

12. The method according to claim 1, wherein: The first program includes an instant messaging program; the first interface includes a conversation interface with a target contact; When the first program event occurs on the first interface, executing target processing on the second program includes: When first information is displayed in a first control in the conversation interface, executing target processing on the second program, wherein the first control is a control for inputting information; Alternatively, when the second information is displayed in a second control in the conversation interface, target processing is performed on the second program, wherein the second control is a control for displaying a conversation message sent by the target contact.

13. The method according to claim 1, wherein: When the first program event occurs on the first interface, executing target processing on the second program includes: When the third control in the first interface receives a control input from the user, executing target processing on the second program; The third control is a control for processing messages or files.

14. The method according to claim 1, wherein: When the first program event occurs on the first interface, executing target processing on the second program includes: When the fourth control in the first interface is updated to the target control state, performing target processing on the second program; The target control state includes at least one of the following: The progress indicator on the control indicates the status of the target progress; Control disabled state; The state of the control being used; The control is fully or partially hidden; The state of the control in target display mode.

15. The method according to claim 1, wherein: The first program includes a multimedia player program; the first interface includes a target multimedia player interface, and the target multimedia includes text, audio or video; When the first program event occurs on the first interface, executing target processing on the second program includes: When the second target keyword is displayed in the fifth control in the playback interface, target processing is performed on the second program; wherein the fifth control is a control for displaying text information of the target multimedia.

16. A program processing device, the device comprising: A display module, used for displaying a first interface of a first program; A processing module, configured to execute target processing on a second program when a first program event occurs on the first interface; Wherein, the target processing is determined according to the first program event.

17. The device according to claim 16, wherein: The first program event includes at least one of the following: The target information is displayed in the program control in the first interface; The program control in the first interface receives a control input; The control state of the program control in the first interface is updated to the target control state; The data loading state of the target data in the first interface is a target loading state, wherein in the target loading state, the loading speed of the target data is less than a speed threshold.

18. The device according to claim 16, wherein: The processing module is further configured to perform at least one of the following: Displaying a target interface of the second program, wherein the target interface is an interface determined according to the running state of the second program or an interface set by the user; triggering an input to a first target program control of a second program, wherein the first target program control is a preset control or a control set by a user; A target process is executed on the second program, the target process being a preset process or a process set by a user.

19. The device according to claim 16, wherein: The processing module is further used to determine the target process associated with the first program event according to the association relationship between the program event and the program process.

20. The device according to claim 16, wherein: The display module is further used to display at least two program icons and at least two program event options; The device further comprises: a user input module, configured to receive a first input from a user on a target program icon among the at least two program icons and a target program event option among the at least two program event options; The processing module is further used to establish an association relationship between the program event indicated by the target program event option and the target program processing in response to the first input; The target program icon is a program icon of the second program; and the target program processing is determined according to a running state of the second program or is set by a user.

21. The device according to claim 20, wherein: When the second program is not running, the processing module is further used to: determine the second interface of the second program as the target program for processing, wherein the second interface is the main interface of the second program; the processing module is specifically used to: display the second interface of the second program; When the second program is running in the background, the processing module is also used to: determine the third interface displaying the second program as the target program for processing, wherein the third interface is the interface displayed when the second program is running in the background; the processing module is specifically used to: display the third interface of the second program.

22. The device according to claim 21, wherein The user input module is further used to receive a second input from a user on the target program icon; The processing module is further configured to determine a fourth interface of the second program in response to the second input; and to display the fourth interface as a target program for processing; The processing module is specifically used to: display a fourth interface of the second program.

23. The device according to claim 20, wherein: The user input module is further used to receive a third input from a user on the target program icon; The processing module is further used to determine the processing content of the program processing in response to the third input; The program processing corresponding to the content is determined as the target program processing; The processing module is specifically used to: execute program processing corresponding to the processing content on the second program.

24. The device according to claim 21, wherein The user input module is further used to receive a fourth input from a user on the target program icon; The display module is further configured to display a fifth interface of the second program in response to the fourth input, wherein the fifth interface includes a first target program control; The user input module is further used to receive a fifth input from a user to the first target program control; The processing module is further configured to, in response to the fifth input, determine the input that triggers the first target program control as target program processing, and store the control path of the first target program control; The processing module is further configured to trigger input to the first target program control based on the control path of the first target program control.

25. The device according to claim 20, wherein: The user input module is further used to receive a sixth input from the user to the second target program control in the first interface of the first program; The processing module is further configured to, in response to the sixth input, determine the target information including the first target keyword displayed in the second target program control as a second program event, wherein the first target keyword is the keyword input by the sixth input; The processing module is further configured to add a program event option corresponding to the second program event to the at least two program event options.

26. The device according to claim 16, wherein: The display module is further used to display program identifiers of at least two programs, wherein the program identifiers include program icons or interface identifiers, and the interface identifiers are used to indicate any program interface of the program; A user input module, configured to receive a seventh input of a target program identifier among the program identifiers of the at least two programs from a user; The processing module is further configured to, in response to the seventh input, determine the program corresponding to the target program identifier as a second program.

27. The device according to claim 16, wherein: The first program includes an instant messaging program; the first interface includes a conversation interface with a target contact; The display module is further configured to display first information in a first control in the conversation interface; The processing module is further configured to perform target processing on the second program when the first information is displayed in the first control in the conversation interface, wherein the first control is a control for inputting information; The display module is further configured to display second information in a second control in the conversation interface; The processing module is further configured to execute target processing on the second program when second information is displayed in a second control in the conversation interface, wherein the second control is a control for displaying a conversation message sent by a target contact.

28. The apparatus of claim 16, wherein: A user input module, used for the third control in the first interface to receive a control input from a user; The processing module is further configured to execute target processing on the second program when the third control in the first interface receives a control input from the user; The third control is a control for processing messages or files.

29. The device according to claim 16, wherein: The processing module is further used for: When the fourth control in the first interface is updated to the target control state, executing the target processing on the second program; The target control state includes at least one of the following: The progress indicator on the control indicates the status of the target progress; Control disabled state; The state of the control being used; The control is fully or partially hidden; The state of the control in target display mode.

30. The device according to claim 16, wherein: The first program includes a multimedia player program; the first interface includes a target multimedia player interface, and the target multimedia includes text, audio or video; The display module is further used to display the second target keyword in the fifth control in the playback interface; The processing module is further used to perform target processing on the second program when the second target keyword is displayed in the fifth control in the playback interface; wherein the fifth control is a control for displaying text information of the target multimedia.

31. An electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the program processing method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Application switching method and device, electronic equipment and readable storage medium

    CN112148178A

  • Information processing method and device, electronic equipment and medium

    CN114296596A

  • Program processing method and device and electronic equipment

    CN116244031A

  • Background program control method and apparatus, and electronic device

    WO2022012664A1